<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19222"><LINK rel=stylesheet
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}"></HEAD>
<BODY style="FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT face=Verdana><FONT size=2>Hi,</FONT></FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>I am testing for RabbitMQ-Web-Stomp,which send or
receive message from browser.</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>I have installed RabbitMQ-Web-Stomp
plugin,and <SPAN
style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: 13px/18px Verdana, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(85,85,85); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><SPAN
class=Apple-converted-space> can echo message from </SPAN></SPAN><A
style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: bold 13px/18px Verdana, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(68,68,68); WORD-SPACING: 0px; TEXT-DECORATION: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"
href="http://127.0.0.1:55670">http://127.0.0.1:55670</A> successfully.</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Now, I write a send.html to send message,and a recv.html
to receive message,but not success.</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Can anyone help me?</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>1¡¢Send.html:</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>
<DIV><!DOCTYPE html></DIV>
<DIV><html></DIV>
<DIV> </DIV>
<DIV><head></DIV>
<DIV> <script src="sockjs-0.3.min.js"></script></DIV>
<DIV> <script src="stomp.js"></script> </DIV>
<DIV></DIV>
<DIV> <title>Send Message</title> </DIV>
<DIV></head></DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV><body lang="en"></DIV>
<DIV> <h1>Send Message</h1></DIV>
<DIV> </DIV>
<DIV> <script> </DIV>
<DIV> // Stomp.js boilerplate</DIV>
<DIV> WebSocketStompMock = SockJS;</DIV>
<DIV></DIV>
<DIV> var client = Stomp.client('http://127.0.0.1:55674/stomp'); </DIV>
<DIV> client.connect("guest","guest",function(x){</DIV>
<DIV> alert(x);</DIV>
<DIV> });</DIV>
<DIV></DIV>
<DIV> function send()</DIV>
<DIV> {</DIV>
<DIV> client.send('/topic/test', {}, document.form1.msg.val);</DIV>
<DIV> } </DIV>
<DIV> </script></DIV>
<DIV></DIV>
<DIV> <form id="form1" method="post" name="form1" action="""></DIV>
<DIV> ÇëÊäÈëÐÅÏ¢:<input id="msg" name="msg" type="text"/></DIV>
<DIV> <input name="Submit" type="submit" onclick="send();" value="·¢ËÍ"></DIV>
<DIV> </form> </DIV>
<DIV></DIV>
<DIV></body></DIV>
<DIV> </DIV>
<DIV></html></DIV></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV>2¡¢recv.html</DIV>
<DIV>
<DIV><!DOCTYPE html></DIV>
<DIV><html></DIV>
<DIV> </DIV>
<DIV><head></DIV>
<DIV> <script src="sockjs-0.3.min.js"></script></DIV>
<DIV> <script src="stomp.js"></script> </DIV>
<DIV></DIV>
<DIV> <title>Recv Message</title> </DIV>
<DIV></head></DIV>
<DIV> </DIV>
<DIV><body></DIV>
<DIV> <h1>Recv Message</h1></DIV>
<DIV></DIV>
<DIV> <script> </DIV>
<DIV> // Stomp.js boilerplate</DIV>
<DIV> WebSocketStompMock = SockJS;</DIV>
<DIV></DIV>
<DIV> var client = Stomp.client('http://127.0.0.1:55674/stomp'); </DIV>
<DIV> client.connect("guest","guest",function(x){</DIV>
<DIV> id = client.subscribe("/topic/test", function(d) {</DIV>
<DIV> document.write(d.body);</DIV>
<DIV> });</DIV>
<DIV> });</DIV>
<DIV></DIV>
<DIV> </DIV>
<DIV> </script></DIV>
<DIV></body></DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV></html></DIV></DIV>
<DIV align=left><FONT size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT size=2><SPAN>truelie</SPAN></FONT></DIV>
<DIV><FONT size=2>2012-06-12</FONT></FONT></DIV></FONT></BODY></HTML>