[jboss-user] expect a slsb but get a proxy

Heping Zhang phoenix.zhp at gmail.com
Sat May 19 05:27:30 EDT 2007


hi, I need a slsb so I do like this:
 ctx = new InitialContext();
 bean = (Calculator) ctx.lookup("favorites/UsersFacade/local");
UsersFacade is a slsb implements UsersFacadeLocal interface. however, when
it runs, I get a ClassCastException. And I find out that the looup method
actually returns a Proxy class has all the methods UsersFacade has. I am
very confused. Could someone tell me why this happen? thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20070519/351bc07a/attachment.html 


More information about the jboss-user mailing list