Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JNDI and the Local Interface blues

Status
Not open for further replies.

Stedo

Programmer
Sep 15, 2005
44
SE
hi,

I'm having problems getting Local interfaces to work using JBoss. I have two session beans one bean with a remote interface called from a client and the other with a local interface with methods called from the first bean. HoweverI can't seem to get the local bean to bind to the correct JNDI name. Deployment goes fine but when I try to run the client the method on the remote bean is called which in turn attempts to get the local interface of the local bean, at this point the application fails with a NameNotFound exception. I've checked the names and the ejb-jar file and everything looks okay. Can anyone help??

Thanks in advance.
Stephen
 
How about posting your descriptors?

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
hi,

Thanks for the response but I've solved it now. Not really sure why it wasn't working before but after fiddling with the ejb-jar.xml file for ages it came good.

Cheers
Steve
 
Ah, the joys of EJB development :)

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top