This content has been marked as final.
Show 4 replies
-
1. Re: Domain-specific information in @Resource
bill.burke Dec 14, 2005 12:00 PM (in response to euvitudo)name is just the ENC name the destination will be bound to, do
@Resource(mappedName="queue/myDestination")
private Destination myDestination;
mappedName in jboss will always refer to the global jndi name. -
2. Re: Domain-specific information in @Resource
euvitudo Dec 15, 2005 3:19 PM (in response to euvitudo)"bill.burke@jboss.com" wrote:
name is just the ENC name the destination will be bound to, do
@Resource(mappedName="queue/myDestination")
private Destination myDestination;
mappedName in jboss will always refer to the global jndi name.
This could work, except that mappedName is not an interface method in javax.annotation.Resource, nor is it a method in org.jboss.ejb.ResourceImpl. Hence, compilation fails. (FYI, I'm using JBoss-4.0.3SP1.)
Initially I was going to make the suggestion of (seemingly more appropriately) adding a Destination class in org.jboss.mq.server.jmx, or the future messaging component. I've just made it now.
(Sorry for the delayed reply.)
Cheers! -
3. Re: Domain-specific information in @Resource
bill.burke Dec 15, 2005 10:03 PM (in response to euvitudo)I thought you were using RC3? It should have mappedName
-
4. Re: Domain-specific information in @Resource
euvitudo Dec 15, 2005 11:08 PM (in response to euvitudo)Hmm... I installed 4.0.3SP1 using the webstart installer. I guess that doesn't include RC3?
Anyway, I'll install RC3 manually, and go from there.
Thanks!