[jboss-user] [EJB 3.0] - Re: java.lan.ClassCastException when casting to remote bean
jaikiran
do-not-reply at jboss.com
Fri Nov 21 05:57:55 EST 2008
"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
|
| opinions?
|
That's the "default" JNDI naming scheme. You can change the jndi name to any name of your choice. See this for an example http://www.jboss.com/index.html?module=bb&op=viewtopic&t=142976
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191197#4191197
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191197
More information about the jboss-user
mailing list