Ok thanks a lot Vidyanand - before I start checking out the source code
a bit further, is there anyway to set an object as the instantiated
service easily using the current api, before the service method is
called? (on the server end, rather than the client)

This would be very useful because my service is already instantiated and
working in the background when it is called.

Any assistance would be very grateful indeed! :)
Cheers lads,
Dave

-----Original Message-----
From: Vidyanand Murunikkara [mailto:[EMAIL PROTECTED]] 
Sent: 07 January 2003 22:26
To: [EMAIL PROTECTED]
Subject: RE: Service instance


Hi Dave

I guess  u wanted to know where the class that represents service that
is being called in being instantiated. Check out
org.apache.axis.providers.java.JavaProvider for that. Look specifically
for getNewServiceObject method.

Thanks
Vidyanand.

-----Original Message-----
From: Dave Searle [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 2:00 PM
To: [EMAIL PROTECTED]
Subject: FW: Service instance



Hi all,

Where abouts (in the code) does the Axis engine create an instance of a
service? I would like the axis server to call itself, and I don't want
it to create a new instance, but I would like to pass across an already
instanstiated object? Does this make sense? (Probably not :) )

I'm using the latest release of apache axis and the TCP transport sample

I've narrowed it down to here. Is the service instantiated in the invoke
method of the engine or the getResponse method

                engine.invoke( msgContext );
            }
            catch( Exception e ) {
                AxisFault fault = AxisFault.makeFault(e);
                msgContext.setResponseMessage( new Message(fault) );
            }

            /* Send it back along the wire...  */
            /***********************************/
            msg = msgContext.getResponseMessage();

Cheers,
Dave




Reply via email to