Well, it's probably true that you might get better performance using a pure
Remoting solution, but you would need to duplicate some of the services
provided by EJB3 and the Application Server, which, depending on which services
you need, could be a more or less burdensome undertaking.
I would suggest, as an alternative, changing your EJB3 interface so that,
instead of returning the entire list at once, you just return a piece of it at
a time. For example,
| @Remote
| public interface PersonManager {
| Person getPersons(int from, int count);
| }
|
where getPersons(7, 11) would get persons 7 through 17 (if they exist).
If you still want to use Remoting directly, then you would have to write an
instance of org.jboss.remoting.ServerInvocationHandler which returns the list
of "persons" for you.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189281#4189281
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4189281
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user