0 Replies Latest reply on Nov 6, 2007 8:24 AM by dode

    Design question - initializing and cleaning up resources

    dode

      I am developing a POJO SEI deployed as WAR to JBoss 4.0.5, JBossWS 2.0.1.GA.

      I am unsure how I would initialize resources such as JMS connections on deployment and how to clean them up on undeployment.

      I looked at ServiceLifecycle, but since the init() and destroy() methods are called for each webservice call, it does not seem to be a good idea to perform expensive operations in them.

      Would it make more sense to implement the webservice as EJB3 SLSB?

      Can someone give me some advice?

      Torsten