Yes, I'm familiar with the application scope and it creating one object. My
question is either:

1) How can I programmatically get access to that instance so I can send it
some objects that it will interact with

Or

2) How can I control the instantiation of that instance so I can pass it
some objects that it will interact with.

Thanks,

-joel

-----Original Message-----
From: Toshiyuki Kimura [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 02, 2003 2:32 AM
To: [EMAIL PROTECTED]
Subject: Re: Configuring a web service object


Hi Joel,

  Do you read a chapter; 'Scoped Services' on Axis User's Guide ?

| "Application" scope will create a singleton shared object
| to service all requests.

  An instance of the web service is just one at a server ( if you configure
the service as "Application scope") , and it's instantiated when it has the
first access.  In addition, the instance will be able to keep the references
of various objects (if needed).
  What do you want to do ?

Best Regards,

   Toshi (Toshiyuki Kimura) <[EMAIL PROTECTED]>
   R&D Headquarters
   NTT DATA Corporation

-----Original Message-----
From: Shellman, Joel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 12:45 AM
To: '[EMAIL PROTECTED]'
Subject: Configuring a web service object

I set up a web service object in Axis: MyService (application scope). It
accesses various other modules in the application. I want to pass it
instances of the objects it should interact with. How can I do this?

1) Is there a way to control the instantiation of MyService so I can pass it
at that time?

2) Is there a way to get access to the instance that Axis is using so I can
call a method on it to pass the information to it?

Thank you,

Joel Shellman

Reply via email to