I've been searching the 'net trying to find out how to use in JBoss 5.0.1.GA.
@Resource(name = "some/name")

However, all of the examples show the annotation used this way:

@Resource(mappedName = "some/jndi/name")

Also, the specification says that mappedName is a provider specific attribute, 
app servers aren't required to even implement it, and that it is absolutely not 
portable. All sound like good reasons to avoid using mappedName.

Since I can't seem to find any instructions (and guessing hasn't given me any 
results either), I'll ask. Is there a way to use the name form of the @Resource 
annotation in JBoss? If so, where can I discover (or configure) the name of the 
JMS topic I'm trying to inject?

Thanks,

Josh

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232598#4232598

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232598
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to