Re: Support for ActiveMQ failover url in Stratos

2014-07-03 Thread chris snow
Hi Lahiru, answers inline... On 3 Jul 2014 17:53, "Lahiru Sandaruwan" wrote: > Hi Chris, > > Is it a method which will not need a jndi.properties file? > Correct. Can you clarify a bit about how that works? > Some more information is here: https://issues.apache.org/jira/browse/STRATOS-616 >

Re: Support for ActiveMQ failover url in Stratos

2014-07-03 Thread Lahiru Sandaruwan
Hi Chris, Is it a method which will not need a jndi.properties file? Can you clarify a bit about how that works? Anyway that would be a good addition and i'm sure that method will support fail-over url. We can go for that improvement at any point down the line. This solution is to make sure that

Re: Support for ActiveMQ failover url in Stratos

2014-07-03 Thread chris snow
Hi Lahiru, One change that I will be working on at some point is providing an option to replace jndi with a pure amqp approach. I'm not sure if that will impact what you are looking at. There is a JIRA tracking this. Cheers, Chris On 3 Jul 2014 11:40, "Lahiru Sandaruwan" wrote: > Hi all, > > I

Re: Support for ActiveMQ failover url in Stratos

2014-07-03 Thread Lahiru Sandaruwan
Hi all, In addition to remove dynamic creations of jndi.properties files, we need change puppet script to support MB Uri directly. So we need to replace *tcp://$mb_ip:$mb_port* type URI with *$mb_uri* in the scripts. Is that fine with everyone? Thanks. On Tue, Jul 1, 2014 at 6:37 PM, Lahiru S

Re: Support for ActiveMQ failover url in Stratos

2014-07-01 Thread Lahiru Sandaruwan
Hi Imesh, Thanks for the reply. This looks a cleaner approach. So we can remove mb_ip and mb_port from loadbalancer.conf file as well. I'll work on implementing this. Thanks. On Tue, Jul 1, 2014 at 6:18 PM, Imesh Gunaratne wrote: > Hi Lahiru, > > I think the best option would be to remove t

Re: Support for ActiveMQ failover url in Stratos

2014-07-01 Thread Imesh Gunaratne
Hi Lahiru, I think the best option would be to remove the jndi.properties template and it's dynamic file generation logic and place the jndi.properties file directly. Then it would be consistent with other modules. Thanks On Tue, Jul 1, 2014 at 7:23 AM, Lahiru Sandaruwan wrote: > Hi all, > >

Support for ActiveMQ failover url in Stratos

2014-07-01 Thread Lahiru Sandaruwan
Hi all, I have a requirement to support $subject. Currently Stratos supports *"tcp://$mb_ip:$mb_port"* in jndi.properties file and we need to add support to fail over URI support as follows *"failover:(tcp://primary_mb_ip:$mb_port:61616,tcp://secondary_mb_ip:$mb_port:61616)?* *randomize=false"*.