This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using constants for jndi names  RSS feed

 
Nidhi Juneja
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
In my application I have few MDBs using Queues and Topics. I also have few stateless session beans. I want to use constants ( not thru an interface or a constant class ) for the jndi names for all of them instead of actually hardcoding these names while doing the lookups in the code. I am using weblogic 8.1. Is there any way constants can be set in ejb-jar.xml or weblogic-ejb-jar.xml to achieve this.

Will appreciate any inputs.
Thanks,
Nidhi
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can always set them as environment entries in the ejb-jar.xml using the env-entry element.
[ February 26, 2004: Message edited by: Chris Mathews ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!