EJB design: Getting Local Reference
I am using Weblogic server , and have specified a start up class in which i am trying to get local refernce of my bean , but it throws Name not found exception in look up.But if i try to get remote reference , am able to get it.
What can be the problem?
thanx in advance
Did you specify a JNDI name for the local interface? Remote and Local interfaces each require a separater JNDI name. Make sure that you have specified a value for the following element in weblogic-ejb-jar.xml
It is mandatory to give the local-jndi-name in the weblogic-ejb-jar.xml inorder to access the bean as a local one. if u had already provided the jndi-name then u can only access the bean as a remote one.
It would be better if u have a look at the following link.