Torsten... Default scope is 'request' ah buleeve. Stan ----- Original Message ----- From: "Glen Daniels" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 18, 2002 7:49 AM Subject: RE: Newbie Instantiation question
> > Hi Torsten! > > Here's the quick answer to your question. The JavaProvider class does the instantiation of the service object, in the getServiceObject() method, which calls getNewServiceObject() if necessary. The provider is the Handler at the very "back end" of the chain of invocation, and its job is to invoke a method on your service object. So by the time we get to the provider, we're inside a SOAPService which has the "className" and "scope" options on it. These options allow us to figure out how to get the right object - for the "request" scope we just make a new one (using class.newInstance()) every time. For "session" scope, we make an instance if there isn't already one in the Session associated with the current MessageContext. For "application" scope we make an instance if there isn't already one in the "global" Session associated with the engine. > > Hope that helps, > --Glen >
