This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Create EJB2.1 session in JBoss 7.1  RSS feed

 
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"
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!