You could try creating a custom provider that extends RPCProvider, then override makeNewServiceObject(). Your WSDD "handlerClass" parameter would have a value of "your.package.YourProviderName".
I'm doing this, and it seems to work well. Regards. Steve Pannier > Perhaps my problem definition was not clear enough. I'm interested in > customizing the *mechanism* with which an instance is created. As I > mentioned below, I do not want an instance to be created using > "class.newInstance()". I'd like to be able to, say, call > "MyObjectFactory.getInstance(class)" to create an instance. The scope > simply defines the lifecycle of an object *once it has been created*. > That's too late for what I'm trying to do. Adding a handler to the chain > also does not help; it's the pivot that I'm trying to customize. > > Sumant > > > > |---------+---------------------------------> > | | "Manchaiah, Girish | > | | (LNG-DAY)" | > | | <[EMAIL PROTECTED]| > | | snexis.com> | > | | | > | | 09/10/2003 12:06 PM | > | | Please respond to | > | | axis-user | > |---------+---------------------------------> > > > ------------------------------------------------------------------------------- > -------------------------------| > > | > | > | To: "'[EMAIL PROTECTED]'" > <[EMAIL PROTECTED]> | > | > cc: > | > | Subject: RE: Customizing RPC > provider | > > > ------------------------------------------------------------------------------- > -------------------------------| > > > > > It is not instantiated every time in AXIS. > Ref: JavaProvider > > -----Original Message----- > From: Sumant Padbidri [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 10, 2003 3:04 PM > To: [EMAIL PROTECTED] > Subject: RE: Customizing RPC provider > > > > > > > I'm not sure how. Even with application scope RPCProvider will still > instantiate the object using "class.newInstance()". That's not the behavior > I desire. I'd like to get the object instance from a pool and not create a > new instance each time. > > _________________________________ > Sumant Padbidri > 408-256-9784 > [EMAIL PROTECTED] > _________________________________ > > > > |---------+---------------------------------> > | | "Manchaiah, Girish | > | | (LNG-DAY)" | > | | <[EMAIL PROTECTED]| > | | snexis.com> | > | | | > | | 09/10/2003 11:51 AM | > | | Please respond to | > | | axis-user | > |---------+---------------------------------> > > > --------------------------------------------------------------------------- > > -----------------------------------| > | > | > | To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > | > | cc: > | > | Subject: RE: Customizing RPC provider > | > > > --------------------------------------------------------------------------- > > -----------------------------------| > > > > > I believe scope="application" for your service in WSDD will suffice. > > -----Original Message----- > From: Sumant Padbidri [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 10, 2003 12:57 PM > To: [EMAIL PROTECTED] > Subject: Customizing RPC provider > > > > > > > Are there any hooks available to customize how the RPC provider gets the > target service object? Instead of simply instantiating an instance of the > classname I'd like to retrieve an instance from an object pool or factory. > Do I have to write a new provider for that? If so, how can I specify a > custom provider in my WSDD? > > Thanks, > Sumant > >
