Re: How to configure failover for jmsBridgeConnector

2009-10-15 Thread torefj
You specify the failover protocol by enclosing the existing URL with "failover:()" So you'll need to change the URL that you are connecting with to for example look like: failover:(tcp://localhost:1234) Beware though that if you are using activeMQ 5.2 or before the failover protocol does not hav

Re: How to preserve statisitcs after restart server

2009-10-15 Thread NabiL
Thanks for your response. Joe Fernandez wrote: > > AFAIK, AMQ does not persist statistics out to secondary storage. > > You could write your own plugin that taps the MBeans for the info and > writes it out to a db. Or write a Monlet using this > http://www.ttmsolutions.com/Transactional_Soft

Re: Transactions and redelivery

2009-10-15 Thread magellings
We are sort of in the same boat. Transactions generally are not just used for redelivery purposes. They also are performance efficient as you can batch. http://activemq.apache.org/should-i-use-transactions.html What we are doing to avoid hang ups in clients on redeliveries is to use ClientAckn

Transactions and redelivery

2009-10-15 Thread Geoffrey Arnold
Hi All, When a message is rolled back on a session, it appears that no other messages will be delivered to the consumer's listener for that session until the original message is consumed (committed). I believe that this is due to the session attempting to maintain message order, however

Strategies for purging internal consumer queue

2009-10-15 Thread Geoffrey Arnold
Hi All, We are successfully using JMX to purge our queues in between our Cucumber-based test scenarios, however this does not clear the session's internal consumer queue. This can cause messages which have been delivered to the consumer's session but not yet consumed by the listener (per

Possible causes of end-to-end packet loss in Activemq, and TCP protocol

2009-10-15 Thread praveen.sharma
What are the possible causes of packet loss in activemq even with TCP protocol. One possible cause that I can think of is TTL expiring. What are different ways of measuring packet loss? -- View this message in context: http://www.nabble.com/Possible-causes-of-end-to-end-packet-loss-in-Activem

Re: Maven + ActiveMQ + my own code

2009-10-15 Thread Ryan Stewart
Ryan Stewart wrote: > > My question remains: can the Maven plugin run ActiveMQ and include the > Maven classpath so it finds my classes? > The more I think about it, the more I think this is more of a Maven question than an ActiveMQ question because I think it comes down to the scope of the cla

Re: JMS bridge v. network of brokers

2009-10-15 Thread Geoffrey Arnold
Many thanks, Joe, those examples were exactly what I needed. Best, Geoff. On Oct 15, 2009, at 1:45 PM, Joe Fernandez wrote: Hi Geoff, A Network of Brokers (NoB) is set up so that you can forward messages from one broker to another in the NoB. A connection between two brokers in the NoB

Re: JMS bridge v. network of brokers

2009-10-15 Thread Joe Fernandez
Hi Geoff, A Network of Brokers (NoB) is set up so that you can forward messages from one broker to another in the NoB. A connection between two brokers in the NoB is also referred to as a forwarding bridge. See the following http://activemq.apache.org/networks-of-brokers.html AMQ 5.3 comes wi

Re: Maven + ActiveMQ + my own code

2009-10-15 Thread Ryan Stewart
Mick Knutson-3 wrote: > > > class="org.apache.activemq.camel.component.ActiveMQComponent"> > > > > Configures a camel component named "jms" to connect to a broker at the default port on localhost. Mick Knutson-3 wrote: > > class="org.apache.activemq.ActiveMQConnectionFactory"> >

JMS bridge v. network of brokers

2009-10-15 Thread Geoffrey Arnold
Hi All, I'm trying to form a topology where queues hosted on independent brokers (separate machines) are consolidated into a single queue on a central broker. Messages will be consumed by listeners on that central broker. Independent brokers will come on and off the network. Originally

Re: How to preserve statisitcs after restart server

2009-10-15 Thread Joe Fernandez
AFAIK, AMQ does not persist statistics out to secondary storage. You could write your own plugin that taps the MBeans for the info and writes it out to a db. Or write a Monlet using this http://www.ttmsolutions.com/Transactional_Software_Solutions/Active_Monitor_AMon.php monitoring tool . The

How to preserve statisitcs after restart server

2009-10-15 Thread NabiL
Hi all, I tested ActiveMQ 5.3 and it works fine !! Questions: 1- I want to preserve statistics after restart server. I have entered these broker parameters enableStatistics="true" and deleteAllMessagesOnStartup="false". When i restart AMQ server, as a result the statistics are not preserve

Re: Maven + ActiveMQ + my own code

2009-10-15 Thread Mick Knutson
http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://bas

How to configure failover for jmsBridgeConnector

2009-10-15 Thread bbuzzard
I'm a newbie to ActiveMQ and I need a little help. I followed an example showing how to set up a bridge between OpenJMS and ActiveMQ. The bridge seems to work perfectly, but if I stop then restart OpenJMS while leaving ActiveMQ running. Once I restart OpenJMS I try sending a message from it to

Re: Maven + ActiveMQ + my own code

2009-10-15 Thread Ryan Stewart
Mick Knutson-3 wrote: > > If you use Spring, you can have Spring start an embedded broker for you > in > a unit test like: > > http://www.baselogic.com/blog/java/testing-activemq-virtualtopics-using-camel-and-junit > I'm not quite sure what you're getting at. I don't see anywhere in that pos

Re: Maven + ActiveMQ + my own code

2009-10-15 Thread Mick Knutson
If you use Spring, you can have Spring start an embedded broker for you in a unit test like: http://www.baselogic.com/blog/java/testing-activemq-virtualtopics-using-camel-and-junit --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Cons

Re: Maven + ActiveMQ + my own code

2009-10-15 Thread Ryan Stewart
Gary Tully wrote: > > You may need to add your project to the dependencies of the > maven-activemq-plugin definition, like jetty, in the example @ > see: http://activemq.apache.org/maven2-activemq-broker-plugin.html > The problem is that my project is the one where I have the activemq plugin d

Re: Maven + ActiveMQ + my own code

2009-10-15 Thread Gary Tully
You may need to add your project to the dependencies of the maven-activemq-plugin definition, like jetty, in the example @ see: http://activemq.apache.org/maven2-activemq-broker-plugin.html 2009/10/15 Ryan Stewart > > I'm trying to get ActiveMQ started with the Maven plugin. I've added some > ex

Maven + ActiveMQ + my own code

2009-10-15 Thread Ryan Stewart
I'm trying to get ActiveMQ started with the Maven plugin. I've added some extra beans to the activemq.xml that depend on classes that are part of the project where the plugin is defined. When I start the broker with 'mvn activemq:run', it complains that it can't find the classes. How do I get the