It appears to me that I just cannot do this configuration via the API and must use the WSDL or cxf.xml. It will be great if someone could confirm this?
If that is true then JMS configuration does seem to go against the "Rules of Configuration" mentioned at http://cwiki.apache.org/CXF20DOC/configuration-for-developers.html :) 1. Keep in mind all your users. We have three configuration scenarios that we worry about. 1. Spring 2.0 Configuration Files 2. API users 3. Configuration embedded in the WSDL 2. Don't hide configuration objects in private fields, make it available via the API Remember that a lot of users won't touch XML configuration. Example: a user creates a Client and they want to change the proxy server. We should make this as easy as possible instead of forcing them to use XML or navigate a bunch of objects. -----Original Message----- From: Ayush Gupta [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 11:03 AM To: [email protected] Subject: Configure JMS Transport With Code? 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
