We have a Servlet that establishes a socket connection to another
external server and sends and receives messages. We have the Servlet
defined as pre-loaded when JRun starts.

When JRun is started, the Servlet is started and connection is
established with the external server. The problem is when a new message
is being sent, the Servlet is instantiate again and the connection is
stopped and restarted. We do a forward request from another Servlet to
this. Am I totally misunderstanding Servlets because reading articles
and books seems to indicate that I should create an EJB instead of a
Servlet if you want a persistent connection.

Thanks in advance for your help.
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to