activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jana ...@conviator.com>
Subject Re: php/topic subscribe?
Date Tue, 26 Jun 2012 09:41:00 GMT
<?php
require_once('config.php');
$message = "search query";
$producer = new Stomp(_MQ_SERVER);
$producer->connect();
$producer->send(
        _MQ_TOPIC_SEARCH,
        $message,
        array('persistent'=>'true')
);
$producer->disconnect();
?>

<?php
date_default_timezone_set('UTC');

define('_MQ_SERVER',            'tcp://192.168.X.X:61613');
define('_MQ_CLIENT_ID',         'some uniq string');
define('_MQ_TOPIC_SEARCH',      '/topic/mytopicname');
define('_MQ_DATE_FORMAT',       'Y-m-d H:i');
define('_MQ_SLEEP',                     5);

require_once('Stomp.php');
?>


--
View this message in context: http://activemq.2283324.n4.nabble.com/php-topic-subscribe-tp4653564p4653566.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message