I am trying to create a JSE/Servlet-based web service within JBoss4.0.0. I'd like the 
endpoint class to behave much like a normal Servlet where it could hold onto costly 
resources obtained during the init() method and re-use them on each invocation/thread. 

However, each time I execute an operation on my service I go through the full 
lifecycle of the object and loose what I allocated in the init().

ctor()
init()
method()
destroy()

How can I configure the container such that it knows the same object can be shared 
across multiple invocations? My fallback was to use the ServletContext to cache the 
resources, but this did not seem right. I have the same thing operating as a Stateless 
Session EJB, but I wanted to fully explore the JSE case.

thanks,
jim

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851973#3851973

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851973


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to