activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: network of broker stop forwarding messages without advisorySupport enabled
Date Tue, 22 Mar 2011 10:18:14 GMT
correct, networking the dynamically created and named temp queues
require advisories.

First note that advisories are typically fine, it is only in large
networks with many dynamic consumers that the advisory overhead is
significant.

There are two possible workarounds for request reply when advisories
are disabled.
The first is to use named temp queues via
org.apache.activemq.ActiveMQSession#createQueue where names that start
with "ID:" are temporary.
The second is to use regular queues for reply processing. Using
regular queues gives the option to use persistent replies if you want
to deterministically process replies.
In both cases, the reply destination names will need to be included in
staticallyIncludedDestinations.

It would be nice if it was possible to create a wildcard statically
included destination for all temp queues, but the current naming
convention will not facilitate that.
With s suitable prefix (say "REPLY.") for you named temp queue or
reply queue, a wildcard staticallyIncludedDestinations should work
fine.

On 22 March 2011 02:26, anuhbava <anubhava@aol.com> wrote:
> Gary,
>
> I ran into issues using advisorySupport="false" and
> staticallyIncludedDestinations.
>
> We use JMS for mostly request-response like described here:
> http://activemq.apache.org/how-should-i-implement-request-response-with-jms.html
>
> We are using temporary queue on Producer side to be able to receive response
> from Consumers and since staticallyIncludedDestinations cannot include these
> temporary queue names in it therefore all the Producers are unable to
> receive responses back from clients when advisorySupport is disabled.
>
> I am coming to conclusion that for our scenario advisorySupport cannot be
> turned off unless there is some other config trick I'm not aware of.
>
> Thanks,
> Anubhava
>
>
> On Mon, Mar 21, 2011 at 2:35 PM, Gary Tully [via ActiveMQ] <
> ml-node+3394397-1352398844-221362@n4.nabble.com> wrote:
>
>> thanks for closing the loop.
>>
>> On 21 March 2011 18:11, anuhbava <[hidden email]<http://user/SendEmail.jtp?type=node&node=3394397&i=0&by-user=t>>
>> wrote:
>>
>> > Thank you very much Gary.
>> >
>> > Including this config:
>> >
>> > <staticallyIncludedDestinations>
>> >         <queue physicalName="TEST.FOO"/>
>> >         <queue physicalName="TEST.BAR"/>
>> > </staticallyIncludedDestinations>
>> >
>> > inside networkConnector tag did the trick.
>> >
>> > cheers,
>> > Anubhava
>> >
>> > On Mon, Mar 21, 2011 at 7:54 AM, Gary Tully [via ActiveMQ] <
>> > [hidden email]<http://user/SendEmail.jtp?type=node&node=3394397&i=1&by-user=t>>
>> wrote:
>> >
>> >> without advisories, you need to explicitly specify the list of
>> >> statically included/excluded destinations for each network connector.
>> >>
>> >> On 18 March 2011 22:42, anuhbava <[hidden email]<
>> http://user/SendEmail.jtp?type=node&node=3393367&i=0&by-user=t>>
>>
>> >> wrote:
>> >>
>> >> > If you see my networkConnector tag in original post you will notice
>> that
>> >> I
>> >> > don't have dynamic network brokers. Both of my brokers have
>> >> > uri="static:(tcp://localhost:61616)" and
>> >> > uri="static:(tcp://localhost:61617)"
>> >> >
>> >> > Thanks.
>> >> >
>> >> > --
>> >> > View this message in context:
>> >>
>> http://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-tp3386261p3388635.html<http://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-tp3386261p3388635.html?by-user=t><http://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-tp3386261p3388635.html%3Chttp://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-tp3386261p3388635.html?by-user=t%3E&by-user=t>
>>
>> >>
>> >> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> http://blog.garytully.com
>> >> http://fusesource.com
>> >>
>> >>
>> >> ------------------------------
>> >>  If you reply to this email, your message will be added to the
>> discussion
>> >> below:
>> >>
>> >>
>> http://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-tp3386261p3393367.html<http://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-tp3386261p3393367.html?by-user=t>
>> >>  To unsubscribe from network of broker stop forwarding messages without
>> >> advisorySupport enabled, click here<
>> http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3386261&code=YW51YmhhdmFAYW9sLmNvbXwzMzg2MjYxfDE5NDQ4NzEwMjE=><http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3386261&code=YW51YmhhdmFAYW9sLmNvbXwzMzg2MjYxfDE5NDQ4NzEwMjE=%3E&by-user=t>.
>>
>> >>
>> >>
>> >
>> >
>> > --
>> > View this message in context:
>> http://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-tp3386261p3394328.html<http://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-tp3386261p3394328.html?by-user=t>
>>
>> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
>>
>> --
>> http://blog.garytully.com
>> http://fusesource.com
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-tp3386261p3394397.html
>>  To unsubscribe from network of broker stop forwarding messages without
>> advisorySupport enabled, click here<http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3386261&code=YW51YmhhdmFAYW9sLmNvbXwzMzg2MjYxfDE5NDQ4NzEwMjE=>.
>>
>>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-tp3386261p3395331.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
http://blog.garytully.com
http://fusesource.com

Mime
View raw message