That worked great. Thanks again!

An update to the wiki for this might be a good idea.

-ayush

-----Original Message-----
From: Daniel Kulp [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 29, 2008 5:54 PM
To: [email protected]
Cc: Ayush Gupta
Subject: Re: Configure JMS Transport With Code?


You MIGHT be able to do this:

factory.setStart(false);
Server serv = factory.create();
JMSDestination dest = (JMSDestination)serv.getDestination();
AddressType address = dest.getJMSAddress();
address.setJndiDestinationName(....);
....
serv.start();


Dan



On Friday 29 February 2008, Ayush Gupta wrote:
> The documentation talks about configuring JMS transport for a service
> via either WSDL or through cxf.xml. Is there a way that I can set or
> override these properties using code? More specifically, I'd like to
> set the following things at runtime:
>
> 1.       jndiDestinationName
>
> 2.       jndiReplyDestinationName
>
> 3.       The "java.naming.provider.url" JMSNamingProperty
>
>
>
> I'm guessing that this has to be done before I call create() on my JMS
> instance of JaxWsServerFactoryBean. Any thoughts on how I can do this?
>
>
>
> Thanks
>
> -ayush



-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to