PDA

View Full Version : Interop with Spring java?


MikeC
09-21-2006, 03:44 PM
I have a service in java that I can remote using spring remoting. Is there any interoperability with Spring.NET using any of the non-webservice mechanisms? (HTTPRemoting, Hessian, Burlap, etc.)? I'm trying to get away from the enormous overhead of all the XML tags around my data (which is large), and use some more streamlined serialization techniques.

Thanks,

Michael

Mark Pollack
09-25-2006, 03:36 PM
Hi,

I am currently using a JMS based MessageConverter that works on both .NET and Java. Tomorrow I'll be presenting a bit of this at the Spring Forward conference (http://springforward2006.com/), and hope to bundle it into CVS as a "Spring.NET" module. Currently it works with TIBCO EMS and have done initial testing with ActiveMQ as it now supports nested map messages. The approach involved coding the "business objects" or whatever you want to call the objects exchanged between .NET/Java in Java and then using Microsoft's Java Language Conversion Assistant (JLCA) to get the .NET version. This works pretty well. The converter is reflection based and also has optional compression. I haven't tried the .NET versions of hessian to see if they interop with the Java versions. I doubt the binary format of burlap is portable across platforms.

When I get back from the conference I'll post back more info on the JMS approach.

Cheers,
Mark

Mark Pollack
09-25-2006, 03:53 PM
Hi,

Also, I should have mentioned, that there is integration with IIOP.NET (http://iiop-net.sourceforge.net/)in CVS (here (http://fisheye1.cenqua.com/browse/springnet/Spring.Net/src/POC)) via the use of Rmi and Ejb exporters. This works in a relatively straightforward manner when you are exchanging simple data types but the complexity increases once you want to exchange anything more "rich". Aleks Seovic and Rick Evans gave a talk on this topic w/ a demo at SpringOne. I'll post the slides here for you to look at.

Cheers,
Mark