This process worked flawlessly in JRUN233.
I am using the following code:::
URL url = new URL (#URL to my Servlet#);
URLConnection connection = url.openConnection();
connection.setUseCaches (false);
connection.setDoOutput(true);
connection.setDoInput(true);
connection.setUseCaches(false);
connection.setRequestProperty("Content-type",
"application/octet-stream");
ObjectOutputStream objOut = new
ObjectOutputStream(connection.getOutputStream());
objOut.writeObject(#My Object to be sent#);
objOut.flush();
objOut.close();
ObjectInputStream ois = new
ObjectInputStream(connection.getInputStream());
ParamSet ps = (ParamSet) ois.readObject ();
ois.close();
This process worked perfectly under jrun 233, but now under jrun 3 I get an
java.io.IOException on the servlet URL. The offending line seems to be the
close of the ObjectInputStream after reading my objects returned from the
servlet. If I comment out this line the process runs through without an
exception but my returned objects do not seem to be getting read properly.
Does any one have any suggestions???
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.