cancel
Showing results for 
Search instead for 
Did you mean: 

JNDI Lookup problem

MichaelFavrot
Employee
Employee
0 Kudos

I am porting a J2EE v2.1 application to Netweaver v7.1EHP1. I have a Stateless Session Bean with an environment entry in the ejb-jar.xml...

<env-entry>

<env-entry-name>dataURL</env-entry-name>

<env-entry-type>java.lang.String</env-entry-type>

<env-entry-value>http://some.location.com</env-entry-value>

</env-entry>

Within the ejbCreate() method of the Session Bean, I do a lookup of the enviroment entry using the

JNDI - "java:comp/env/dataURL"

I get an error a "NameNotFoundException: Object not found in lookup of dataURL"

If I use the JNDI Browser within the Netweaver Administration Console, I can find the environment entry only within the ejbContexts (Root/ejbContexts/com.blah/MyEAR/module-mine_ejb.jar/MySessionBean/java:comp/env/dataURL)

So, what am I doing wrong? Any help would be greatly appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

MichaelFavrot
Employee
Employee
0 Kudos

figured it out