• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to use JNDIs configured on different environments at different levels?

 
Ranch Hand
Posts: 114
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have my application running on different environments such as development, testing, production ,etc.
Server is Websphere Application Server.
The problem is my JNDIs are configured on development environment server at cell level whereas on testing environment at cluster level.
Earlier all the JNDIs were on cell level everywhere and there was no problem.



For cell level JNDI , the jndi-name prefix that WAS makes us use is 'cell/persistent' whereas for cluster level JNDI, the jndi-name prefix that WAS makes us use is 'cell/cluster/FDKFDS'
where 'FDKFDS' is the cluster name.

So how should I write my jndi-name in code in order to make all this work ?


 
Tiya Khambadkone
Ranch Hand
Posts: 114
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Solution: use spring profile

http://xkcb.blogspot.com/2013/03/environment-specific-spring-profiles-on.html
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic