Umm...This is how JBoss has worked since like 2.4 :-)
Basically if you want to do this pre-1.5 but post 1.2:
RemoteInterface --> GenericInvocationHandler --> RMIInvokerStub -->JRMP--->RMIInvoker -->RemoteObject
Its not brittle at all.
Phillip Rhodes wrote:
I found this interesting article earlier. It seems that in jdk 1.5 and later, RMI now officially supports the use of dynamic proxies for the remote stubs. So, no more rmic! Yay.
Of course this was possible before, but you had to do some manual, possibly error-prone, and likely brittle manipulations to make it work. Now, if I'm understanding this article correctly, you just export your object and if there's no pregenerated stub class, it builds a dynamic proxy class for the stub. Easy as pie. :-)
http://today.java.net/pub/a/today/2004/06/01/RMI.html
TTYL,
Phil
_______________________________________________ Juglist mailing list [email protected] http://trijug.org/mailman/listinfo/juglist_trijug.org
