4 Replies Latest reply on Jul 20, 2005 5:00 PM by platinumdragon

    jboss.xml seems to be ignored in EJB 3?

      Hello again,

      I am attempting to use EJB 3 (AS 4.0.3 RC1) on Windows XP Pro SP2.

      I have a working sample stateful EJB and can access it through its remote interface classname in JNDI, as is the default behavior in EJB 3.

      But, I would like to access it through a more generic name. I understand that jboss.xml allows you to override the default behavior, thus I have:

      <jboss>
       <enterprise-beans>
       <session>
       <ejb-name>DefaultProxy</ejb-name>
       <jndi-name>com/mycompany/proxy/default</jndi-name>
       </session>
       </enterprise-beans>
      </jboss>
      


      and have placed this in the ./META-INF directory.

      In the DefaultProxy, I have the annotation

      @Stateful(name="DefaultProxy")
      


      I am assuming this is how the entry in jboss.xml gets linked to the EJB.

      And all of this gets packaged up in a proxy.ejb3 file and deployed. The problem is, that it still gets deployed under the remote interface name.

      It seems to me that the jboss.xml is either being ignored, or I am not doing what is necessary to link the two of them. I've been through all of the tutorials I can find, but this seems to be a fuzzy spot.

      Could someone please enlighten me?

      Thanks,
      Mike