So "fooService1"'s state will be initialized when it receives the first message. That should solve the problem.
Thank you very much, Regards, ram > -----Original Message----- > From: C Santosh [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 06, 2001 7:47 AM > To: [EMAIL PROTECTED] > Subject: Re: Deployment Descriptor: Passing Parameters > > > > Your envelope,for the first service, will have > <fooBar xmlns="fooService1"> > as the child of Body element. > for the second you will have > <fooBar xmlns="fooService2"> > > > this is the advantage of message style service, you have the whole > soap message with you. (with apache-soap) > > santosh > > ---------- Original Message ---------------------------------- > From: "Krishnamurthy, Ramanathan" <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > Date: Thu, 6 Dec 2001 07:08:07 -0500 > > >Hi, > > > >I am trying to do the following: > > > >1. Load a class "foo" as a service "fooService1". > >2. Load "foo" as a different service "fooService2". > > > >"foo" class definition: > >public class foo { > > public void fooBar(Envelope env, SOAPContext in, > SOAPContext out). > >} > > > >Note: The class is deployed as a non-static class. > > > >Question: > >Is there someway to pass environment parameters (say the service > name) to > >class "foo" so that "foo" can differentiate between its existence as > >"fooService1" and "fooService2" ? > > > >Your help will be greatly appreciated. > > > >Regards, > >ram > > > > > >------------------------------------------------------------- > --------------- > >------------ > >Ramanathan Krishnamurthy > >AP Engines, Inc. > >One Clock Tower Place > >Maynard, MA 01754 > > > > >