[rabbitmq-discuss] Need help with Rabbit STOMP client
Pete Kay
petedao at gmail.com
Mon Aug 25 06:54:32 BST 2008
Hi,
I am working on using a Java client to publish message to Rabbit and using a
Flex client to subscribe to messages.
I have tried both Java client -> Flex client and Flex client -> Flex client,
but both don't work.
With Flex-> Flex, I am using the ImageSender.mxml and Image Receiver.mxml.
When running the example, I am getting:
Error: Error #2002: Operation attempted on invalid socket.
at flash.net::Socket/writeBytes()
at
org.codehaus.stomp::Stomp/transmit()[C:\Users\wischusen\Documents\FlexBuilderProjects\Stomp\org\codehaus\stomp\Stomp.as:263]
at
org.codehaus.stomp::Stomp/send()[C:\Users\wischusen\Documents\FlexBuilderProjects\Stomp\org\codehaus\stomp\Stomp.as:192]
at ImageSender/sendImage()[C:\Users\anne\Documents\Flex Builder
3\WebUI\src\ImageSender.mxml:50]
at ImageSender/___ImageSender_Button2_click()[C:\Users\anne\Documents\Flex
Builder 3\WebUI\src\ImageSender.mxml:134]
The configure I am using is :
private function init () : void
{
var ch: ConnectHeaders = new ConnectHeaders();
ch.login = "rabbitmq";
ch.passcode = "rabbitmq"
stomp.connect("192.168.1.104", 5672, ch);
}
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.
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 );
Any help and suggestion on getting it to work will be greatly appreciated.
Best Regards,
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20080825/ba131513/attachment.htm
More information about the rabbitmq-discuss
mailing list