Re: Send large message using STOMP producer to ActiveMQ broker.

2015-01-22 Thread bansalp
I added following config and tried to send a messaage of 150 MB, it failed with following message Failed to send the message on '/queue/testDSize.0' (error: *** Net::STOMP::Client::IO::send_data(): cannot syswrite(): Broken pipe); will try to failover and resend [20150122 16:05:26.33

Re: Send large message using STOMP producer to ActiveMQ broker.

2015-01-22 Thread Timothy Bish
/queue/testDSize.0' (error: *** Net::STOMP::Client::IO::send_data(): cannot syswrite(): Broken pipe); will try to failover and resend [20150122 16:05:26.335 XYZ::Net::Stomp::_failover_to_new_broker():939 WARN] Failing over to the new broker with the uri: failover://(stomp://localBroker:61613)?m

Re: Send large message using STOMP producer to ActiveMQ broker.

2015-01-22 Thread bansalp
[20150122 13:06:44.729 IST (ActiveMQ Transport: tcp:///ip:41961@61613) org.apache.activemq.transport.stomp.ProtocolConverter#handleException 280 WARN] - Exception occurred processing: null ^@: org.apache.activemq.transport.stomp.ProtocolException: The maximum data length was exceeded [20150122

Re: Messages are kept in Pending queue for durable topic subscribers.

2015-01-22 Thread mclaudio76
tbain98 wrote > So what happens when the subscriber comes back online? Are other messages > delivered, just not the ones that were sent while the subscriber was > offline? After the subscriber comes back online, do you still see those > messages pending in the JMX stats and/or the web console? I

Re: Stats for Virtual Topic

2015-01-22 Thread Tim Bain
What kind of stats did you have in mind? On Jan 22, 2015 12:15 AM, "bansalp" wrote: > I have started using virtual topic in myActiveMQ setup and I was wondering > if > there are any stats available for virtual topic which I can log. > > --bansalp > > > > -- > View this message in context: > http:

Re: Stats for selector

2015-01-22 Thread Tim Bain
JMX exposes MBeans for each subscription (which is a connected consumer in the case of queues), and one of the attributes is the selector for that subscription. So you can periodically connect to the broker's JMX endpoint, query for all subscriptions, and log each one including its selector. On Ja

Re: Messages are kept in Pending queue for durable topic subscribers.

2015-01-22 Thread Tim Bain
That's strange. Is this a network of brokers or a standalone broker? Also, can you reliably reproduce this (in a rest environment) just by turning advisory messages back on? That test would confirm (or refute) the link between advisory messages and the problem, and make it more likely that someo

Re: Stats for Virtual Topic

2015-01-22 Thread bansalp
Stats like - List of topics which are virtual. - which all queue are consumer queue for each virtual topic. - Message size and count related stats for consumer queue. - Any other stats that is exposed. -- View this message in context: http://activemq.2283324.n4.nabble.com/Stats-for-Virtual-To

Re: Stats for selector

2015-01-22 Thread bansalp
Can this be done from java code. I am extending BrokerPluginSupport to log certain stats related to broker and per destination stats. -- View this message in context: http://activemq.2283324.n4.nabble.com/Stats-for-selector-tp4690236p4690264.html Sent from the ActiveMQ - User mailing list arch

Re: Non-Persistent Queue

2015-01-22 Thread nelsoncc
Hi, Tks for the answer. It works perfectly Kind Regards -- View this message in context: http://activemq.2283324.n4.nabble.com/Non-Persistent-Queue-tp4690148p4690270.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

maxReconnectAttempts parameter

2015-01-22 Thread nelsoncc
Hi, I'm trying to use the "maxReconnectAttempts" parameter, but without success. I'm using a client connection with the following URI: failover:(tcp://localhost:61616,tcp://localhost:61626)?randomize=false&useExponentialBackOff=false&initialReconnectDelay=1000&startupMaxReconnectAttempts=40&maxR

Re: Messages are kept in Pending queue for durable topic subscribers.

2015-01-22 Thread mclaudio76
It's a standalone broker. Unfortunately, I cannot reproduce the problem in a test enviroment, mainly because I cannot generate all the traffic the production broker has to support. Anyway, within the limits of a test simulation, the presence or not of Advisory topics seemed not to influence the beh

Re: maxReconnectAttempts parameter

2015-01-22 Thread Timothy Bish
On 01/22/2015 09:35 AM, nelsoncc wrote: Hi, I'm trying to use the "maxReconnectAttempts" parameter, but without success. I'm using a client connection with the following URI: failover:(tcp://localhost:61616,tcp://localhost:61626)?randomize=false&useExponentialBackOff=false&initialReconnectDelay

Re: Messages are kept in Pending queue for durable topic subscribers.

2015-01-22 Thread Gary Tully
by default the broker retains the sub in memory for an offline durable sub, that can be disabled with keepDurableSubsActive=false broker attribute. That may sort out the behaviour because the sub will be replayed from the store. One other thought, there was an issue with the default advisory consum

Re: maxReconnectAttempts parameter

2015-01-22 Thread nelsoncc
Tks for your quick feedback. So what configuration should I use in the client so it tries to reconnect always once, even if the broker is down? Kind Regards, Nelson Cintra -- View this message in context: http://activemq.2283324.n4.nabble.com/maxReconnectAttempts-parameter-tp4690272p4690281.ht

Re: maxReconnectAttempts parameter

2015-01-22 Thread Timothy Bish
On 01/22/2015 10:04 AM, nelsoncc wrote: Tks for your quick feedback. So what configuration should I use in the client so it tries to reconnect always once, even if the broker is down? Kind Regards, Nelson Cintra -- View this message in context: http://activemq.2283324.n4.nabble.com/maxReconn

Re: maxReconnectAttempts parameter

2015-01-22 Thread nelsoncc
That parameter is what I'm using, but it ignores the parameter and never reconnects again. Kind Regards -- View this message in context: http://activemq.2283324.n4.nabble.com/maxReconnectAttempts-parameter-tp4690272p4690283.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Stats for Virtual Topic

2015-01-22 Thread Tim Bain
Have you looked at what's exposed in JMX (e.g. in JConsole)? Are those things not available for virtual destinations? (I don't use them, so I don't know.) On Jan 22, 2015 6:55 AM, "bansalp" wrote: > Stats like > - List of topics which are virtual. > - which all queue are consumer queue for each

Re: maxReconnectAttempts parameter

2015-01-22 Thread Timothy Bish
On 01/22/2015 10:14 AM, nelsoncc wrote: That parameter is what I'm using, but it ignores the parameter and never reconnects again. Kind Regards -- View this message in context: http://activemq.2283324.n4.nabble.com/maxReconnectAttempts-parameter-tp4690272p4690283.html Sent from the ActiveMQ

Re: Stats for selector

2015-01-22 Thread Tim Bain
JMX can be queried from Java code (from a separate program, not from the broker itself). Just make sure you enable the JMX endpoint in the broker config; details are on the ActiveMQ website. I haven't done anything with BrokerPluginSupport, so I can't speak to whether this is possible there. On J

Re: Stats for Virtual Topic

2015-01-22 Thread bansalp
In Jconsole, there is nothing which says anything about virtual destination. It will all topics and queues as normal only. There is no distinguishing factor. -- View this message in context: http://activemq.2283324.n4.nabble.com/Stats-for-Virtual-Topic-tp4690237p4690287.html Sent from the Activ

Re: maxReconnectAttempts parameter

2015-01-22 Thread nelsoncc
Hi, If I use the URI: failover:(tcp://localhost:61616,tcp://localhost:61626)?randomize=false The thread blocks in sending message, and only unlocks when broker is started. Since I don't want to block the thread I can fix my problem using timeout parameter. I thought the reconnect attempt was mad

Re: maxReconnectAttempts parameter

2015-01-22 Thread Timothy Bish
On 01/22/2015 11:00 AM, nelsoncc wrote: Hi, If I use the URI: failover:(tcp://localhost:61616,tcp://localhost:61626)?randomize=false The thread blocks in sending message, and only unlocks when broker is started. Since I don't want to block the thread I can fix my problem using timeout parameter

Re: How to send a struct via ActiveMQ CMS?

2015-01-22 Thread artnaseef
Good find - thanks for the reference! -- View this message in context: http://activemq.2283324.n4.nabble.com/How-to-send-a-struct-via-ActiveMQ-CMS-tp4689843p4690292.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Stats for Virtual Topic

2015-01-22 Thread Tim Bain
Well, the default configuration for Virtual Topics ( http://activemq.apache.org/virtual-destinations.html) specifies that all topics that are virtual begin with "VirtualTopic." and all consumer queues for virtual topics begin with "Consumer.*.VirtualTopic.", and even if you've changed the default c

ActiveMQ 5.10 looses message acknowledgements.

2015-01-22 Thread sbarlabanov
Hi, we have the following problem with ActiveMQ: we have some consumer code running in an app server and acknowledging messages manually. ActiveMQ broker is running outside the app server as a separate process. Everything is ok until we restart the broker. After we restart it resends several (a fe

Re: ActiveMQ 5.10 looses message acknowledgements.

2015-01-22 Thread sbarlabanov
Tonight we got new experience with the problem: before we restart ActiveMQ we looked at the messages in a queue and we saw that the size of the queue was 0. After having restarted ActiveMQ we looked at the messages in the queue again and there were 4 messages from today morning. All 4 messages corr

Re: Stats for Virtual Topic

2015-01-22 Thread bansalp
What I mean is there is no indicator if I change defaults. All I can do is remember all topics which I have configure as virtual along with their consumer queue. -- View this message in context: http://activemq.2283324.n4.nabble.com/Stats-for-Virtual-Topic-tp4690237p4690309.html Sent from the A

Rebalance clients not working in 5.9.0

2015-01-22 Thread shanmugam
Two brokers networked. Transport connectors configured on both with: *rebalanceClusterClients="true" updateClusterClients="true" updateClusterClientsOnRemove="true"* network connector properties *suppressDuplicateQueueSubscriptions="true" conduitSubscriptions="true" decreaseNetworkConsumerPriorit