<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Or visa versa.&nbsp; We use J2EE applications and
oracle enterprise applications to manage data that is included in Drupal.&nbsp; We
primarily use REST web services to accomplish this. So we make a web service to
provide the data from the J2EE application, and then write php drupal modules
to pull information from those rest web services into drupal via http calls. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><br>
Good luck. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
support-bounces@drupal.org [mailto:support-bounces@drupal.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Asad Habib<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, February 16, 2007
12:17 AM<br>
<b><span style='font-weight:bold'>To:</span></b> larry@garfieldtech.com<br>
<b><span style='font-weight:bold'>Cc:</span></b> <st1:PersonName w:st="on">support@drupal.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [support] Drupal
Integration with a Struts-based JavaApplication</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Thanks for your input
Larry. By &quot;used with&quot; I mean that the CMS would be accessed via the
Java web application. However, the architecture you mentioned below seems like
a more viable solution. I can run Drupal separately from the application and
have the application pull from the Drupal MySQL database. This is also a better
design since the application is for user and the CMS is for the admin so they
really should be separate. <br>
<br>
- Asad<br>
<br>
<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 2/16/07, <b><span style='font-weight:bold'>Larry
Garfield</span></b> &lt;<a href="mailto:larry@garfieldtech.com">larry@garfieldtech.com</a>&gt;
wrote:</span></font></span><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>For what definition of &quot;used with&quot;?&nbsp;&nbsp;Drupal is
entirely PHP, not Java, so<br>
runtime integration is out.&nbsp;&nbsp;(In theory there some sort of huge hack
to make<br>
PHP talk to Java at runtime, but I've never touched it as the very idea is <br>
scary.)&nbsp;&nbsp;You could, however, have a Java app read the Drupal MySQL
database<br>
and parse out whatever data it needs from it.&nbsp;&nbsp;The vast majority of
the data<br>
in the database is well-normalized SQL-friendly fields, but you do have to <br>
know Drupal's data schema.<br>
<br>
Really, it depends on what &quot;used with&quot; means.<br>
<br>
On Friday 16 February 2007 12:34 am, Asad Habib wrote:<br>
&gt; Does anyone know if Drupal can be used with a Struts-based Java <br>
&gt; application? If so, has anyone actually done this and how can it be<br>
&gt; achieved? Thank you.<br>
&gt;<br>
&gt; - Asad<br>
<br>
--<br>
Larry
Garfield&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AIM:
LOLG42<br>
<a href="mailto:larry@garfieldtech.com">larry@garfieldtech.com</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ICQ:
6817012<br>
<br>
&quot;If nature has made any one thing less susceptible than all others of<br>
exclusive property, it is the action of the thinking power called an idea,<br>
which an individual may exclusively possess as long as he keeps it to <br>
himself; but the moment it is divulged, it forces itself into the possession<br>
of every one, and the receiver cannot dispossess himself of
it.&quot;&nbsp;&nbsp;-- Thomas<br>
<st1:place w:st="on">Jefferson</st1:place><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/">http://lists.drupal.org/</a>
]<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>