This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Can we deploy Ejb3.0 as a EAR file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Can we deploy Ejb3.0 as a EAR file." Watch "Can we deploy Ejb3.0 as a EAR file." New topic
Author

Can we deploy Ejb3.0 as a EAR file.

Arun varma
Greenhorn

Joined: Mar 21, 2004
Posts: 9
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

Joined: Jul 20, 2005
Posts: 10146
    
165

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.


[My Blog] [JavaRanch Journal]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Can we deploy Ejb3.0 as a EAR file.