Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New to EJB

 
Ankit Mishra
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have just started working with EJB 2.1 but unable to run even a single example.

I am using weblogic server 9.2.

I have created a session bean and configured these deployment descriptors in META-INF directory
weblogic-ejb-jar.xml
ejb-jar.xml
application.xml
packaged above in a jar file and deployed on server.

But, I don't know about JNDI lookup. I have made a client which is setting up the context but I cannot view JNDI tree in my weblogic server.

Any help will be highly appreciated


Below is the client code:



 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit,

This looks suspicious. Usually from java we have "java:comp/env/myJndiName".

Also, does WebLogic have an admin console that you can use to browse the JNDI? This will tell you if your EJB got deployed properly and is sitting in the JNDI where you think it is.
 
Ankit Mishra
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne ,

Thanks for you reply.

I have done that also what you suggested but in vain.

My ejb.jar is getting deployed as a library in weblogic server.

In JNDI tree i could just view the domain server I created and some other things but not the EJB i have deployed.

It will be great if you could help me in this regard.

If required will share other files as well





JNDI-view.jpg
This is my JNDi view
[Thumbnail for JNDI-view.jpg]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like the EJB might not have gotten deployed. I'm moving this thread to our WebLogic forum where people more familiar with WebLogic hang out.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic