Re: message clears from db if application or activemq restarts..

2011-05-03 Thread anilkapoor
please reply anyone, i need to fix it quickly. Thanks in advance. -- View this message in context: http://activemq.2283324.n4.nabble.com/message-clears-from-db-if-application-or-activemq-restarts-tp3491807p3494583.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: message clears from db if application or activemq restarts..

2011-05-03 Thread anilkapoor
hey martin thanx for reply.. as you have mentioned in my framework i did not change the default persistent setting of message other configurations which i am using are: this is my camel route: and in readData & read

Load balancing with activemq

2011-05-03 Thread agujral
I have following setup. There are two brokers A and B and one producer P. I want to know how I can if at all possible if I can make my producer P do round robin writes to brokers A and B .Say I do 100 writes 50 go to broker A and 50 to broker B I am open to using network of brokers . Please Sugg

Re: Failover configuration not working

2011-05-03 Thread Timothy Bish
On Tue, 2011-05-03 at 15:25 -0700, agujral wrote: > Hi There, > Thanks for your reply.I want to accomplish the following I have > two brokers I want my producer > to write use both the brokers equally.For example say there are two brokers > A and B > a)Say my producer has data to writ

Re: Failover configuration not working

2011-05-03 Thread agujral
Hi There, Thanks for your reply.I want to accomplish the following I have two brokers I want my producer to write use both the brokers equally.For example say there are two brokers A and B a)Say my producer has data to write to and it writes to broker A. b)Now again the producer has d

Re: Failover configuration not working

2011-05-03 Thread Timothy Bish
On Tue, 2011-05-03 at 14:34 -0700, agujral wrote: > As per the documentation > http://activemq.apache.org/failover-transport-reference.html randomize is > true by default > Then why do I need to specify it > I just put it on for clarity. To answer your question we'd need some more details on you

Re: Failover configuration not working

2011-05-03 Thread agujral
As per the documentation http://activemq.apache.org/failover-transport-reference.html randomize is true by default Then why do I need to specify it -- View this message in context: http://activemq.2283324.n4.nabble.com/Failover-configuration-not-working-tp3493557p3493634.html Sent from the Activ

Re: Failover configuration not working

2011-05-03 Thread Timothy Bish
On Tue, 2011-05-03 at 14:07 -0700, agujral wrote: > Hi All, > I am using the following configuration in my activemq setup > failover:(tcp\://host1.com\:61616,tcp\://host2.com\:61616) for > producers.Brokers are running on > host1.com and host2.com . The problem is that producers always wr

Failover configuration not working

2011-05-03 Thread agujral
Hi All, I am using the following configuration in my activemq setup failover:(tcp\://host1.com\:61616,tcp\://host2.com\:61616) for producers.Brokers are running on host1.com and host2.com . The problem is that producers always write to one broker and the other broker is not used. As per h

Re: ActiveMQ 5.5: Not able to get the DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY value

2011-05-03 Thread kar
Hi Gary Thanks alot for replying. I am not using the 'vm' protocol. I am using the tcp protocol with the following broker url:- tcp://localhost:61616 My application is using the Spring Framework. And i am using the DefaultMessageListenerContainer for the listeners. Using the 'Spring JMSTemplate'

Re: Question on consumers

2011-05-03 Thread Don Santillan
Thanks a lot Martin. This is very helpful. With this, I'd like to verify if my understanding is correct through the following code snippet: ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(brokerURI); Connection connection = connectionFactory.createConnection();

Re: Advisory Messages - isConnectionInfo() and isRemoveInfo() methods

2011-05-03 Thread Timothy Bish
On Tue, 2011-05-03 at 18:10 +0100, Suneel Papineni wrote: > Hi, > > > > I am trying to see if "isConnectionInfo() and isRemoveInfo()" methods > are working fine. Created a consumer with a destination > "ActiveMQ.Advisory.Connection" and implemented following code in > onMessage() method. > > #

Advisory Messages - isConnectionInfo() and isRemoveInfo() methods

2011-05-03 Thread Suneel Papineni
Hi, I am trying to see if "isConnectionInfo() and isRemoveInfo()" methods are working fine. Created a consumer with a destination "ActiveMQ.Advisory.Connection" and implemented following code in onMessage() method. ## virtual void onMessage( const cms::Message* mes

Re: ActiveMQ 5.5: Not able to get the DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY value

2011-05-03 Thread Gary Tully
are you using a vm:// brokerurl, if so you need to have it unmarshall the properties using a url like vm://localhost?marshal=true have a look at the test to compare and contrast with what you are doing: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/Me

ActiveMQ 5.5: Not able to get the DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY value

2011-05-03 Thread kar
Hello, I am not able to get the reason of exception from the message that is in the DLQ. These are the steps i have followed:- 1. Message is sent to a 'Sample' Queue. 2. The Message Listener throws a Runtime Exception in the onMessage Function.(throw new RuntimeException("Exception Reason Test")

Re: Messages stuck in queue

2011-05-03 Thread Gary Tully
there is a prefetchSize attribute for that on the NetworkConnector xbean, inherited from org.apache.activemq.network.NetworkBridgeConfiguration On 3 May 2011 15:08, lernen.2007 wrote: > I think the problem is that the there is no prefetchSize option for > networkconnector and that can be the reas

Re: message clears from db if application or activemq restarts..

2011-05-03 Thread Martin C.
Hi, you broker's persistence settings are only used if you send your messages as persistent and not as non-persistent. See http://download.oracle.com/javaee/1.4/api/javax/jms/MessageProducer.html for persistence settings. The JMS default is persistent, but I don't know how you configured your fram

Re: Messages stuck in queue

2011-05-03 Thread lernen.2007
I think the problem is that the there is no prefetchSize option for networkconnector and that can be the reason why the messages stuck. -- View this message in context: http://activemq.2283324.n4.nabble.com/Messages-stuck-in-queue-tp3244342p3492540.html Sent from the ActiveMQ - User mailing list

Re: message clears from db if application or activemq restarts..

2011-05-03 Thread anilkapoor
Hey martin as i shown my config file, i am using persistency using jdbcpersistenceadapter in oracle. & only undelivered messages i can see in the activemq_msgs table. for making messages undeliver i give a wrong route address which does not exist, so i can see that message in db. until now i think

Re: Usage memory Limit hit with Network of Brokers.

2011-05-03 Thread Gary Tully
the stop method on the network connector via JMX should do that for you. On 3 May 2011 13:02, Martin C. wrote: > Hi, > > On Tue, May 3, 2011 at 11:20 AM, Gary Tully wrote: >> In your setup, when one of the networked brokers goes >> down it becomes (looks like) a very slow consumer. > > Is there

Re: message clears from db if application or activemq restarts..

2011-05-03 Thread Martin C.
Hi, are you using persistent or non-persistent delivery for your messages? Any non-persistent message will be discarded on broker restart (however, I don't know why it would go to the storage in the first place, though). And are you using a time-to-live on your messages, which might have expired

Re: Question on consumers

2011-05-03 Thread Martin C.
Hi, the JMS threading model is based around the Session. Each Session is to be used by one thread. If you are using asynchronous mode (you register a MessageListener with the Session), every Session uses one thread or is to be used by one thread (http://download.oracle.com/javaee/1.4/api/javax/jms

Re: Usage memory Limit hit with Network of Brokers.

2011-05-03 Thread Martin C.
Hi, On Tue, May 3, 2011 at 11:20 AM, Gary Tully wrote: > In your setup, when one of the networked brokers goes > down it becomes (looks like) a very slow consumer. Is there a way to "de-register" a broker in such a scenario, if it goes down intentionally "forever"? Best regards, Martin

Re: Question on consumers

2011-05-03 Thread Don Santillan
bump On Monday, 02 May, 2011 05:50 PM, Don Santillan wrote: Hello, I have a basic question about message consumers that I really need to confirm that my understanding is correct. Do message consumers run in different threads? Suppose I have 5 consumers assigned to a queue. Are these consume

Re: Incremental updates and QueryBasedSubscriptionRecoveryPolicy

2011-05-03 Thread Gary Tully
your recovery policy will be hit N times, it is up to the query to cache the messages as it pleases. The only concrete implementation I see is in the tests so it looks like it is up to you. On 30 April 2011 14:52, this.juan wrote: > Hi, > > This is what I'd like to do: > > * Clients subscribe to

Re: Usage memory Limit hit with Network of Brokers.

2011-05-03 Thread Gary Tully
you need to use a pending message limit strategy or file pending message cursor. In your setup, when one of the networked brokers goes down it becomes (looks like) a very slow consumer. Check out the options: http://activemq.apache.org/slow-consumer-handling.html On 28 April 2011 14:29, manua wr