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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Is there a simpler way to pass userid and pwd to the context?
Can you please be more explicit? Simpler than what? Simpler when doing what?
Regards,
Rod
Dong,
what version of Spring you are using?
Dmitriy.