1 Reply Latest reply on Jul 5, 2010 5:21 AM by Morten Hauch

    Instance variable in webservice

    Mikael Jørgensen Newbie

      Hi,

       

      (moving this to a seperate question)

       

      I'm having a webservice that 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.

       

      Thanks

      Mikael