Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-165

Deployment sharing the same servlet context

XMLWordPrintable

      The issue is that I can not have two ejbs with uri that work. The last one works. They have the same base context but differ later in the context.

      I will post both jboss.xml files

      Code:

      <jboss>
      <enterprise-beans>
      <session>
      <ejb-name>HelloWorld2Bean</ejb-name>
      <jndi-name>MyHelloWorld2</jndi-name>
      <port-component>
      <port-component-name>HelloWorld2</port-component-name>
      <port-component-uri>/jboss-net/services/HelloWorld2</port-component-uri>
      </port-component>
      </session>
      </enterprise-beans>
      </jboss>

      Code:

      <jboss>
      <enterprise-beans>
      <session>
      <ejb-name>HelloWorldBean</ejb-name>
      <jndi-name>MyHelloWorld</jndi-name>
      <port-component>
      <port-component-name>HelloWorld</port-component-name>
      <port-component-uri>/jboss-net/services/HelloWorld</port-component-uri>
      </port-component>
      </session>
      </enterprise-beans>
      </jboss>

      Found some more information

      I looked at the war file that was generate off of both ejbs. They both gen'd the same jboss-web.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-web>
      <context-root>/jboss-net</context-root>
      </jboss-web>

      So how do I get two ejbs working that use /jboss-net/services as the base context

      one with
      /jboss-net/services/helloworld
      /jboss-net/services/helloworld2

              tdiesler@redhat.com Thomas Diesler
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: