Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with ObjectOutputStream & webstart  RSS feed

 
Kevin Onik
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends I have a problem with an app designed to use Webstart at the client side and j2EE at the server ...

look at this part of code :

//sendRequest define URL to connect...
URL myURL = new URL("http://myServer:8080/myApp/servlet/" + ServletName);
URLConnection urlConn = myURL.openConnection();
urlConn.setDoInput(true);
urlConn.setDoOutput(true);
//write data

ObjectOutputStream outputToServlet = new
ObjectOutputStreamur(Conn.getOutputStream());
//sendRequest write...
outputToServlet.writeObject(context);
// context is the object containing the information provided by client
//app and have to send to server side to be proccesed by a servlet.
outputToServlet.flush();
outputToServlet.close();


as you can see it's so simple and works perfectly without
any problem when you run it without webstart at the client side.
But when I try to launch it through .JNLP it doesn't works!

please help me...
[ September 08, 2004: Message edited by: Kamyar Onikzeh ]
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you getting an exception?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!