• Post Reply Bookmark Topic Watch Topic
  • New Topic

ServletOutputStream performance.

 
Angelino Dolce
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!
I've a J2EE application that has a Swing Client App.
All works well. The only problem to risolve is in this code:
-----------------
byte[] abRes = oXmlRpcServer.execute(oIn);
oOut.write(abRes);
oOut.close();,
-----------------
in the doPost() method of the Servlet.
The abRes contain the compressed result of the elaboration, but in same cases the 'oOut.write(abRes)' is the bottleneck. How can I Any Idea?
Thanks again!
 
sri chinta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess don't close it becoz the object is gonna be destroyed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!