Its not necessary that you follow the default. You can provide the JNDI name
for your bean using @RemoteBinding annotation. For ex
@Stateless
@RemoteBinding(jndiBinding="MyStatelessRemote")
public class MyStatelessBean implements MyStatelessRemote
{
---
}
Client Code
Object ref = jndi
I've tried the following.
ctx.lookup("ejb/Session/remote");
and get "ejb not bound"
ctx.lookup("Session/remote");
and get "Session not bound"
What is the correct syntax for this?
Thanks
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947153#3947153
Reply
thanks for that.
When you say yourEjbProject, do you mean the package path?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947147#3947147
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947147
--
hi
jboss fulfills the latest sun spec, which changed the lookup.
try this
ctx.lookup("yourEJBProject/BeanName/remote|local");
|
regards,
patrick heusser
--
patrick heusser
http://www.x8ing.com/fractal/
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947