Re: Question about ajax.html examples on website

2011-01-25 Thread habumaster
Yes, do not send "\n" to ActiveMQ, it thinks that those are separate messages and breaks them up. habumaster wrote: > > Using the amq-msg-type for Stomp->ActiveMQ messages from Ruby and > ActiveMQ<->Ajax to the Browser with amq.js and prototype,js > > Had no problems when I did not use the h

Re: Question about ajax.html examples on website

2011-01-24 Thread habumaster
Using the amq-msg-type for Stomp->ActiveMQ messages from Ruby and ActiveMQ<->Ajax to the Browser with amq.js and prototype,js Had no problems when I did not use the header and we connected the Browser via Orbited. Ruby code: javascript = render_to_string :update do |page| p

Re: Question about ajax.html examples on website

2011-01-24 Thread habumaster
Yes, that got me amq connections. It works! The "Proxying with Apache" is a good one. -- View this message in context: http://activemq.2283324.n4.nabble.com/Question-about-ajax-html-examples-on-website-tp3216811p3234387.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Question about ajax.html examples on website

2011-01-22 Thread Alex Dean
On Jan 22, 2011, at 9:23 AM, habumaster wrote: > > > Alex Dean-2 wrote: >> >> >> On Jan 21, 2011, at 11:13 PM, habumaster wrote: >> >> >> Replies inline. It seems I am getting to 8161 and it is returning the >> welcome page for ActiveMQ? Yes, I agree. More information below. >>> 2. What

Re: Question about ajax.html examples on website

2011-01-22 Thread habumaster
Alex Dean-2 wrote: > > > On Jan 21, 2011, at 11:13 PM, habumaster wrote: > > > Replies inline. It seems I am getting to 8161 and it is returning the > welcome page for ActiveMQ? > I thought through the NIO connector/selector I would be accessing the Ajax > servelets? > >>1. Is your Ruby ap

Re: Question about ajax.html examples on website

2011-01-21 Thread Alex Dean
On Jan 21, 2011, at 11:13 PM, habumaster wrote: > > Going the servlet route.. Your app is running on a main server, not a virtual > one I am guessing. I've run this kind of setup successfully on a single machine (OSX), on multiple physical servers (Centos5), and on multiple OpenVZ guests (Cent

Re: Question about ajax.html examples on website

2011-01-21 Thread habumaster
Going the servlet route.. Your app is running on a main server, not a virtual one I am guessing. Mine is virtual and with the apache config you spec'd, I understand it was a starting point. I have ActiveMQ 5.4.2 running on the same server. Jetty.xml is in the activemq.xml file, so Ajax servlet sho

Re: Question about ajax.html examples on website

2011-01-20 Thread Alex Dean
On Jan 19, 2011, at 11:21 PM, habumaster wrote: > > Ah you can send Stomp to ActiveMQ and get text back out - just add the > {'amq-msg_type'='text'} header to the stomp send and it goes as text. One typo. You need all hyphens, no underscores. {'amq-msg-type'=>'text'} > > > Problem is now

Re: Question about ajax.html examples on website

2011-01-19 Thread habumaster
AHA! quick & dirty for (prop in message) { alert(prop+message[prop]); } message.data is where it is at -- View this message in context: http://activemq.2283324.n4.nabble.com/Question-about-ajax-html-examples-on-website-tp3216811p3225477.html Sent from the ActiveMQ - User mailing list

Re: Question about ajax.html examples on website

2011-01-19 Thread habumaster
Ah you can send Stomp to ActiveMQ and get text back out - just add the {'amq-msg_type'='text'} header to the stomp send and it goes as text. Problem is now I am getting back in the response message as [object Text] in the alert() call in the example. Using the prototype adapter and amq.js. "rec

Re: Question about ajax.html examples on website

2011-01-19 Thread habumaster
I figured it out - STOMP -> ActiveMQ then ActiveMQ -> Browser with the amq.js library is the problem. Send and receive with amq from Browser -> ActiveMQ and ActiveMQ -> Browser on both sides works fine. -- View this message in context: http://activemq.2283324.n4.nabble.com/Question-about-ajax-

Re: Question about ajax.html examples on website

2011-01-14 Thread Alex Dean
On Jan 13, 2011, at 4:13 PM, habumaster wrote: > > http://activemq.apache.org/ajax.html http://activemq.apache.org/ajax.html > > is the link I am referencing. > > The statement: > "The AMQ AjaxServlet needs to be installed in your webapplications to > support JMS over Ajax:" > > I see this

Question about ajax.html examples on website

2011-01-13 Thread habumaster
http://activemq.apache.org/ajax.html http://activemq.apache.org/ajax.html is the link I am referencing. The statement: "The AMQ AjaxServlet needs to be installed in your webapplications to support JMS over Ajax:" I see this AjaxServlet installed in the ActiveMQ 5.4.1 install I am running. Do