Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

New to EJB

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:



 
author & internet detective
Posts: 40912
840
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
[Thumbnail for JNDI-view.jpg]
This is my JNDi view
 
Jeanne Boyarsky
author & internet detective
Posts: 40912
840
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic