activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino" <hi...@hiramchirino.com>
Subject New STOMP PHP client
Date Sun, 19 Mar 2006 18:12:33 GMT
Hi Everybody,

I just finished putting together a simple STOMP PHP client.  So if
your LAMP kinda guy, you should now be able to use ActiveMQ if you
have some messaging requirements.

I committed the client into the ActiveMQ tree since the STOMP svn repo
seemed to be down at the time I was trying to commit.  If it comes
back up, this may move over to that repo.  But for now, you can get it
at:

https://svn.apache.org/repos/asf/incubator/activemq/trunk/stomp/php

here's a little example of it in use:

<?php

require_once 'Stomp.php';

$c = new StompConnection("localhost");
$result = $c->connect("hiram", "test");
print_r($result);

$c->subscribe("/queue/FOO");
$c->send("/queue/FOO", "Hello World!");

// Wait for the message to come in..
$result = $c->readFrame();
print_r($result);

$c->disconnect();

?>


--
Regards,
Hiram

Mime
View raw message