Win a copy of Kotlin in Action this week in the Kotlin 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!