I have defined the following environment variable for a stateful session
bean:

      <env-entry>
     <env-entry-name>UserJNDIName</env-entry-name>
     <env-entry-type>java.lang.String</env-entry-type>
     <env-entry-value>InfocusUser</env-entry-value>
      </env-entry>

Inside of the SSB( Stateful Session Bean ), I try and access the
environment variable as follows:

InitialContext lContext = new InitialContext( );

String lUserJNDIName = ( String ) lContext.lookup
( "java:comp/env/UserJNDIName" );

This does not seem to work.

I keep getting UserJNDIName not found.

Is there any way that I can make sure that the variable got bound to the
namespace?
I am doing something wrong in the lookup?

Any answers would be appreciated.


Adam

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to