Rickard Öberg wrote:

> > When I created a simple session bean using j2ee-ri, it required the client
> > to have the client stubs that were generated by the DeployTool. However,
> > when I use the same session bean with OrionServer, it does not require the
> > client stubs. How does it work without the client stubs?
>
> AFAIK there are 3 approaches to stubs:
> 1 Generate and distribute manually (J2EE RI)
> 2 Generate and distribute using dynamic classloading (a la RMI/JRMP)
> (OrionServer)
> 3 Don't generate any stubs (EJBoss)
>
> The main difference is in administration, and should be hardest with 1
> and easiest with 3.

The use of java.lang.reflect.Proxy (or "no stubs") in EJBoss is really nice but
as I understand it you still need to dynamically or manually load the proxy
handlers to communicate back to the server. The java.lang.reflect.Proxy provides
you with a dynamic proxy generation on the client VM (providing your using JDK
1.3) but it doesn't eliminate the need for an InvocationHandler that smart
enough to connect to the server and handle things like transaction propagation
and communication of method invocations.  Of course, I'm basing my assessment on
EJBoss model from a few months ago and this may have changed. If not, I don't
think your use of java.lang.reflect.Proxy buys you much.

Richard

--
Author of Enterprise JavaBeans
Published by O'Reilly & Associates
http://www.EjbNow.com

EJB FAQ
http://www.jguru.com/faq/EJB

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to