RE: How do I set the subscription recovery policy ?

2008-05-30 Thread Andrew M
olicyEntry(); policy.setSubscriptionRecoveryPolicy(rc); PolicyMap pMap = new PolicyMap(); pMap.setDefaultEntry(policy); broker.setDestinationPolicy(pMap); broker.addConnector("tcp://localhost:61616"); broker.start(); cheers, Rob On 26 May 2008, at 20:08, Andre

How do I set the subscription recovery policy ?

2008-05-24 Thread Andrew M
How do I set the subscription recovery policy options at the bottom of this page? http://activemq.apache.org/subscription-recovery-policy.html Can someone give me an example URL to use in the java code? I'm not using any XML config files. Thanks..

activemq-admin error in 5.1.0

2008-05-15 Thread Andrew M
I'm getting this: [EMAIL PROTECTED]:~/apache-activemq-5.1.0/bin> ./activemq-admin stop ACTIVEMQ_HOME: /home/andrew/apache-activemq-5.1.0 ACTIVEMQ_BASE: /home/andrew/apache-activemq-5.1.0 ERROR: java.lang.RuntimeException: Failed to execute stop task. Reason: java.io.IOException: Failed to

RE: Java to .NET using NMS

2008-04-08 Thread Andrew M
Maybe it would be better to add the article text instead of links in case the links go bad. -Original Message- From: Jim Gomes [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 3:46 PM To: users@activemq.apache.org Subject: Re: Java to .NET using NMS Added the links to those four a

RE: retroactive consumer still dropping msgs...

2008-04-02 Thread Andrew M
t: Re: retroactive consumer still dropping msgs... it looks like you need "acknowledge" the received messages Andrew M-2 wrote: > > My retroactive consumer is still only saving the most recent 797 messages. > The complete code for an app demonstrating this is here: > >

retroactive consumer still dropping msgs...

2008-04-02 Thread Andrew M
My retroactive consumer is still only saving the most recent 797 messages. The complete code for an app demonstrating this is here: http://www.nmedia.net/~andrew/tmp/CommandLinePublisher.java It connects, sends 5000 msgs, disconnects, then creates a consumer and subscribes. It ends with

RE: Retroactive consumers loose msgs...

2008-03-31 Thread Andrew M
Original Message- From: Rob Davies [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2008 2:58 AM To: users@activemq.apache.org Subject: Re: Retroactive consumers loose msgs... How big are your messages ? - they might be reclaimed if you hit a memory limit in the broker On 29 Mar 2008, at 0

Java to .NET using NMS

2008-03-30 Thread Andrew M
It looks from this page: http://activemq.apache.org/nms.html like NMS allows openwire to talk to .NET languages. Are there any examples of that? Thanks, Andrew

Retroactive consumers loose msgs...

2008-03-29 Thread Andrew M
My Retroactive Consumer is only receiving the last 789 out of 5000 msgs sent. Any suggestions? Thanks. import javax.jms.Connection; import javax.jms.DeliveryMode; import javax.jms.Destination; import javax.jms.ExceptionListener; import javax.jms.JMSException; import javax.jms.Message;

"activemq-admin query" doesn't always work...

2008-03-28 Thread Andrew M
Running "activemq-admin query" from the command line only works about every third or fourth try. Usually I get this error: [EMAIL PROTECTED]:~/apache-activemq-5.0.0/bin> [EMAIL PROTECTED]:~/apache-activemq-5.0.0/bin> ./activemq-admin query ACTIVEMQ_HOME: /home/andrew/apache-activemq-5.

setting subscription recovery policy...

2008-03-25 Thread Andrew M
How do I set the subscription recovery policy options at the bottom of this page? http://activemq.apache.org/subscription-recovery-policy.html Can someone give me an example URL to use in the java code? I'm not using XML config files. Thanks..

setting a MessageListener on a consumer?

2008-03-24 Thread Andrew M
I'm using the method below to create a Topic and Consumer and register my MessageListener. I'm worried that with a retroactive consumer I'm missing messages between the .createConsumer() method and when the MessageListener is actually registered with the MessageConsumer. Shouldn't there be some w

RE: Where are the command line tools?

2008-03-24 Thread Andrew M
TECTED] Sent: Monday, March 24, 2008 1:09 AM To: users@activemq.apache.org Subject: Re: Where are the command line tools? It's in the binary distribution under the bin directory. http://activemq.apache.org/activemq-500-release.html Andrew M wrote: > Where do I find the command line to

Where are the command line tools?

2008-03-23 Thread Andrew M
Where do I find the command line tools talked about here? http://activemq.apache.org/activemq-command-line-tools-reference.html Thanks, Andrew

activemq Command Line Tools missing?

2008-03-19 Thread Andrew M
According to this: http://activemq.apache.org/activemq-command-line-tools-reference.html there should be some batch files and shell scripts like list, shutdown, query, etc... They appear to be missing from the 4.1.1 and 5.0.0 source and bin archives. I'm actually looking for a quick way to publ

RE: Retroactive consumer...yes, no, maybe so?

2008-03-19 Thread Andrew M
; in it? Are you sure no other consumer gets the messages off the queue before your retroactive consumer? Are you sure you shouldn't set the message listener on the message consumer before registering it as a consumer? Thanks, Aaron On Tue, Mar 18, 2008 at 1:19 PM, Andrew M <[EMAIL PR

RE: Retroactive consumer...yes, no, maybe so?

2008-03-18 Thread Andrew M
at the time was last 100): http://www.activemq.org/site/retroactive-consumer.html http://www.activemq.org/site/subscription-recovery-policy.html Thanks, Aaron On Tue, Mar 18, 2008 at 10:20 AM, Andrew M <[EMAIL PROTECTED]> wrote: > >

Retroactive consumer...yes, no, maybe so?

2008-03-18 Thread Andrew M
Does anyone have an example of how to make a retroactive consumer work? Thanks, Andrew -Original Message- From: Andrew M [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 5:05 PM To: users@activemq.apache.org Subject: RE: Retroactive consumer not working... Does anyone have an

RE: Retroactive consumer not working...

2008-03-07 Thread Andrew M
Does anyone have an example of working retroactive consumer code? Thanks, Andrew -Original Message- From: Andrew [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 2:40 PM To: users@activemq.apache.org Subject: Retroactive consumer not working... My broker is not feeding my co