Hi

You cant if i understood it correctly
Le 3 déc. 2013 10:23, "ZhongGuan" <[email protected]> a écrit :

> Hi
> In tomee.xml, I define a queue with
>     <Resource id="jms/FooQueue" type="javax.jms.Queue">
>            destination FooQueue
>     </Resource>
> I think id is JNDI name, and the real name is "FooQueue".
>
> In MDB, I can use mappedName= "jms/FooQueue" OR
> @ActivationConfigProperty(propertyName = "destinationName", propertyValue =
> "FooQueue")
> to config.
>
> If I change the JNDI name in tomee.xml, I have to change the java source.
> I do not want that, so I can add <resource-env-ref> in web.xml to define a
> local jndi name.
> and use this local JNDI name in MDB mappedName.
>
> If I change the real name of destination in tomee.xml, I also have to
> change
> the java source.
> I also do not want that.
>
> How can I do ?
>
> Thanks.
>
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/MDB-mappedname-or-destination-name-tp4666505.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to