my dog learned polymorphism*
The moose likes BEA/Weblogic and the fly likes New to EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "New to EJB" Watch "New to EJB" New topic
Author

New to EJB

Ankit Mishra
Ranch Hand

Joined: Jul 15, 2009
Posts: 40
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:





Regards,
Ankit Mishra (SCJP 5.0 93%), (SCWCD 5.0 97%)
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30764
    
156

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ankit Mishra
Ranch Hand

Joined: Jul 15, 2009
Posts: 40
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








[Thumbnail for JNDI-view.jpg]

Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30764
    
156

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New to EJB