This content has been marked as final.
Show 1 reply
-
1. Re: Problem sending custom objects back through a stateless
vabrol Mar 20, 2006 9:05 PM (in response to res2681)"res2681" wrote:
I dont know how to get a custom object back from a method call to a
stateless session bean, if on the "model" side I take the data ant put it into
a HashTable then send it and on the "Controller/View" side I take the data
out and put it into a custom object it works just fine but I would realy like
to just send my own object. So if any one could help that would be great.
Here is the code:
InitialContext ctx = new InitialContext();
GeckoModelRemote gecko = (GeckoModelRemote) ctx.lookup
(GeckoModelRemote.class.getName());
List servicesList = gecko.getServices();
TestInterfaceRemote test = gecko.getTest(); <-- Fails here
The error is:
java.lang.RuntimeException: Could not resolve beanClass method from proxy call
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:169)