Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Bean Environment

 
King Hong Chan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the HF book, is the context lookup should be begin with "java:comp/env"?

Because when I test in the Websphere studio, the "java:comp/env" should be ommited to work
 
King Hong Chan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I figured out what is the problem. If I ommit the java:comp/env, actually I am looking up the real JNDI service instead of the bean environment in the deployment descriptor file.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!