This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

aliases for resources injection

 
matt iverson
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i'm using Glassfish 3.1 as application server for my EAR. To create the JMS and JDBC resources required by my application i have the glassfish-resource.xml file. These resources are created with application scope so when I inject them i have to use "java:app/" e.g. @Resource(mappedName="java:app/jms/myResource").
Is possible to create an alias so i don't have to prepend the "java:app"? What i want to do is @Resource(mappedName="jms/myResource").
I need this because i have to deploy my application also in Websphere 8. There i have to create the resources before deploying the application and therefore the scope is different.
The glassfish-ejb-jar.xml may help?

Matt.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic