This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Websphere and the fly likes JNDI name for local lookup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "JNDI name for local lookup" Watch "JNDI name for local lookup" New topic

JNDI name for local lookup

Tulika Garg

Joined: Mar 27, 2009
Posts: 6

I am websphere newbie. I have a J2EE application that is written for JBoss and now I am trying to port it to WAS 7. I am using EJB 3.
I defined JNDI names for my local and remote interfaces in META-INF\jboss.xml
Now I want to do something similar for WAS so I can give the same JNDI names in WAS as I use in JBoss so I that need not change my code.

Say I have one stateless session bean and I have defined its local and remote JNDI names in jboss.xml as :


So after a bit of googling I found out about ibm-ejb-jar.bnd.xml
I defined my JNDI names in ibm-ejb-jar.bnd.xml as:
<session name="Authentication">
<interface class="" binding-name="CoreSvc/Authentication/remote"/>
<interface class="" binding-name="CoreSvc/Authentication/local"/>

But when I start this app in WAS, I get exception saying: The specific Java Naming and Directory Interface (JNDI) binding name provided for a local bean does not begin with ejblocal:. The CoreSvc/Authentication/local binding name that is specified for the Authentication bean in the CoreSvc.jar module does not begin with ejblocal:.

Is it necessary for JNDI names for local interface to begin with "ejblocal:" ?

I agree. Here's the link:
subject: JNDI name for local lookup
Similar Threads
Jboss and Ejb 2.1 ejb-ref lookup
Deployment errors in JBoss 5.1
ejb-ref lookup does not work with JBoss 4.2.0GA _CP07, pleas help.
Question on Instance Per Transaction
How do I implement BOTH a local and a remote client view for a bean?