Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How set JNDI Name for beans.xml file externally

 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic