[jboss-user] [EJB/JBoss] - use remote interface successful, but use local interface fai

xzs2008 do-not-reply at jboss.com
Mon Jul 2 21:33:05 EDT 2007


I devolep a EJB use jboss 4.05 .  

use romote interface success.

 edm = (EdmService) ctx.lookup("EdmService/remote");
 Employee employee = edm.Login("xzs","123"); // ok

but use local interface failed!
  edm = (EdmService) ctx.lookup("EdmService/local");
  Employee employee = edm.Login("xzs","123"); // failed

error info:
java.lang.ClassCastException: com.byd.edm.domain.Employee
08:59:00,843 ERROR [STDERR] 	at $Proxy112.Login(Unknown Source)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059772#4059772

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059772



More information about the jboss-user mailing list