0 Replies Latest reply on May 21, 2009 7:16 PM by Joshua Tharp

    @Resource(name =

    Joshua Tharp Newbie

      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?