wood burning stoves 2.0*
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"
 
 
subject: Create EJB2.1 session in JBoss 7.1
 
Similar Threads
hello world problem with local interface and stateless session bean.
Problem with EJB lookup on JBoss 7.1
How does Jboss 7 AS registers JNDI
java.lang.IllegalStateException: No EJB receiver available for handling - again
Getting "No EJB receiver available for handling [appName:,modulename:EJB3TimerService,distinctname:]