Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Create EJB2.1 session in JBoss 7.1

 
Dennis van Beek
Greenhorn
Posts: 6
Java Mac OS X Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic