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