Menu

jndi lookup in Jboss use business delegate

Anonymous
2003-03-04
2003-09-08
  • Anonymous

    Anonymous - 2003-03-04

    Hi All

    I am using the business delegate to access a remote SLSB in JBoss.

    My delegateimpl extends AbstractRemoteStatelessSessionServiceLocator. My SLSB has jndi name 'ejb/Exporter', in my client code I lookup the SLSB exactly by that name, but the look up failed (throw NamenotFoundException).

    I looked into AbstractRemoteStatelessSessionServiceLocator, found it use AbstractJndiLocator to do the actural lookup, it prepend 'java:comp/env/' to the jndi name before the lookup.

    I serched the JBoss forums, and found that name spaces under 'java:' are only accessable within JBoss container, not from outside, that is why the look up failed.

    Has any one tried using business delegate (AbstractRemoteStatelessSessionServiceLocator) to access JBoss ejb?

    Thanks

    Dong

     
    • MK

      MK - 2003-09-05

      Is there a simpler way to pass userid and pwd to the context?

       
      • Rod Johnson

        Rod Johnson - 2003-09-06

        Can you please be more explicit? Simpler than what? Simpler when doing what?

        Regards,
        Rod

         
    • Dmitriy Kopylenko

      Dong,

      what version of Spring you are using?

      Dmitriy.

       

Log in to post a comment.

MongoDB Logo MongoDB