aspose file tools*
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
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