Re: ActiveMQ + PHP + Stomp = ActiveStack ??

2007-06-06 Thread Schulze
Yeaahhh, it works. The point was not to subscribe the procucer. Now I get the messages even in the expected order. Thanks a lot for your help, Atis-3!! The PHP5 port may be found here: http://www.nabble.com/file/p10988110/Stomp5.php Stomp5.php -- View this message in context: http://www.nabb

Re: ActiveMQ + PHP + Stomp = ActiveStack ??

2007-06-06 Thread Schulze
Atis-3 wrote: > > I wonder, why you would need to convert Stomp.php to PHP5. > Stomp.php uses deprecated socket functions. I have to follow a policy here... Now I use stream_socket_client() and fread(), fwrite() etc. Atis-3 wrote: > > consumer.php: $c = new StompConnection('localhost', 5);

ActiveMQ + PHP + Stomp = ActiveStack ??

2007-06-06 Thread Schulze
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 Stom