You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by bradtwurst <na...@xoxy.net> on 2006/05/18 23:34:00 UTC

Java/dotNet inter-op question

I am trying to get JMS messaging working across Java and dotNet using
openWire.

I can successfully send a message from dotNet and receive it in dotNet and I
can successfully send a message from java and receive it in java.  But when
I try to go across platforms, they payload is not correct.

A message from java to dotNet (activeMq Text Message) does not have any
value in the .Text property.   A message from dotNet to java throws an out
of memory exception when I attempt to retrieve the message's getText value
("Unable to display message: Java heap space").  This message also appears
in Hermes if I am watching the queue.

Does anyone have any suggestions that I can try?  I am using incubator-4.0
activemq from dated May 8th and the dotNet code is the latest from SVN
repos.

Thanks,
James


--
View this message in context: http://www.nabble.com/Java-dotNet-inter-op-question-t1646386.html#a4459308
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Java/dotNet inter-op question

Posted by bradtwurst <na...@xoxy.net>.
I've had some success with attempting to use byte messages instead of text
messages.  Converting the text to a byte array in dot net.  The only issue
then is that the dot net content does not contain the byte length at the
beginning of the byte array where the java version does.

For example: I am using a string with the value 'a'.  In java, the content
ends up being '00 01 61' (in hex) and in dotnet, the content is '61'.  If I
prepend the byte length to the content in dotnet, I can see the results in
hermes. (as I would expect).

Does that make sense?  

Thanks,
James
--
View this message in context: http://www.nabble.com/Java-dotNet+inter-op+question-t1646386.html#a4478867
Sent from the ActiveMQ - User forum at Nabble.com.