[jboss-user] [EJB 3.0] - Re: java.lan.ClassCastException when casting to remote bean
ALRubinger
do-not-reply at jboss.com
Mon Mar 23 16:09:01 EDT 2009
"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#4220408
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220408
More information about the jboss-user
mailing list