You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Hart, Andrew B." <AH...@Akimeka.com> on 2013/08/07 18:41:27 UTC
passing a custom property to an endpoint
This is probably very simple to do, but I'm not overly familiar with Spring or CXF...
I have some web services that are send JMS messages to perform some asynchronous processing. My web service implementations extend an AbstractAsyncService class where I have put the code that deals with JMS. It needs the URL of the Java Naming Provider and so I'd like to pass this in from the jboss-cxf.xml file that configures the jaxws:endpoint.
What would be the best/most conventional way of accomplishing this?
If you specify a jaxws:properties child element, how do you access those properties? Or should that only be used for jaxws specific properties?
Thanks.
RE: passing a custom property to an endpoint
Posted by "Hart, Andrew B." <AH...@Akimeka.com>.
Ok, I ended up doing it this way and it seems to work, please advise if there's a better way:
<bean id="WebServiceImpl" class="com.akimeka.ws.myDomain.MyWebService">
<beans:property name="jnpProviderUrl" value="jnp://hostname.myDomain.com:1099" />
</bean>
<jaxws:endpoint
id=MyService
implementor='#WebServiceImpl'>
[...]
</jaxws:endpoint>