"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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to