Re: Potential threading bug in MemoryMessageStore.

2015-06-18 Thread Tim Bain
Did you look at this any further? Looking at the code, it looks like the call will be protected without explicit synchronization by the intrinsic lock on the synchronizedMap (and I think that some other methods such as delete() and addMessage() that just call a method on the synchronizedMap could

Re: Can I make createQueue on embedded broker session create a queue on the remote broker as well?

2015-06-18 Thread pubudu gunawardena
Thanks for the information Tim. I tried 'dynamic networks' setup and the queues are getting created. One thing that I would like to know is, when should the JMS to JMS connection be used and when should the Network connection be used? Is there any other difference when using the dynamic network set

Re: Is there any way to encrypt connectionPassword in LDAPLoginModule

2015-06-18 Thread alt_alt
Thanks for your help! I'll fire a ticket for it -- View this message in context: http://activemq.2283324.n4.nabble.com/Is-there-any-way-to-encrypt-connectionPassword-in-LDAPLoginModule-tp4697979p4697983.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Is there any way to encrypt connectionPassword in LDAPLoginModule

2015-06-18 Thread Christopher Shannon
Yeah unfortunately it doesn't look possible right now. I pulled up the source and did some digging and I don't see any current way to specify and encrypted value. If you want, you can go ahead and put a ticket in on Jira and I (or someone else) can take a look at it. On Thu, Jun 18, 2015 at 5:55

Re: Is there any way to encrypt connectionPassword in LDAPLoginModule

2015-06-18 Thread alt_alt
Thanks a lot for your reply. I've tried the cached ldap authorization map. But I still need to set connectionPassoword in cleartext in login.config file to make it work. I really want to know if it is possible to encrypt password in login.config file. -- View this message in context: http://act

Re: Is there any way to encrypt connectionPassword in LDAPLoginModule

2015-06-18 Thread Christopher Shannon
Anything that goes in activemq.xml can be encrypted because of Spring support (see http://activemq.apache.org/encrypted-passwords.html) Unfortunately, I do not believe there is a way to encrypt a password in the login.config file however. There is also newer way to use LDAP that you could try and

Is there any way to encrypt connectionPassword in LDAPLoginModule

2015-06-18 Thread alt_alt
Hi all, I am using ldap service to do authentication and authorization, and I need to set connectionPassword for LDAPLoginModule in login.config file. Is there any way to encrypt this password. Any response is highly appreciated. Thanks -- View this message in context: http://activemq.2283324

Re: MQTTFrame unknown

2015-06-18 Thread Timothy Bish
On 06/18/2015 10:58 AM, breakbad wrote: > I'm attempting to setup a simple NoB using the MQTT connector, and durable > topics/subscribers using MQTT 3.1.1 clean_session=false. Configuring broker > A to connect duplex to broker B, I'm seeing the following in the logs > simultaneously: > > Broker A >

MQTTFrame unknown

2015-06-18 Thread breakbad
I'm attempting to setup a simple NoB using the MQTT connector, and durable topics/subscribers using MQTT 3.1.1 clean_session=false. Configuring broker A to connect duplex to broker B, I'm seeing the following in the logs simultaneously: Broker A INFO | Establishing network connection from vm://loc

Re: Active MQ JDBC Master Slave using Lease Database Locker

2015-06-18 Thread Tim Bain
I can't comment on the second question, but it's normally recommended to run the slave broker on a different *host*. Usually you want a slave because you want redundancy to protect you from failure of all types: machines dying, machines getting overloaded by other processes running on them, networ

Active MQ JDBC Master Slave using Lease Database Locker

2015-06-18 Thread prince.jose
Hi, We are on active MQ 5.9.1 version and we are running a JDBC Master Slave with Lease Database locker. The back end is Oracle (11g rel2) database. Yesterday there was a scenario where the master lost the database connection and lost the lock lease. The slave got the lock in couple of seconds an

Re: Total consumer count negative

2015-06-18 Thread Tim Bain
Can you submit a bug in JIRA for this? If nothing else, it may prompt a developer who's got some time to go through all the places that counter is updated and see if there are any code paths that could result in this behavior. Make sure you describe whatever might have happened between the last t

Re: Can I make createQueue on embedded broker session create a queue on the remote broker as well?

2015-06-18 Thread Tim Bain
Have you set up your dynamically included destinations as described by the "dynamic networks" section of http://activemq.apache.org/networks-of-brokers.html? Note that under that setup, messages will be forwarded to the standalone remote broker only if there is a currently-attached consumer on the

Re: Can I make createQueue on embedded broker session create a queue on the remote broker as well?

2015-06-18 Thread pubudu gunawardena
To elaborate more, I am using an embedded broker to gain the benefits mentioned at http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html. But I want to dynamically create queues without knowing the name beforehand. On Thu, Jun 18, 2015 at 5:32 PM, pubudu gunawardena wrote:

Can I make createQueue on embedded broker session create a queue on the remote broker as well?

2015-06-18 Thread pubudu gunawardena
Hi All, I am quite new to ActiveMQ and am trying to figure out a solution to the following. I have an embedded broker and a remote broker. >From my code I do the following to create a session on the embedded broker and to create a queue there. factory = new ActiveMQConnectionFactory(

Re: Total consumer count negative

2015-06-18 Thread Christopher Shannon
I've been doing a lot of work with the metrics and monitoring of the broker recently so if this happens again in the future and you are able to find a way to reproduce it I'd be happy to take a look at it. -Chris On Thu, Jun 18, 2015 at 5:12 AM, ALi wrote: > no it has happen only once ...

Re: Total consumer count negative

2015-06-18 Thread ALi
no it has happen only once ... and after working a year without any problem. so it is a bit difficult to reproduce. we will continue monitoring the metric but without an alert. thank you tim On Tue, Jun 9, 2015 at 2:34 PM, Tim Bain wrote: > Does this happens reliably and quickly for you?