Discussions

EJB programming & troubleshooting: local jndi name in JBOSS

  1. local jndi name in JBOSS (1 messages)

    Hi,
    I have an stateless EJB deployed on JBOSS.
    This EJb has local and remote interfaces.
    In the jboss.xml file I declared the same name as
    jndi-name and local-jndi-name.
    The problem is that anytime I try to get a reference to
    the localHome interface I actually get reference to
    the home (remote) interface.
    I use the default InitialContext since my client
    is on the server side.
    My question is : Could I use the same name
    as jndi-name and local-jndi-name?

    thanks
    Stan.
  2. local jndi name in JBOSS[ Go to top ]

    You must use different names.