This content has been marked as final.
Show 1 reply
-
1. Re: JBoss Remoting on JBossAS4.2 usage
ron_sigal Nov 14, 2008 12:55 AM (in response to riizzz)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.