[ https://issues.apache.org/jira/browse/AMQ-3402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068348#comment-13068348 ]
Manu Agarwal commented on AMQ-3402: ----------------------------------- Please find below a snippet from my cofig file(activemq.xml), <transportConnectors> <transportConnector name="openwire" uri="tcp://0.0.0.0:61616?transport.keepAliveResponseRequired=true"/> <transportConnector name="stomp" uri="stomp://0.0.0.0:61612?transport.closeAsync=false;transport.keepAliveResponseRequired=true"/> <transportConnector name="stomp+nio" uri="stomp+nio://0.0.0.0:61613?transport.closeAsync=false;transport.keepAliveResponseRequired=true"/> <transportConnector name="websocket" uri="ws://0.0.0.0:61614"/> </transportConnectors> My design is, There is a websocket connection from my web page to the broker, which when the page is opened, connects to the broker and sends a message to the queue using websockets.This is working fine. On the other hand, there is a perl consumer listening on that queue.This is where the problem arises.My perl consumer is not able to receive the message also, under webconsole, I didnt see it subscribed to the queue, though I see a stomp connection under connections tab. > Stomp over Websocket truncates the message body > ----------------------------------------------- > > Key: AMQ-3402 > URL: https://issues.apache.org/jira/browse/AMQ-3402 > Project: ActiveMQ > Issue Type: Bug > Components: Connector > Affects Versions: 5.5.0 > Environment: Ubuntu 10.1 > Reporter: Manu Agarwal > Labels: Java, Script, Websocket > > I am using websocket for receiving messages over a queue using java script. > This works fine for smaller messages, but for large messages the message.body > truncates the message and also, JSON.parse(message.body) fails. > Is there a limit for the message size in Websockets. > I using java script (stomp.js) and trying to publish the messages on a web > page. > Please find below the code snippet, > var url = "ws://manu.rsi.com:61614/stomp"; > var client = Stomp.client(url); > var tmp_destination = '/temp-queue/temp'; > function requestBlockInfo() { > client.send('/queue/UI.Graph.Test.Q', {'reply-to': tmp_destination, > 'command': 'blockinfo'}, "msg"); > client.subscribe(tmp_destination,function(message) { > alert(message.body); > processMessage(JSON.parse(message.body)); > }); > }; > onconnect = function(frame){ > requestBlockInfo(); > }; > error_callback = function(error){ > alert(error.headers.message); > }; > > var r = client.connect("", "" ,onconnect, error_callback); > When at the webpage, I received the message.body for message.body leangth > greater then 60, it puts ... in between the message and truncates the > message, so that its body length is 60. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira