Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Applet Servlet Commmunication in Lotus Domino 5.0.2

 
suman paul
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
I have successfully deployed a hyperbolic tree
thro' httpTunneling.The only problem i am facing.Once the applet calls the servlet from the jar file its opening a URLConnection.and doing the rest of the operation.After accessing 20-30
times its giving some kind of thread is blocked
/servlet/NetSkillDAServlet means already in use.
How do i get out of it.None of the server like
tomcat,resin,weblogic behaves like this.Is it something with the code or some config has to be done.If anyone could advice me what to do.

Applet code:

webServerStr = null;
hostName = "....."
port = "8080";
servletPath="/sevlet/NetSkillDAServlet";
webServerStr = "http://" + hostName + ":" + port + servletPath;
URLL url = new URL(webServerStr);
URLConnection urlconnection = url.openConnection();
ObjectInputStream inputFromServlet = new ObjectInputStream(urlconnection.getInputStream());
Vector dataFromServlet = (Vector)inputFromServlet.readObject();

Anything else to do?? Coz URL connection does not
have something to close.But its not giving error in any other servers.
thanx and regards
 
Tim Holloway
Saloon Keeper
Posts: 18367
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you closing the input stream that the URLConnection returned?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic