Java Native Interface library for MSMQ - opensource on CodePlex
More CodePlex stuff.
I have posted MsmqJava, an open source MSMQ Library for Java, on CodePlex.
Find it at https://www.codeplex.com/MsmqJava .
This thing allows any Java application running on Windows to connect to MSMQ, to enqueue and dequeue items, via a Java Native Interface. It's a nifty technology enabling interop between .NET apps and Java apps via MSMQ.
This is a first release, very basic functionality. Check it out. And contribute if you can!
If you have questions on usage, check the CodePlex forums.
Cheers!
Comments
Anonymous
February 06, 2008
PingBack from http://www.biosensorab.org/2008/02/06/java-native-interface-library-for-msmq-opensource-on-codeplex/Anonymous
February 06, 2008
I like it. Wondering why you did not make use of Enums. It is hightime Java folks move to 1.5 version.Anonymous
February 06, 2008
Yes, well, this was written a couple years back. I finally just got round to posting the project as a codeplex thing. So it maybe needs a refresh for Java5 optimization. But we'll let someone post that request as a workitem, huh?Anonymous
October 02, 2008
Java apps running on Windows can connect to MSMQ via JNI.Anonymous
February 24, 2009
Hi Thanks for the effort. I am getting a buffer overflow (I think) when receiving larger messages. E.g. I have 265 byte message on an WinXP Pro queue, and when I say receive on the test client I get a: Receive Failure hr=unknown hr (-1072824294) error. Any thoughts?Anonymous
March 06, 2009
Sorry, no insight into that problem.... 265 bytes does not seem like an overly large message to receive?Anonymous
February 08, 2010
Was there ever any resolution to this? I'm hitting the same issue. I can write to the queues just fine, but reading gives me the same error as Simon.Anonymous
February 08, 2010
Clarification of the problem: I get the same failure, even with the test client doing the reading and writing. I can write large messages (on the order of several K), but attempting to readeven the default 66 byte record from the client blows out.Anonymous
February 09, 2010
OK, for anyone who might happen to come along and try to use this code, and fail out when reading: The read issue is in Queue.receiveEx - the size of 128 passed to the nativeReceive is totally inadequate. Bump this up (I bumped it to 32k for my purposes), and things will start working OK.Anonymous
March 28, 2010
This code has been updated, and the 128-byte limit has been removed. You should get v1.2 of MsmqJava to get the fix.Anonymous
May 13, 2012
The comment has been removed