activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Atis <a...@BEST.eu.org>
Subject Re: ActiveMQ + PHP + Stomp = ActiveStack ??
Date Wed, 06 Jun 2007 12:24:07 GMT
> Stomp.php uses deprecated socket functions. I have to follow a policy
> here... Now I use stream_socket_client() and fread(), fwrite() etc.

Could you be so kind and share it?

> > consumer.php: $c = new StompConnection('localhost', 5);
> > Why port 5?
> >
>
> 5 is the timeout in that case, port is 61613.

Seems you have another version of Stomp.php, the one i took had port
as second parameter

> > producer.php:  $c->subscribe('/queue/FOO');
> > Why subscribe in producer? With that i couldn't receive anything at
> > all in consumer.php.
> >
>
> How does the consumer know witch queue to read if not subscribed? For me I
> can *not* receive if I'm *not* subscribed.
>
> The point is, I receive messages with my scripts, but not in the expected
> order.

No, i mean why to subscribe in producer.php. You are sending messages,
and you specify to what queue.

Regards,
Atis

Mime
View raw message