0 Replies Latest reply on Jul 5, 2010 9:53 AM by mikaelfj

    Instance variable in webservice

    mikaelfj

      Hi,

       

      I'm having a webservice is deployed in the JBoss ESB,

       

      The webservice includes functionality which involves a  "processor" component that needs a timeconsuming initialization.

       

      I tried to a  make the processor component an instance variable so I only needed to  initialize it at the very first invocation of the webservice, and then  just use the initialized variable in succeeding invocations.

       

      But it seems  as if the instance variable is set to null at each new invocation, thus  causing the initalization to occur each time.

       

      Are there any configuration  settings for the webservices that can tell it to keep instance  variables, or is it just not possible to to this, i.e. that instance  variables are initialized at each invocation.

       

      Regards

      Mikael