You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Daniel Elenius <da...@student.liu.se> on 2003/03/17 23:30:26 UTC

EngineConfiguration [was Re: setEngineConfiguration]

Davanum,

Thanks for the guidance.

I wrote my own class called JXTAEngineConfigurationFactory, which
implements EngineConfigurationFactory (I modelled it after
EngineConfigurationFactoryDefault).

Now, how do I make EngineConfigurationFactoryFinder.newFactory()
automatically find and return my factory? I don't understand the
comments for newFactory()...

(I looked at the Jabber stuff, but it doesn't use any
EngineConfiguration stuff. JXTA-SOAP didn't use to either, but I needed
to do it for my changes to it).

regards,
/Daniel

On Mon, 2003-03-17 at 17:36, Davanum Srinivas wrote:
> Search for EngineConfigurationFactoryFinder in the code...You should
be able to add your own
> config factory. 
> 
> Thanks,
> dims
> 
> --- Daniel Elenius <da...@student.liu.se> wrote:
> > I'm working on the JXTA transport for Axis (called JXTA-SOAP, see
> > soap.jxta.org). It needs to provide its own config with its JXTA
> > transport bindings, but I also want to use WSDL data to use the
> > pre-filled createCall() things.
> > 
> > /daniel
> > 
> > On Mon, 2003-03-17 at 17:19, Davanum Srinivas wrote:
> > > What's the actual problem? (for which you need to call
setEngineConfiguration)
> > > 
> > > Thanks,
> > > dims
> > > --- Daniel Elenius <da...@student.liu.se> wrote:
> > > > In org.apache.axis.client.Service, there's a method called
> > > > setEngineConfiguration(). I need something like this, but the
problem,
> > > > as pointed out in the comments to the method, is that the engine
> > > > configuration is already set by all the constructors. How can I
get
> > > > around this problem without adding more constructors with an
extra
> > > > config parameter? Is there a solution planned for this?
> > > > 
> > > > /Daniel
> > > > 
> > > > 
> > > > /**
> > > >  * Set this Service's engine configuration.
> > > >  *
> > > >  * Note that since all of the constructors create the AxisClient
right
> > > >  * now, this is basically a no-op.  Putting it in now so that we
can
> > > > make
> > > >  * lazy engine instantiation work, and not have to duplicate
every
> > > > single
> > > >  * Service constructor with a EngineConfiguration argument.
> > > >  *
> > > >  * @param config the EngineConfiguration we want to use.
> > > >  */
> > > >  public void setEngineConfiguration(EngineConfiguration config)
{
> > > >      this.config = config;
> > > >  }
> > > > 
> > > > 
> > > > -- 
> > > > Daniel Elenius <da...@student.liu.se>
> > > > 
> > > 
> > > 
> > > =====
> > > Davanum Srinivas - http://webservices.apache.org/~dims/
> > > 
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Web Hosting - establish your business online
> > > http://webhosting.yahoo.com
> > -- 
> > Daniel Elenius <da...@student.liu.se>
> > 
> 
> 
> =====
> Davanum Srinivas - http://webservices.apache.org/~dims/
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Web Hosting - establish your business online
> http://webhosting.yahoo.com
-- 
Daniel Elenius <da...@student.liu.se>


Re: EngineConfiguration [was Re: setEngineConfiguration]

Posted by Dan Diephouse <da...@envoisolutions.com>.
You probably have already done this, but have you taken a peek at the 
org.apache.axis.configuration.ServletEngineConfigurationFactory? That gives a 
good example of how it is done.

- Dan

Daniel Elenius wrote:
> Davanum,
> 
> Thanks for the guidance.
> 
> I wrote my own class called JXTAEngineConfigurationFactory, which
> implements EngineConfigurationFactory (I modelled it after
> EngineConfigurationFactoryDefault).
> 
> Now, how do I make EngineConfigurationFactoryFinder.newFactory()
> automatically find and return my factory? I don't understand the
> comments for newFactory()...
> 
> (I looked at the Jabber stuff, but it doesn't use any
> EngineConfiguration stuff. JXTA-SOAP didn't use to either, but I needed
> to do it for my changes to it).
> 
> regards,
> /Daniel

-- 
Dan Diephouse
http://junktoast.com