"manemannen" wrote : SimpleStatefulBeanRemote o = (SimpleStatefulBeanRemote)
ctx.lookup("simpleserver/" + SimpleStatefulBean.class.getSimpleName() +
"/remote");
| |
|
| I have seen many examples of this and it introduces a dependency from the client to
the actual implementation and obsoletes the purpose of interfaces - weird
It's actually just that the default JNDI name uses the ejb-name, which in turn is
"BeanImplementationClass.class.getSimpleName()". If you manually say
@Stateless.name == "whatever", then the JNDI name is
"appName/whatever/remote". So there's not *really* an impl dependency. ;)
S,
ALR
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220408#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...