1 Reply Latest reply on Feb 27, 2006 9:59 AM by fss

    Context-root for EJB service-endpoint

    Kristof Taveirne Newbie

      Hi,

      I'm using an EJB2.1 session bean as a web service endpoint. When I deploy the context-root is equal to the name of the jar file the SB is in.

      Is there a way to change this? Maybe in a jboss-webservices.xml deployment descriptor? But I can't find any documentation on that.

      Can somebody help me out?

      thanks,
      Kristof.

        • 1. Re: Context-root for EJB service-endpoint
          fss Newbie

          Hi Kristof,

          you can set the context-root in the jboss.xml.

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE jboss PUBLIC
           "-//JBoss//DTD JBOSS 4.0//EN"
           "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
          
          <jboss>
           <enterprise-beans>
           <session>
           <ejb-name>YourBean</ejb-name>
           <jndi-name>ejb/YourBean</jndi-name>
           <port-component>
           <port-component-name>YourBean</port-component-name>
          <port-component-uri>your-context-root/*</port-component-uri>
          </port-component>
           </session>
           </enterprise-beans>
          </jboss>


          ,Florian