I don't think that I have the j2ee.jar in my classpath.

What would removing this jar do?

Adam


                                                                                       
                       
                    Thomas Kirsch                                                      
                       
                    <tkirsch@usa.        To:     JRun-Talk 
<[EMAIL PROTECTED]>                      
                    net>                 cc:                                           
                       
                                         Subject:     Re: [EJB Environment variables]  
                       
                    11/27/00                                                           
                       
                    06:58 PM                                                           
                       
                    Please                                                             
                       
                    respond to                                                         
                       
                    jrun-talk                                                          
                       
                                                                                       
                       
                                                                                       
                       




You might have to remove j2ee.jar from the classpath of your server.

[EMAIL PROTECTED] wrote:
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


____________________________________________________________________
Get free email and a permanent address at http://www.amexmail.com/?A=1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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?sidebarlists



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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