Specifying my MDB's destination to a message destination reference instead of a JNDI queue
Joined: Feb 09, 2010
I'm wondering if when I specify the destination that my MDB listens on, can I specify a message destination reference instead of an actual JNDI location for a Queue?
I realize that 'destination' is a required attribute for the MDB, hoewever I can't figure out how to get it to point to a reference instead of a JNDI location. I have had some success using this for regular Queues etc.. by using the @Resource(name=... instead of @Resource(mappedName=.... however the only property I can specify is 'destination' for my MDB to listen on and it seems to be behaving according to 'mappedName'.