[jboss-user] [JBossWS] - Anyone know how to get the context root of a Session Bean en

natebowler do-not-reply at jboss.com
Thu Mar 22 13:00:46 EDT 2007


I have a JBossWS (1.2.0) web service bound to a SSB. I have specified the port-component in jboss.xml as follows:

 <port-component>
            <port-component-name>API</port-component-name>
            <port-component-uri>testWS/API</port-component-uri>
         </port-component>

This works great, and I the WS is bound to http://hostname/testWS/API. 

Is there a way, programmatically to get the <port-component-uri> setting from my SessionBean in jboss.xml? I need to publish this URL in a different location in my application, and I know the JBossWS war file does this, but I'd like a code snippet from someone that knows how this works.

Any help would be appreciated.

Thanks,
Nate


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030722#4030722

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030722



More information about the jboss-user mailing list