[jboss-user] expect a slsb but get a proxy
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...
More information about the jboss-user