Load balancing does not work once broker is restarted- ActiveMQ 5.3

2010-10-25 Thread Navin Naidu
Hi, The load balancing does not work once broker is restarted. I am creating new connection object, new session for each consumer and attaching appropriate message listeners. All the messages go to the 1st consumer's message listener. I am using KahaDB persistence. Is there something I am missing

activemq Log4j usage

2010-10-04 Thread Navin Naidu
Hi, I am facing issues configuring log4j with activemq as osgi bundle, I have created an osgi bundle of activemq Embedded broker and has log4j.properties file in its classpath. It creates an empty log file, and prints the INFO on stdout (which is the default logging behaviour). I have also tried

Alias for Destination/Queue

2010-09-02 Thread Navin Naidu
Does activemq support alias for destination/queue ? If a message is send to any alias of a destination, it will be sent to the same queue. -- Thanks & Regards, - Navin

Re: default file store location

2010-08-27 Thread Navin Naidu
I was able to change the dataDirectory programatically through : broker.setDataDirectory("SomeDirectory"); Still, why does it create a data directory for JDBC persistence, is it to store temporary messages ? -Navin On Fri, Aug 27, 2010 at 2:59 PM, Navin Naidu wrote: > I

Re: default file store location

2010-08-27 Thread Navin Naidu
I am using JDBC persistence with apache derby. When I start the broker, it creates the required three tables in the db, along with that it also creates "activemq- data" directory. Even if I try to configure the uri: "tcp:// 0.0.0.0:61616?broker.dataDirectory=SomeDirectory", it still goes ahead and

How to programmatically configure JDBC Persistence.

2010-08-26 Thread Navin Naidu
Hi, How can I programmatically configure for jdbc persistence with apache derby. Is this the right way to configure ? Snippet: ** BrokerService broker = *new* BrokerService(); JDBCPersisten