This content has been marked as final.
Show 4 replies
-
1. Re: Reflection on EJB session bean on client side
bill.burke Feb 13, 2006 11:09 AM (in response to jc7442)MySession s = (MySession)ctx.lookup();
s.getClass().getMethod(...); -
2. Re: Reflection on EJB session bean on client side
abra20 Aug 29, 2006 4:58 PM (in response to jc7442)Hi!
I have the same problem and I couldnt get things working.
When I typecast the object returned by the lookup (a Proxy),
I get ClassCastException and I really don't understand why.
The callByValue is set true.
And, the only place where my interfaces are is in the ejb-jar
which is deployed inside an ear file.
I also have a ejb-client jar with only the interfaces and it
is located at server/default/lib so JBoss can load the interfaces.
What am I doing wrong?
Thanks -
3. Re: Reflection on EJB session bean on client side
bill.burke Aug 29, 2006 8:59 PM (in response to jc7442)have you set callbyvalue for JNDI? its in conf/jboss-service.xml
-
4. Re: Reflection on EJB session bean on client side
abra20 Aug 30, 2006 9:06 AM (in response to jc7442)That was it!
As Im using version 4.0.4, it is in deploy/naming-service.xml
Thank you!