tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schlichtherle <>
Subject ejb-jar.xml ignored for some EJB JAR in EAR
Date Thu, 29 Aug 2013 07:19:11 GMT

I have two EJB JARs in my EAR. Each of them has an ejb-jar.xml which configures the type of
destination for messaging like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns = ""
             xmlns:xsi = ""
             xsi:schemaLocation = ""
             version = "3.1">
                    <mapped-name>jms/TrueUpdate Agent</mapped-name>

and the corresponding code looks like this:

    public class UpdateManagerBean extends ... {

        @Resource(name = "destination", lookup = "jms/TrueUpdate Agent")
        private Destination destination;


The purpose here is to define the type of Destination (Queue or Topic) at deployment time.

This works fine with the other bean in the EAR, but not the bean shown here. An example EAR
can be found in the ticket I created yesterday.

This used to work in 1.5.2, so I suppose it's a regression.


View raw message