Re: ActiveMQ Topic Persistence - ActiveMQ restart

2013-05-27 Thread joesan
I figured that out now. But anyways thanks for the post! -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Topic-Persistence-ActiveMQ-restart-tp4667501p4667503.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

ActiveMQ Topic Persistence - ActiveMQ restart

2013-05-27 Thread joesan
Dear users, I have an ActiveMQ broker that contains a topic in it. I have pre-configured the topic as a start up destination. I have written a producer and a consumer. The following is what I do: (1) Start ActiveMQ broker (2) Start my producer. As soon as I do this, my producer starts publishing

Camel Route Error in ActiveMQ

2013-01-23 Thread joesan
Hallo ActiveMQ Users, I'm trying to configure a Camel route in my ActiveMQ broker and I'm facing some issues with respect to the namespaces that I use. I have actually the following namespaces configured in my activemq.xml file: *http://www.springframework.org/schema/beans"; xmlns:amq="http://a

ActiveMQ LDAP Authorization Issue

2012-12-05 Thread joesan
Guys, I have an LDAP configuration where I have 3 users namely admin, publisher, consumer and I have 3 groups namely admins, consumers, publishers and I have 3 users namely admin, user1, user2. I also have my destinations configured. When I try to connect to my ActiveMQ server, I get the followin

Re: ActiveMQ Authorization Performace

2012-11-29 Thread joesan
In terms of numbers what would that mean? I have a situation wherein I have at least 5 different clients writing to one Topic and another client reading from that Topic. In response, this client writes to a Topic and the other 5 get the message from that Topic. What would you recommend in this scen

Re: ActiveMQ Authorization Performace

2012-11-29 Thread joesan
Thanks for the reply. I can see from the ActiveMQ documentation that there are many possible ways to do Authentication and Authorization. For example., to Authenticate, I can use SSL, JAAS Certificate Authentication, JAAS LDAP Authentication, JAAS Username, Password Authentication. What would you

ActiveMQ Authorization Performace

2012-11-29 Thread joesan
Guys, I"m looking for suggestions if I should consider using LDAP for authorization? Does the authorization happen only once when my clients set up their connection? or does it happen for every messages published or consumed by the clients? -- View this message in context: http://activemq.2283

Re: ActiveMQ SSL Client

2012-11-28 Thread joesan
Ok. I got past that error of the login.config file not being found. Another issue that popped out is as below: *WARN | Failed to add Connection ID:HP10007131-55187-1354108717336-1:1, reason: java.lang.SecurityException: User name [system] or password is invalid. No user for client certificate: CN

Re: ActiveMQ SSL Client

2012-11-28 Thread joesan
I have made some progress, but terribly stuck with the following error: WARN | Failed to add Connection ID:HP10007131-54558-1354103802934-1:1, reason: java.lang.SecurityException: User name [null] or password is invalid. Unable to load user properties file .\users.properties It does not respect

Re: ActiveMQ SSL Client

2012-11-28 Thread joesan
I found the following information from Fuse source documentation. http://fusesource.com/docs/broker/5.5/security/Auth-JAAS-CertAuthentPlugin.html I export the certificate from the Broker's key store, view the contents and get the Subject DN. I copy this Subject DN and use it in my users.propertie

Re: ActiveMQ SSL Client

2012-11-28 Thread joesan
When I still need the key store and trust store, why will I use this JAAS plug in for authentication? I can very well use SSL Authentication in the form of certificates stored in the trust store of the broker and my client. I understand that I can plug in authorization rules, but for that I could

Re: ActiveMQ SSL Error: No X509TrustManager implementation avaiable

2012-11-27 Thread joesan
Ok. I got this working. I had to create a new trust store for the broker, import my client certificate in it and copy the created broker trust store to ACTIVEMQ_HOME/conf directory. I had to modify my SSL context in the activemq.xml to specify my trust store and the trust store password. -- View

ActiveMQ SSL Client

2012-11-27 Thread joesan
Guys, I'm trying to get my ActiveMQ server run using a SSL connection. I have done the following: (1) Created the broker keystore (self signed certificate) (2) Exported the broker certificate (3) Created the client keystore (4) Created the client trust store (5) Imported the broker certificate in

Re: ActiveMQ Authentication

2012-08-24 Thread joesan
My publisher is trying to connect to the service with his credentials. User publish is not authorized to create: topic://ActiveMQ.Advisory.Connection I modified the entry as below. But still it woudn't allow?? *

Re: ActiveMQ Authentication

2012-08-24 Thread joesan
So here is the exception that I get after modifying my activemq.xml by removing the bean definition that was redundant: Loading message broker from: xbean:activemq.xml INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@c5495e: startup date [Fri Aug 24 15:42:55 CEST 2012]; root of co

Re: ActiveMQ Authentication

2012-08-24 Thread joesan
I will try that and let know the results here. -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Authentication-tp4655478p4655525.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ Authentication

2012-08-24 Thread joesan
I modified the properties by generating new values but still no luck! admin.password=ENC(qcsJFdo+PVIz9FLW7HZX0u/fniJ21gpk) publish.password=ENC(VRd4U5n+KFpQARExI7XbicVgM//1GLYB) consume.password=ENC(GXQopJamSs6wPv/gHzs7oQsICAfkVDcV) In my activemq.xml, I also have this additional bean tag. Should

Re: ActiveMQ Authentication

2012-08-23 Thread joesan
I had a look at the ActiveMQ in Action examples and that uses the activemq-security.xml to start the ActiveMQ. But I guess that should not matter. I will check for those braces and see if that works! -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Authenticatio

Re: ActiveMQ Authentication

2012-08-23 Thread joesan
This is my config: (activemq.xml) * * In my credentials-enc.properties, I have the following: * admin.password=ENC(poLn7+4Q4huiuGb6xCI2hg==)) publish.password=ENC(mYRkg+4Q4hua1kvpC

ActiveMQ Authentication

2012-08-23 Thread joesan
I'm using the simple authentication plugin and have encrypted my passwords using the encrypt utility. The following problems I face when I start my activemq: ERROR | Failed to load: class path resource [activemq.xml], reason: Invalid bean definition with name 'org.apache.activemq.xbean.XBeanBroker

Re: ActiveMQ Clustering Issue

2012-08-22 Thread joesan
This is how my MessageListener looks like: *public class Listener implements MessageListener { public void onMessage(Message message) { try { MapMessage map = (MapMessage)message; Long msgCount = map.getLong("counter");

Re: ActiveMQ Clustering Issue

2012-08-22 Thread joesan
Below is how my Consumer looks like: *public class Consumer { private static String brokerURL = "failover:(tcp://localhost:61616,tcp://localhost:61617)?maxReconnectAttempts=-1"; private static transient ConnectionFactory factory; private transient Connection connection; private tr

Re: ActiveMQ Clustering Issue

2012-08-22 Thread joesan
Well as per the docs, it is so! http://activemq.apache.org/failover-transport-reference.html maxReconnectAttempts=-1 will try indefinitely! I will try that tomorrow on my cluster configuration and let know the results here! Thanks for all the help! -- View this message in context: http://act

Re: ActiveMQ Clustering Issue

2012-08-22 Thread joesan
I would try increasing the maxReconnectAttempts to a bigger value. Is there a rule of thumb as to how big this should be? Is there an indefinite try? what happens if I specify -1? Will it try indefinitely until it gets a connection? I would love to have that! -- View this message in context: ht

Re: ActiveMQ Network of Brokers

2012-08-22 Thread joesan
It's not with two hosts, but with two hosts and a shared database, I lock the second to a waiting state. I got the point. So my earlier understanding was correct that with a Master / Slave and a shared database lock, the slave will not start it's transport connectors and will wait for the lock. Li

Re: ActiveMQ Network of Brokers

2012-08-22 Thread joesan
Thanks for the reply. Can you explain me why that with a shared file system I cannot have a network of brokers? -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Network-of-Brokers-tp4655435p4655444.html Sent from the ActiveMQ - User mailing list archive at Nabble.

Re: ActiveMQ Network of Brokers

2012-08-22 Thread joesan
When I configure the networkConnector in the activemq.xml file, I'm doing a network of brokers. Did I get it correctly? When my clients use a failover protocol, it is a failover scenario. Is this correct as well? In my case, I have both. Something similar to this. http://fusesource.com/docs/brok

Re: ActiveMQ Clustering Issue

2012-08-22 Thread joesan
I'm happy to see some help at last. Here is how the fail-over url looks like from my clients (both producer and consumer) failover:(tcp://localhost:61616,tcp://localhost:61617) -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Clustering-Issue-tp4655306p4655440.

Re: ActiveMQ Network of Brokers

2012-08-22 Thread joesan
But isn't configuring the networkConnectors with a static discovery in the activemq.xml configuration file is a network of brokers? -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Network-of-Brokers-tp4655435p4655439.html Sent from the ActiveMQ - User mailing lis

ActiveMQ Network of Brokers

2012-08-22 Thread joesan
I"m trying to understand the concept behind the network of brokers in ActiveMQ. What I understand from the documentation is that by having a network or broker we can get load balancing. I would assume that load balancing would mean that the messages are sent to either one of the brokers (Master or

Re: ActiveMQ Clustering Issue

2012-08-22 Thread joesan
What is more troubling me is that the messages sent by the Producer to a Topic is lost when the Master goes down. When I restart my consumer, all those messages that the Producer had sent to the Topic was lost. How do I handle this? Where is the high availability in picture in this AMQ Clustering?

Re: ActiveMQ Master / Slave Message Integrity

2012-08-21 Thread joesan
Can you show me some pointers on how to use a durable consumer? -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Master-Slave-Message-Integrity-tp4655369p4655391.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ Master / Slave Message Integrity

2012-08-21 Thread joesan
I just performed the following test on my Master / Slave: Started AMQ1 and AMQ2 - Both runs on the same host but with a different port Started my Consumer and Producer - Both have the fail-over protocol to connect to the AMQ I send messages using my producer in a loop... where with every 10 seco

Re: ActiveMQ Master / Slave Message Integrity

2012-08-21 Thread joesan
Thanks for the info. So all I have to do is just to durable subscribe my Producer. On the Consumer side, I do not have to specify durable subscription? -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Master-Slave-Message-Integrity-tp4655369p4655381.html Sent from

Re: master/slave, consumer can not failover

2012-08-20 Thread joesan
That seems like a restricted solution that the Consumer should be a servlet. May I know why? What I have is a standalone Consumer (for testing purposes). Not sure how the Production systems are, but the standalone Consumer dies as soon as the Master is down. I have been looking for a solution to t

Re: master/slave, consumer can not failover

2012-08-20 Thread joesan
Did you find a solution to this? I have more or less the same issue. My Producer can fail-over but my Consumer dies as soon as the master dies. -- View this message in context: http://activemq.2283324.n4.nabble.com/master-slave-consumer-can-not-failover-tp4653639p4655327.html Sent from the Acti