<div dir="ltr"><div>Hi,</div>
<div> </div>
<div>I am working on using a Java client to publish message to Rabbit and using a Flex client to subscribe to messages. </div>
<div> </div>
<div>I have tried both Java client -> Flex client and Flex client -> Flex client, but both don't work. </div>
<div> </div>
<div>With Flex-> Flex, I am using the ImageSender.mxml and Image Receiver.mxml. When running the example, I am getting:</div>
<div> </div>
<div>Error: Error #2002: Operation attempted on invalid socket.<br> at flash.net::Socket/writeBytes()<br> at org.codehaus.stomp::Stomp/transmit()[C:\Users\wischusen\Documents\FlexBuilderProjects\Stomp\org\codehaus\stomp\Stomp.as:263]<br>
at org.codehaus.stomp::Stomp/send()[C:\Users\wischusen\Documents\FlexBuilderProjects\Stomp\org\codehaus\stomp\Stomp.as:192]<br> at ImageSender/sendImage()[C:\Users\anne\Documents\Flex Builder 3\WebUI\src\ImageSender.mxml:50]<br>
at ImageSender/___ImageSender_Button2_click()[C:\Users\anne\Documents\Flex Builder 3\WebUI\src\ImageSender.mxml:134]<br></div>
<div>The configure I am using is :</div>
<div> </div>
<div> private function init () : void<br> {<br> var ch: ConnectHeaders = new ConnectHeaders();<br> ch.login = "rabbitmq";<br> ch.passcode = "rabbitmq"<br> stomp.connect("<a href="http://192.168.1.104">192.168.1.104</a>", 5672, ch);<br>
}</div>
<div> </div>
<div> </div>
<div>It looks like I may have some fundamental errors in my STOMP client. I can send and receive messages between two Java client using the routing key with no problem. </div>
<div> </div>
<div>With the STOMP client, how can I speciy the ticket, routingKey and exchange? The onlything available to identiy the queue is destination - stomp.subscribe( destination ); </div>
<div> </div>
<div>Any help and suggestion on getting it to work will be greatly appreciated.</div>
<div> </div>
<div>Best Regards,</div>
<div>Pete</div>
<div> </div></div>