• 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 access Websphere environment variable ?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to use Name Space Binding (Binding Type � String) to access WebSphere Variables from EJB.

For example:
At WebSphere application server, JAVA_HOME is defined at (Environment -> WebSphere Variables) as

JAVA_HOME, C:\WebSpherev6\AppServer/java


I would like to retrieve value of JAVA_HOME variable from EJB running within this application server.


Here is what I am attempting to do:
At (Environment -> Naming -> Name Space Bindings), I defined new Name Binding of String type.
Binding Type � String
Binding Identifier - SOME_NAME_ID_01
Name in Name Space - SOME_NAME_01

String Value = �Some Text�

I can access String Value.

But, how String Value should look like in order for me to access value of JAVA_HOME?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic