Re: Subscription is not echo'ed in v5.7 hub-spoke network of brokers

2013-12-05 Thread dimitry12
Looked at the docs again. The reason for this behavior is that networkTTL defaults to "1" and limits how many jumps the subscription or message can do across a network of brokers. Increased it to "10" and my network works! I suggest to put it more prominently on a http://activemq.apache.org/netwo

Subscription is not echo'ed in v5.7 hub-spoke network of brokers

2013-12-05 Thread dimitry12
I'm using Apache ServiceMix 4.5.3 with ActiveMQ 5.7 in it. I have 3 nodes all with exactly same config (except karaf name and ActiveMQ broker name - they are different): - hub - spoke1 - spoke2 spoke1 is connected to hub via duplex openwire network connector. spoke2 is connected to hub via duplex

Re: When will activemq-core 5.9 be present in maven central repo?

2013-12-05 Thread Christian Posta
if you're using a pool, usually the pool is in charge of shutting down connections. This might be it to do it manually: http://docs.spring.io/spring/docs/2.5.6/api/org/springframework/jms/connection/SingleConnectionFactory.html#destroy() But it probably gets handled when the spring context gets s

Re: When will activemq-core 5.9 be present in maven central repo?

2013-12-05 Thread edbras
> it's possible the broker gets shut down first before all the client connections are properly shut down? How can I determine this? What triggers the shutdown of a client connection? (how/where?) -- View this message in context: http://activemq.2283324.n4.nabble.com/When-will-activemq-core-5-9

Re: Active MQ - fail-over uri configuration

2013-12-05 Thread Vladimir Sutskever
Thanks Tim, This looks like exactly like what I need. -Vladimir On 12/5/13, 5:02 PM, "Timothy Bish" wrote: >On 12/05/2013 04:55 PM, Vladimir Sutskever wrote: >> Hi >> >> I am using the a failover URI with ActiveMQ's Connection Factory for a >>Java message consumer. >> >> failover:(tcp://prima

Re: Active MQ - fail-over uri configuration

2013-12-05 Thread Timothy Bish
On 12/05/2013 04:55 PM, Vladimir Sutskever wrote: Hi I am using the a failover URI with ActiveMQ's Connection Factory for a Java message consumer. failover:(tcp://primary:61616,tcp://secondary:61616)?randomize=false The connection successfully fails over to the secondary host once primary h

Active MQ - fail-over uri configuration

2013-12-05 Thread Vladimir Sutskever
Hi I am using the a failover URI with ActiveMQ's Connection Factory for a Java message consumer. failover:(tcp://primary:61616,tcp://secondary:61616)?randomize=false The connection successfully fails over to the secondary host once primary host is down. But it won't get re-established back w

Re: Duplicate messages sent in Active MQ 5.7

2013-12-05 Thread badrinana
I tried setting trackMessages=true. Still I get duplicate messages. failover:(${jms.broker1.uri},${jms.broker2.uri})?randomize=false&jms.prefetchPolicy.queuePrefetch=1&maxReconnectAttempts=-1&trackMessages=true I also added auditNetworkProducers in the tran

Question on stuck messages in queue

2013-12-05 Thread badrinana
Hi I am using Active MQ 5.7. 1) If some messages are stuck in a particular queue, does it cause any impact on the Ack of other messages which went through that same queue? 2) Does ActiveMQ replay all the messages which was put on to that queue since the stuck messages entered the queue? If the q

Re: When will activemq-core 5.9 be present in maven central repo?

2013-12-05 Thread Christian Posta
well if you're pooling your connections here, it's possible the broker gets shut down first before all the client connections are properly shut down? then you would see that error... On Thu, Dec 5, 2013 at 1:39 PM, edbras wrote: > It's hard to create an isolated test app, found it hard where to s

Re: When will activemq-core 5.9 be present in maven central repo?

2013-12-05 Thread edbras
It's hard to create an isolated test app, found it hard where to start (a client app that is bit large). But I did some more digging and found the following: In the unit tests I create a global Spring ApplicationContext and call the method ctx.registerShutdownHook() on the context such that all be

Re: When will activemq-core 5.9 be present in maven central repo?

2013-12-05 Thread Christian Posta
think you could put together a bare-bones unit test that shows this and send it to me? On Thu, Dec 5, 2013 at 11:06 AM, edbras wrote: > It's working now, but only get this strange shutdown exception at the end > when running it embedded in spring during unit tests. > See error below. > I noticed

Re: Transactions in Stomp

2013-12-05 Thread Sophia Wright
Thank you for this explanation -- View this message in context: http://activemq.2283324.n4.nabble.com/Transactions-in-Stomp-tp4675080p4675214.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: When will activemq-core 5.9 be present in maven central repo?

2013-12-05 Thread edbras
It's working now, but only get this strange shutdown exception at the end when running it embedded in spring during unit tests. See error below. I noticed more people experience this same error, but I can't find a good way to solve it. Any idea? Strangely I didn't have this with version 5.7.0. Any

Re: Transactions in Stomp

2013-12-05 Thread Christian Posta
there is no "automatic" redelivery on the client side the way activemq libraries do for openwire. that's because a STOMP client can be written by anyone and the Spec doesn't address redelivery on the client side. But, you are of course able to build in a redelivery functionality yourself. if you d

Re: Transactions in Stomp

2013-12-05 Thread Sophia Wright
Yes, that is fine. But my question is " Why there is NO message redelivery in case of STOMP transactions (like JMS transactions have) ? -- View this message in context: http://activemq.2283324.n4.nabble.com/Transactions-in-Stomp-tp4675080p4675211.html Sent from the ActiveMQ - User mailing li

Re: Duplicate messages sent in Active MQ 5.7

2013-12-05 Thread Johan Edstrom
1 - Correct. 2 - I actually haven't used that myself, I'd give it a whirl. 3 - To commit yourself you need to change the Ack mode, this is how you'd do batches for example with transacted mode. On Dec 5, 2013, at 10:20 AM, badrinana wrote: > Hi Johan, > > I am assuming if I don't explicit

Re: Proble with installing activeMQ 5.9.0

2013-12-05 Thread Christian Posta
"export ACTIVEMQ_USER=" You may wish to check the scripts you're running to make sure they're not purposefully setting the ACTIVEMQ_USER (which is likely) or, install activemq somewhere where the 'activemq' user has privileges. On Thu, Dec 5, 2013 at 9:39 AM, Chamila Wijayarathna wrote: > How c

Re: Transactions in Stomp

2013-12-05 Thread Christian Posta
Transactions allow you to process a "unit of work" or "group messages together" ACK/NACK aren't applied on the broker until the transaction has been committed. On Thu, Dec 5, 2013 at 9:09 AM, Sophia Wright wrote: > Thanks, > I am just little bit confused in case of CLIENT_ACK mode in STOMP > tr

Re: Duplicate messages sent in Active MQ 5.7

2013-12-05 Thread badrinana
Hi Johan, I am assuming if I don't explicitly add acknowledge=auto in the spring.xml, all messages should ideally be Acked automatically. 1) Is the assumption right? Reading this jira: https://issues.apache.org/jira/browse/AMQ-3576 auditNetworkProducers - network issues / possible stuck

Re: Proble with installing activeMQ 5.9.0

2013-12-05 Thread Chamila Wijayarathna
How can I solve it? On Thu, Dec 5, 2013 at 8:11 PM, Christian Posta wrote: > looks like the script in your distro is changing to 'activemq' user > which doesn't have permissions to write into your home directory. > > On Thu, Dec 5, 2013 at 1:48 AM, Chamila Wijayarathna > wrote: > > Hello all, >

Re: When will activemq-core 5.9 be present in maven central repo?

2013-12-05 Thread edbras
> yah, if using the spring config, you may want activemq-spring also Yes of course, sounds kind of logic ;).. And yes, that did the trick. I now have: activemq-broker, activemq-client, activemq-spring, activemq-activemq-kahadb-store Which seems to work fine. -- View this message in context: ht

Re: Transactions in Stomp

2013-12-05 Thread Sophia Wright
Thanks, I am just little bit confused in case of CLIENT_ACK mode in STOMP transaction. At consumer side, When consumer is running and throwing exception while processing the message (consumer doesn't stop, it keeps on running), there is no redelivery of message. Even if i uses transactions the

Re: How to check if a queue already exists

2013-12-05 Thread Timothy Bish
Christian sums it up pretty nicely. However if you insist that using advisories is the way to go there are some examples of using advisory consumers in the CMS examples dir. Also in the 3.8.0 line there is now a DestinationSource in CMS that you can get from the Connection instance which will

Re: How to check if a queue already exists

2013-12-05 Thread Christian Posta
So the bottom line for this is simple, and Tim already mentioned this in the other thread: Enable security (http://activemq.apache.org/security.html) and don't let the producer user "create" any destinations. Then allow the consumer user to create destinations. Then you can do what you (or the OP

Re: Proble with installing activeMQ 5.9.0

2013-12-05 Thread Christian Posta
looks like the script in your distro is changing to 'activemq' user which doesn't have permissions to write into your home directory. On Thu, Dec 5, 2013 at 1:48 AM, Chamila Wijayarathna wrote: > Hello all, > I downloaded activeMQ binary distribution and extracted on my computer. > When I ran "su

Re: When will activemq-core 5.9 be present in maven central repo?

2013-12-05 Thread Christian Posta
yah, if using the spring config, you may want activemq-spring also On Thu, Dec 5, 2013 at 5:01 AM, edbras wrote: >> I think activemq-broker and activemq-kahadb-store should be enough. > If I do so, I do get the xml ns error below. > > If I include the activemq-all, it works, but then I get other

Re: When will activemq-core 5.9 be present in maven central repo?

2013-12-05 Thread edbras
> I think activemq-broker and activemq-kahadb-store should be enough. If I do so, I do get the xml ns error below. If I include the activemq-all, it works, but then I get other conflicting issues like slf4j, geronimo, etc... Example usage: xmlns:amq="http://activemq.apache.org/schema/core"; B

Re: ActiveMQ C++ higher Version 2.2.6 - Segfault by initialization

2013-12-05 Thread Timothy Bish
On 12/05/2013 02:57 AM, Nikolaus Klimek wrote: Hello, because our previous SLES Version does not support required apr-version, we used the ActiveMQ C++ Client 2.2.6, which was compiled to a shared object/library and called by a cobol application (via CALL). This combination works fine. Actually

Re: wrapper.conf does not quote %ACTIVEME_CONF% on line 64

2013-12-05 Thread Timothy Bish
On 12/05/2013 01:43 AM, andrewp wrote: Whilst trying to install ActiveMQ as a windows service, I found this issue with the wrapper.conf out of the box configuration. (apache-activemq-5.9.0) wrapper.java.additional.15=-Djava.security.auth.login.config=%ACTIVEMQ_CONF%/login.config You will no

size lib cms

2013-12-05 Thread MillieretXavier
Hi all, I am using the cms activemq library, in my porjet, and I have the following problem: under windows my own library has 3 Mo size And on the linux os, the size growing up at 14 Mo, so why ? and how have the minus library size ? Thanks a lot -- View this message in context: http://activ

Proble with installing activeMQ 5.9.0

2013-12-05 Thread Chamila Wijayarathna
Hello all, I downloaded activeMQ binary distribution and extracted on my computer. When I ran "sudo sh activemq start" from bin folder I get this response [1]. What is wrong here? 1. https://gist.github.com/cdwijayarathna/7802123 -- *Chamila Dilshan Wijayarathna,* SMIEEE, SMIESL, Undergraduate,