[jboss-user] [JNDI and Naming] - Re: Why JBoss enforces java:/ java:boss/ naming and how to override it in the jboss-ejb3.xml?

Mark Ashworth do-not-reply at jboss.com
Fri Jan 20 07:50:58 EST 2012

Mark Ashworth [https://community.jboss.org/people/mpashworth] created the discussion

"Re: Why JBoss enforces java:/ java:boss/ naming and how to override it in the jboss-ejb3.xml?"

To view the discussion, visit: https://community.jboss.org/message/647827#647827

I worked around this by using JNDI environment property, e.g.

private Queue notifyEventQueue;

And then in the web.xml, mapping this using the resource-ref node.


This also works for the MDB activation configuration.

        name = "NotificationProcessor",
        messageListenerInterface = MessageListener.class,
        mappedName = "java:comp/env/yellowfire/queue/notification",
        activationConfig = {
            @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
            @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
            @ActivationConfigProperty(propertyName = "destination", propertyValue = "java:comp/env/yellowfire/queue/notification"),
            @ActivationConfigProperty(propertyName = "clientID", propertyValue = "notification")

Now all the JNDI configuration has moved from the code to the web.xml file which is more manageable but I would really like to use the jboss-ejb3.xml, glassfish-ejb-jar.xml, etc to contain the actual implementation JNDI names and the web.xml to contain a link to those files. 

Where can I find the XSD of the jboss-ejb3.xml so that I can resolve this?

Mark P Ashworth
 http://mpashworth.wordpress.com/ http://mpashworth.wordpress.com

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120120/92375c67/attachment-0001.html 

More information about the jboss-user mailing list