1 Reply Latest reply on Jun 21, 2010 12:19 PM by Laird Nelson

    How do I specify JNDI name for a .rar in an .ear?

    Laird Nelson Novice

      I have a resource adapter that is packaged as part of an .ear file.

       

      Neither the .ear file nor the .rar file within it are supposed to be application server specific.

       

      I have an ejb in a jar in the same .ear that declares a @Resource field.  My intention is to have the user connection factory injected into that @Resource field.

       

      Currently, JBoss 6 M3 requires a mapped-name attribute on that @Resource annotation.

       

      What value should I put there?

       

      That of course implies the question: how do I set what name a resource adapter is available under?

       

      Thanks,

      Laird