Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 95605 invoked from network); 7 May 2007 16:16:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2007 16:16:50 -0000 Received: (qmail 16587 invoked by uid 500); 7 May 2007 16:16:56 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 16572 invoked by uid 500); 7 May 2007 16:16:56 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 16562 invoked by uid 99); 7 May 2007 16:16:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2007 09:16:56 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2007 09:16:47 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Hl5sx-0004cw-Ed for users@activemq.apache.org; Mon, 07 May 2007 09:16:27 -0700 Message-ID: <10360381.post@talk.nabble.com> Date: Mon, 7 May 2007 09:16:27 -0700 (PDT) From: northshorefiend To: users@activemq.apache.org Subject: Javascript -> JmsReplyTo(TemporaryDestination) -> JSONP MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: spam123@JamesAshepherd.com X-Virus-Checked: Checked by ClamAV on apache.org Say you have a widget on a webpage. The user clicks 'send' and expects a 'synchronous' response. You could just register a listener with amq.js and wait asynchronously for a reply. But the user complains it is not fast enough. So what about using the JSONP idea to contact the server outside of the GET poll and the POST batch sending that amq.js does? On the server side I expect a Servlet would be needed that forwarded the message and waited for a reply using a TemporaryDestination then do the JSONP thing. I think this would entail a split in the taxonomy of widgets: a widget that uses the above style could not also be updated via AJAX polling, as I believe the AJAX response could be queued in the server side whilst a JSONP response updates the widget. When the AJAX response returns it would contain stale data. I suppose it is a bit subversive. I have another idea, but I can't make a link to a future post here :-) -- View this message in context: http://www.nabble.com/Javascript--%3E-JmsReplyTo%28TemporaryDestination%29--%3E-JSONP-tf3704747s2354.html#a10360381 Sent from the ActiveMQ - User mailing list archive at Nabble.com.