Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 57289 invoked from network); 6 Jun 2007 09:58:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 09:58:54 -0000 Received: (qmail 80647 invoked by uid 500); 6 Jun 2007 09:58:57 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 80629 invoked by uid 500); 6 Jun 2007 09:58: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 80620 invoked by uid 99); 6 Jun 2007 09:58:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 02:58: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; Wed, 06 Jun 2007 02:58:50 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1HvsHd-0002h5-Uo for users@activemq.apache.org; Wed, 06 Jun 2007 02:58:29 -0700 Message-ID: <10985635.post@talk.nabble.com> Date: Wed, 6 Jun 2007 02:58:29 -0700 (PDT) From: Schulze To: users@activemq.apache.org Subject: ActiveMQ + PHP + Stomp = ActiveStack ?? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: schulze-horst@gmx.net X-Virus-Checked: Checked by ClamAV on apache.org I tried to use ActiveMQ 4.1.1 with stomp connector from PHP (after porting Stomp.php for use with PHP5). Surprisingly it behaves like a stack: === producer.php: ---- subscribe('/queue/FOO'); $c->send('/queue/FOO', $msg, array('expires' => 1)); print 'sent: '.$msg.PHP_EOL; } $c = new StompConnection('localhost'); $result = $c->connect('producer', 'test'); $c->subscribe('/queue/FOO'); send('Hello World!'); send('Hello Mars!'); $c->disconnect(); ?> ---- sent: Hello World! sent: Hello Mars! === === consumer.php --- connect('bobo', 'test'); $c->subscribe('/queue/FOO'); $result = $c->receive(); print 'read: '.$result->body . PHP_EOL; $c->acknowledge($result->headers['message-id']); $c->disconnect(); return true; } consume(); consume(); ?> --- read: Hello Mars! read: Hello World! === Am I wrong? -- View this message in context: http://www.nabble.com/ActiveMQ-%2B-PHP-%2B-Stomp-%3D-ActiveStack----tf3876949s2354.html#a10985635 Sent from the ActiveMQ - User mailing list archive at Nabble.com.