Do you have a test to run?
Unfortunatly at home and only these two scripts (java and php). Is suitable as test?
Sure, please attach the scripts and I can take a look.
I've made eclipse project and attached it to my post.
To run it you need:
1. add hornetq client libs
2. installed php (I have 5.3)
Run php_sender.php from project's root, because it uses Stomp lib from it.
Thanks in advance!
Thanks for the test. I think I know what's happening with your code. In Client.java you need to reset the reader index each time you have read it. And you need to get the message content using getNullableSimpleString() method. like:
byte body = new byte[message.getBodySize()];
SimpleString str = message.getBodyBuffer().readNullableSimpleString();
It works now. The problem with out of bound exception was because I've been using not `readNullableSimpleString()` method, but `readString()` to read content (In "production" code I read content only once).