On Wed, 6 Sep 2000 23:21:38 -0400, James Cook <[EMAIL PROTECTED]> wrote:
>I wonder if this interview was pre-Dynamic proxies. They have so much more
>flexibility than this construct. They give you the pre, post, and a lot
>more. You can even end up invoking a completely different method than the
>one that was called. You can reuse the proxy "wrapper" class on any class.
>Imagine subclassing *all* of your classes to get some simple timestamping
>pre- and post- routines to execute. ugh.
I just posted a HOWTO on Dynamic Proxies with RMI (=removing the need
for rmic-stubs, and how to export DP's as RMI objects) in the RMI-USERS
list:
http://archives.java.sun.com/cgi-bin/wa?A2=ind0009&L=rmi-users&D=1&O=D&P=6471
See the thread plus my updates at:
http://archives.java.sun.com/cgi-bin/wa?A1=ind0009&L=rmi-users&O=D&H=0&D=1&T=1
This could easily be used to implement a fairly lightweight and
extensible EJB container I think. Trivial even. The proxies are, as you
note, extremely reusable. See my (UPDATE) message with ReconnectProxy
and RetryProxy for example. One could imagine putting in a FailoverProxy
that switches the name that the ReconnectProxy uses to lookup the server
with.
/Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
===========================================================================
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".