wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes How set JNDI Name for beans.xml file externally Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "How set JNDI Name for beans.xml file externally" Watch "How set JNDI Name for beans.xml file externally" New topic
Author

How set JNDI Name for beans.xml file externally

Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
In beans.xml file i am senting JNDI as shown below


Everything is working fine.
The problem with above approch is that i am hard coding jndiName as myJNDI.
My JNDI Name changes frequently so every time i have to change beans.xml file and change value for jndiName.

I don't want to change beans.xml file every time.I want some external file where i can specify jndiName so that when change is required for JNDI name
i need to change external file only.

Thanks for Help.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How set JNDI Name for beans.xml file externally
 
Similar Threads
Spring configuration for Testing JMS using Junit
MDB @PostConstruct error
Migrating from glassfish to tomcat6 (jdbc jndi connection issues also)
tomcat-Jboss-EJB3 integration p/b
Testing persistence Api(EJB 3) outside jboss container