<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Is their a way within Drupal to connect to a Java servlet or Java<br>
Server Page (JSP)?<br>
<br>
Thanks,<br>
--<br>
John J. Mitchell</blockquote><div><ol><li>What do you mean by 'connect'?</li><li>Which is the server and which the client. Does Drupal (PHP) need to consume information provided by the J2EE app, or the other way around?</li>
<li>Is the J2EE application something you have control over or is it a closed proprietary product? In other words are you free to modify the J2EE app in any way?</li><li>Is the J2EE app architecture logically separated; via a MVC pattern for example?</li>
<li>What is it you are trying to achieve, exactly?</li><li>Are Drupal and the J2EE container hosted on the same host?</li></ol><div>There are many different ways to integrate a J2EE (or any) application technology with PHP (and Drupal). However, the constraints of the J2EE application, and how much freedom you have over both applications will determine how this can be best achieved.</div>
</div><div><br></div><div>As a broad generality: If you are free to modify both systems (or the service provider of one exposes an API already) you can integrate any web application with any other web application using standard web service strategies (XMLRPC, SOAP, REST/JSON, etc.) In essence this would be the same as connecting to an existing web API (like Google Maps), the only difference being is they you have to write both the service provider code as well as the client/consumer code.</div>
<div><br></div><div>If you don't have freedom to modify the J2EE code then there may be some other options available: e.g. using a PHP/Java bridge (<a href="http://php-java-bridge.sourceforge.net/pjb/">http://php-java-bridge.sourceforge.net/pjb/</a>).</div>
<div><br></div></div>-- <br>Nyk Cowham<br>Ashlin Interactive Strategy<br><a href="http://ashlinstrategy.com">http://ashlinstrategy.com</a><br>