Re: Configuring vm with non-vm on the same broker

2016-04-29 Thread Tim Bain
The excludedDestinations attribute on the networkConnector sounds like what you want. http://activemq.apache.org/networks-of-brokers.html On Apr 29, 2016 1:49 PM, "Allan Wax" wrote: > Thanks. Would you provide some pointers or documentation references that > tell me how to doit. > > > > -- > Vi

Re: Artemis slave goes down after master comes back up

2016-04-29 Thread abhijith
Further looking into it, I found that true is causing it. I thought allow-failback will relinquish control, not shut itself off. -- View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-slave-goes-down-after-master-comes-back-up-tp4711403p4711404.html Sent from the Acti

Artemis slave goes down after master comes back up

2016-04-29 Thread abhijith
Hi, I am seeing a behavior in Artemis HA which I can't really explain why. I ran the example successfully provided here: https://github.com/apache/activemq-artemis/tree/master/examples/features/ha/replicated-failback-static Then bought up both master and slave manually which are present unde

Re: Configuring vm with non-vm on the same broker

2016-04-29 Thread Allan Wax
Thanks. Would you provide some pointers or documentation references that tell me how to doit. -- View this message in context: http://activemq.2283324.n4.nabble.com/Configuring-vm-with-non-vm-on-the-same-broker-tp4711350p4711395.html Sent from the ActiveMQ - User mailing list archive at Nabble

Re: Artemis JMX not showing queues

2016-04-29 Thread abhijith
Thanks for the prompt response. Will watch on the Jira. -- View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-JMX-not-showing-queues-tp4711375p4711396.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Artemis JMX not showing queues

2016-04-29 Thread Justin Bertram
To be clear, calling org.apache.activemq.artemis.api.jms.ActiveMQJMSClient#createQueue simply creates a a client-side representation of a JMS Queue (as the JavaDoc indicates). Nothing happens on the server when that method is invoked. I opened https://issues.apache.org/jira/browse/ARTEMIS-510

Re: Artemis create topic programatically

2016-04-29 Thread Justin Bertram
Automatically creating JMS server-side topics is not currently supported. See https://issues.apache.org/jira/browse/ARTEMIS-322 for more details. Justin - Original Message - From: "abhijith" To: users@activemq.apache.org Sent: Friday, April 29, 2016 10:13:32 AM Subject: Artemis create

Artemis create topic programatically

2016-04-29 Thread abhijith
Hi, I am trying to create topic programatically. Please find below my code @Test public void testCreateTopic() throws Exception { ConnectionFactory cf = ActiveMQJMSClient.createConnectionFactoryWithHA(JMSFactoryType.CF, server1, server2); Connection conn = cf.createConnection(

Re: Artemis JMX not showing queues

2016-04-29 Thread abhijith
First I am creating a connection factory using ActiveMQConnectionFactory cf = ActiveMQJMSClient.createConnectionFactoryWithHA(JMSFactoryType.CF, server1, server2); Then I am creating client representation of queue Queue queue = ActiveMQJMSClient.createQueue("x"); after that Connection cf

Re: Separate kahadb for queues and dead letter queues?

2016-04-29 Thread Quinn Stevenson
Wildcards aren’t quite that flexible - the docs say “don’t specify any string after ‘>’ on your wildcard express, it will be ignored” http://activemq.apache.org/wildcards.html For what it’s worth - I got around this issue with DLQs by changing the nam

Re: Separate kahadb for queues and dead letter queues?

2016-04-29 Thread Christian Schneider
I just tested by sending messages into a queue test. Unfortunately the filter ">.DLQ" seems to include "test". So it seems everything after ">" is ignored. Is there any way to express that I want all queues that end in DLQ? Christian On 29.04.2016 17:17, Christian Schneider wrote: I took a st

Re: Testing Master Slave on Shared File System

2016-04-29 Thread Quinn Stevenson
Chris - Most of the implementations I’ve seen have used NFS, but it’s needs to be NFSv4 to get the right locking behavior. I’ve run this type of setup in a VM environment as well, but we didn’t use a VM for the NFS server the client had an enterprise NFS solution so we used that. Also, I know

Re: Separate kahadb for queues and dead letter queues?

2016-04-29 Thread Christian Schneider
I took a stab at creating a config with a separate kahadb for the DLQs: Does that make sense? I am unsure

RE: Testing Master Slave on Shared File System

2016-04-29 Thread Christopher Fogarty
Matt, I will switch to GFS and let you know. I really appreciate. Chris Fogarty VP, System Engineering Versiant Corporation 3700 Arco Corporate Drive Suite 350 Charlotte, NC 28273 Office: (704) 831-3905 | Mobile: (704) 763- chris.foga...@versiant.com -Original Message- From: Matt P

Re: Artemis JMX not showing queues

2016-04-29 Thread Justin Bertram
What exactly are you doing to create "different JMS queues from client programatically"? Justin - Original Message - From: "abhijith" To: users@activemq.apache.org Sent: Friday, April 29, 2016 8:40:46 AM Subject: Artemis JMX not showing queues Hi, I am trying out artemis and creating

RE: Testing Master Slave on Shared File System

2016-04-29 Thread Christopher Fogarty
Quinn Thanks. I could use NFS, but the master slave shared docs (very Spartan) indicated SAN. If ext4 is not the proper filesystem. What should I use? I could use NFS, but I was concerned over performance. Also, NFS in a VM environment would require a third server? Node 1 Node 2 NFS server (I

Artemis JMX not showing queues

2016-04-29 Thread abhijith
Hi, I am trying out artemis and creating different JMS queues from client programatically. Code itself works, but when I log into JMX, I see that few queues are listed under "Core/Queue" with jms.queue.# prefix, but they don't appear under "JMS/Queue". I don't understand how this could happen.

Re: Testing Master Slave on Shared File System

2016-04-29 Thread Quinn Stevenson
I’ve done quite a bit of master/slave setups - they’ve never been an issue as long as I had a filesystem that supported locking. I’ve used NFSv4 and GFSv2 for these setups. If I’m reading this correctly, you’ve setup a volume on a SAN and mounted it on both systems as an ext4 filesystem. If t

Re: Testing Master Slave on Shared File System

2016-04-29 Thread Matt Pavlovich
Are both volumes mounted with ext4? Does EXT4 have support for distributed lock sharing? Sounds like one server would mount rw and the other would be mounted ro and there aren't any shared locks. I'm not as current on the latest EXT4 features, but do know a cluster-aware filesystem such as GF

Re: Consumer not receiving anything

2016-04-29 Thread Tim Bain
Where is the "there" that it hangs? Where specifically is the thread hung? Also, why are you setting your message listener after you start the connection? Tim On Apr 29, 2016 7:51 AM, "opacut" wrote: Hello, I am writing a sort of performance test on AMQ 5.13. The producer is working perfectly

Consumer not receiving anything

2016-04-29 Thread opacut
Hello, I am writing a sort of performance test on AMQ 5.13. The producer is working perfectly, but the consumer connects and does not receive any messages, just hangs in there. I have trouble finding the point where it breaks. The program spawns a number of worker threads that connect to the broke

Re: Failover very slow with kahadb while restart of master is fast

2016-04-29 Thread Tim Bain
Sure, YOU know it was a clean shutdown, but how does your slave broker know which type it was? Methods to signal that fact could be added, but none currently exists in the code. On Apr 29, 2016 7:14 AM, "Christian Schneider" wrote: > I do not assume that the restart will be clean when the master

Composite Destinations and originalDestination

2016-04-29 Thread Quinn Stevenson
I’m trying to use a composite destination to setup a simple wiretap of messages going to a set of queues - the configuration I’m using looks like this This works great except for one problem - I can’t tell where the original message came from so I can’t build my audit trail.

Re: Failover very slow with kahadb while restart of master is fast

2016-04-29 Thread Christian Schneider
I do not assume that the restart will be clean when the master dies. In our case the brokers are shutdown orderly during a regular maintenance where some of the customer software is updated on the system. So in the case were we experienced the slow start it was a clean shutdown. Christian On

Re: ActiveMQ Broker Camel Component and wildcards

2016-04-29 Thread Tim Bain
Sorry, I've never used them nor looked for examples, but maybe someone else has. On Apr 29, 2016 7:02 AM, "Quinn Stevenson" wrote: > Thank You Tim - > > Is there an example of an interceptor somewhere in the code base I can use > as a reference to get started on this? > > BTW - I did it working w

Re: Separate kahadb for queues and dead letter queues?

2016-04-29 Thread Tim Bain
Using mKahaDB with a separate KahaDB instance for the DLQ is the best idea I know of for dealing with the problem you describe. A JIRA enhancement request exists for compacting KahaDB journals ( https://issues.apache.org/jira/plugins/servlet/mobile#issue/AMQ-3978). You should vote for it, and if

Re: Failover very slow with kahadb while restart of master is fast

2016-04-29 Thread Tim Bain
Also, your question makes the assumption that files your broker stumbles upon when it becomes master were written by a previous master that shutdown cleanly, which is a rather optimistic assumption to make. On Apr 29, 2016 7:01 AM, "Tim Bain" wrote: > By reading the code ( > http://www.grepcode.c

Re: ActiveMQ Broker Camel Component and wildcards

2016-04-29 Thread Quinn Stevenson
Thank You Tim - Is there an example of an interceptor somewhere in the code base I can use as a reference to get started on this? BTW - I did it working with the Camel Broker Component by switching from to . I’m not sure why that made a difference, but it did. > On Apr 28, 2016, at 10:53 PM

Re: Failover very slow with kahadb while restart of master is fast

2016-04-29 Thread Tim Bain
By reading the code ( http://www.grepcode.com/file/repo1.maven.org/maven2/org.apache.activemq/activemq-kahadb-store/5.11.1/org/apache/activemq/store/kahadb/disk/journal/Journal.java#Journal.recoveryCheck%28org.apache.activemq.store.kahadb.disk.journal.DataFile%29), I found that we're reading the da

RE: Testing Master Slave on Shared File System

2016-04-29 Thread Christopher Fogarty
Has anyone done master slave with shared filesystem? The documentation is sparse. Tim, you have been a great help. I have started to see this INFO | Database /data/kahadb/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.FileNotFoundException: /data/kahadb/l

Separate kahadb for queues and dead letter queues?

2016-04-29 Thread Christian Schneider
We have the issue that our journals at a customer are very large. We analyzed the messages in the system and found that most of the time the normal queues stay at a very low number of messages near to 0. The only queues that hold messages for longer periods of time are the dead letter queues.

Re: Failover very slow with kahadb while restart of master is fast

2016-04-29 Thread Christian Schneider
We have found the main cause for this issue. Current Master and new Master seem to do the exact same things on startup. They read all the journals. It seems that the OS is caching the files in memory in some cases. The master seems to have all the jorunal files in the cache. So when it restarts