Discussions

EJB design: Getting Local Reference

  1. Getting Local Reference (2 messages)

    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
    kapil
  2. Getting Local Reference[ Go to top ]

    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

    <local-jndi-name> </local-jndi-name>

    Raffi
  3. Hi,

    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.

    http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd