This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JBoss/WildFly and the fly likes Create EJB2.1 session in JBoss 7.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Create EJB2.1 session in JBoss 7.1" Watch "Create EJB2.1 session in JBoss 7.1" New topic
Author

Create EJB2.1 session in JBoss 7.1

Dennis van Beek
Greenhorn

Joined: Aug 29, 2009
Posts: 5

Hello,

I'm migrating our projects from JBoss 4.2.3 to JBoss 7.1.
There are a lot of migration tutorials and examples, but for some reason I can't get it to work.

It looks like my EJB's are deployed correctly, but I can't create the session.

When I start jboss, it notifies that the EJB's are deployed, for example:


If I try something like:

I get the error (on lookup):


And if I try something like:

I get the error (on create):


Can anybody tell me what I'm doing wrong?


Edit:
Sorry, I solved it just now...

I had to add the jndiProperty:
jndiProperties.put("jboss.naming.client.ejb.context", true);

and I had to use the right (exported) jndi name:
"myApp/core-ejb/PlannerSession!nl.remote.plannersession.PlannerSessionHome"
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Create EJB2.1 session in JBoss 7.1