This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we deploy Ejb3.0 as a EAR file.

 
Arun varma
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am deploying Ejb3.0 Stateless session bean as a EAR file into jboss4.2.2 server.Deployment is sucessfull but i cant able to access it.
//Lookup code
Hello hello = (Hello) ctx.lookup("HelloBean/remote");

Exception comes as "HelloBean not bound"

When i deploy bean as Ejb jar file its working fine, I can lookup bean, No exception and get correct output.

Please tell me If i deploy bean as a EAR file how to lookup.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you deploy the EJB through an EAR, the default JNDI name for the bean is of the format "EARName/BeanClassName/remote" and "EARName/BeanClassName/local". You can even use the JNDIView from the jmx-console to see the jndi-name to which the bean is bound.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic