Hi Friends,

We are facing problems communicating from an HTTP servlet to an EJB over IIOP. Hope 
someone can help.

The setup is something like this:
A swing client or standalone java client talks to the Webserver which in turn talks to 
the Session Facade EJB on the Weblogic server Version 6.1 sp2 on Solaris 8. Swing 
client is on a windows 2000 machine & all the code (EJBs, Servlets & client) are 
compiled with Windows JDK version 1.3.1_01. We are using EJB 2.0. The windows client 
talks with the Controller Servlet using Object Input & Output streams. An object array 
is passed from the client to the webserver which in turn passes it to the appserver. 
The webserver is Jakarta Tomcat 4.0.3 running on JDK1.3.1_04 on a Red Hat Linux 7.2 
machine. 
In Case 1, the object array contains objects which in turn contain an arraylist of 
objects. 
In Case 2, the object array contains objects which do not contain any more arraylists 
of objects. All the objects & contained objects implement the Serializable interface. 
After looking up the EJB Home & getting the remote for the same a method is called & 
this Object array is passed to the called EJB method. In case 2, everything works 
perfectly & we get a proper response back. However in case 1, we get a 
marshalling/demarshalling error or an internal readObject error basically meaning that 
the EJB's method parameters were corrupted i.e. the Object array. On checking up the 
object array on the Controller Servlet on the webserver, it was found to be perfect. 
We are using the IIOP protocol from the servlet to the EJB. Both case 1 & case 2 are 
working with Standalone java clients talking directly to the EJB over the IIOP 
protocol.

Any solution or pointers on this would be highly appreciated.

TIA,
Prateek

==========================================================================To 
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to