1 Reply Latest reply on Mar 28, 2007 2:13 PM by jason.greene

    Anyone know how to get the context root of a Session Bean en

    natebowler

      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