Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI lookup question  RSS feed

 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
code is this
String name=
InitialContext ctx = new InitialContext();
ctx.lookup(name)
What would be a reason for this working when
name="ejb/Branch";
but not when
name="java:comp/env/ejb/Branch";
I am using JBOSS with XDoclet. it says comp is not bound or something like that.
Thanks!
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I found the answer here http://www.coderanch.com/t/88121/JBoss/cd-CD-not-bound
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!