Congratulations Bill! > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Bill Burke > Sent: lundi, 17. mars 2003 03:58 > To: Jboss-Dev > Subject: [JBoss-dev] AOP remoting 1st iteration > > > First iteration of POJO/AOP remoting is here. It uses the new JBoss > Remoting framework > > You can remote any object instance of any class. I'll write > some real doco > later, but here's the basics: > > { > POJO remote = new POJO("hello"); > Dispatcher.singleton.registerTarget("myobj", remote); > > POJO proxy = (POJO)Remoting.createRemoteProxy("myobj", > remote.getClass(), > new InvokerLocator("socket://xeon:5150")); > } > > That's it. > > There's a few requirements > > 1. You must have an empty/default constructor defined in the > Class of your > object. > 2. Invocations on remote methods or fields must be Serializable. > > Things to know? > 1. You cannot invoke remotely on fields unless the client is a JBoss > instance that has AOP instrumented the class you have remoted. > > > How to use it? I'll write up better documentation later, > but, there's an > example in: > > testsuite/src/main/org/jboss/test/aop/bean/RemotingTester.java > testsuite/src/main/org/jboss/test/aop/test/RemotingUnitTestCase.java > testsuite/src/resources/aop/META-INF/jboss-service.xml > > How does it work? > I've implemented some code that uses Javassist to generate a > proxy class of > a given Class. It inherits from the given class and > implements every public > method of that class. The implemented method does > interceptor chains and > such. The proxy class implement java.io.Externalizable so > that it can be > marshalled across the wire and such. > Remoting.createRemoteProxy calls the > class proxy generator and inserts simple simple instance > interceptors to > handle the remoting. > > FYI, the JBoss Remoting framework rocks. Its easy to set up > and it handles > everything for us. > > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development >
------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
