Re: Questions for ActiveMQResourceAdapter.getXAResources method in ActiveMQ RA module

2011-01-06 Thread Ivan
I opened a JIRA https://issues.apache.org/jira/browse/AMQ-3121 and attach a patch, it is for connection creation optimization. For the timing issue, I will try to create a case later. Thanks. 2011/1/6 Gary Tully > that sounds like a reasonable optimization that can avoid the need to > create a c

message-id format

2011-01-06 Thread James Green
I am trying to debug a little of https://issues.apache.org/jira/browse/AMQ-2923 which I created. To help, could someone very quickly document how the message-id gets created? I.e. X-Y-Z what's the X, the Y and the Z? I'm trying to write a script to reproduce the problem and so far I've failed so

ActiveMQ client without Spring

2011-01-06 Thread David Pollak
Howdy, I'm trying to add ActiveMQ to the client side of my application. I have a firm ban on anything Spring-related in my applications. So, I'm trying to figure out what I need to support JMS and to support connecting to my ActiveMQ broker and nothing else. When I use activemq-core, I get Spri

Re: KahaDB error: "Could not locate data file"

2011-01-06 Thread Norman Maurer
In 5.4.2 its kahadb.. Bye, Norman 2011/1/6 dcheckoway : > > Yeah, we're using whatever is the default persistence provider in 5.4.2.  I > opened a fresh ticket for it: > > https://issues.apache.org/jira/browse/AMQ-3120 > > Thanks, > Dan > > On Thu, Jan 6, 2011 at 10:42 AM, Gary Tully [via ActiveM

Re: KahaDB error: "Could not locate data file"

2011-01-06 Thread dcheckoway
Yeah, we're using whatever is the default persistence provider in 5.4.2. I opened a fresh ticket for it: https://issues.apache.org/jira/browse/AMQ-3120 Thanks, Dan On Thu, Jan 6, 2011 at 10:42 AM, Gary Tully [via ActiveMQ] < ml-node+3177622-1458695149-140...@n4.nabble.com > wrote: > AMQ-3051

Re: Tomcat does not start for slave activeMQ Broker in jdbc master slave cluster environment

2011-01-06 Thread Albrecht Militzer
Hello Dejan, > but you cannot have a slave broker in an active Tomcat instance. thanks. That is what was troubling me. An identical config with standalone brokers worked. Is there any specific reason why embedded brokers and master/slave are not orthogonal? Did I miss this somewhere in the do

Re: KahaDB error: "Could not locate data file"

2011-01-06 Thread Gary Tully
AMQ-3051 is using the older AMQPersistenceAdapter and NFS, so it seems to be different from your use case? On 6 January 2011 15:14, dcheckoway wrote: > > Gary, > > Thanks for the reply and advice.  I'll definitely try disabling > concurrentStoreAndDispatchQueues to see if that helps, and I'll set

Re: KahaDB error: "Could not locate data file"

2011-01-06 Thread dcheckoway
Gary, Thanks for the reply and advice. I'll definitely try disabling concurrentStoreAndDispatchQueues to see if that helps, and I'll set up an IO exception handler. Unfortunately the issue can't reliably be reproduced. We have a cluster of servers all running their own local embedded queue, an

Re: KahaDB error: "Could not locate data file"

2011-01-06 Thread Gary Tully
One thought, there may be an issue with the default setting of true for concurrentStoreAndDispatchQueues that is causing the index to be out of sync with the store. It is worth trying to disable that, use: How often is this occurring, to really get to the bottom of this a test case will be

Re: How to get a file-descriptor for single-thread async?

2011-01-06 Thread Timothy Bish
On Thu, 2011-01-06 at 14:41 +0100, Martin Nicolay wrote: > On Thu, 6 Jan 2011, Timothy Bish wrote: > > On Thu, 2011-01-06 at 11:10 +0100, Martin Nicolay wrote: > > > I want to use activemq-cpp-library asynchronously in a single-threaded > > > application. > [...] > > The OpenWire-cpp client is a d

Re: How to get a file-descriptor for single-thread async?

2011-01-06 Thread Martin Nicolay
On Thu, 6 Jan 2011, Timothy Bish wrote: > On Thu, 2011-01-06 at 11:10 +0100, Martin Nicolay wrote: > > I want to use activemq-cpp-library asynchronously in a single-threaded > > application. [...] > The OpenWire-cpp client is a different beast from ActiveMQ-CPP, so the > documentation there doesn'

KahaDB error: "Could not locate data file"

2011-01-06 Thread dcheckoway
I'm using an embedded broker (version 5.4.2) with persistence enabled. We're pumping hundreds of millions of messages per day through this thing. Every once in a while, all of a sudden the KahaDB directory starts growing uncontrollably, and these errors start spewing out in the log over and over

Re: How to get a file-descriptor for single-thread async?

2011-01-06 Thread Timothy Bish
On Thu, 2011-01-06 at 11:10 +0100, Martin Nicolay wrote: > Hi. > > I want to use activemq-cpp-library asynchronously in a single-threaded > application. > > http://activemq.apache.org/openwire-cpp-client.html says: > The socket to the ActiveMQ broker is to be exposed to the > applic

Re: Questions for ActiveMQResourceAdapter.getXAResources method in ActiveMQ RA module

2011-01-06 Thread Gary Tully
that sounds like a reasonable optimization that can avoid the need to create a connection if the RA is deployed in local transaction only mode (ie: uses the regular non xa connection factory) One thought, it may be a good idea to produce a simple junit test case that demonstrates the timing issue w

How to get a file-descriptor for single-thread async?

2011-01-06 Thread Martin Nicolay
Hi. I want to use activemq-cpp-library asynchronously in a single-threaded application. http://activemq.apache.org/openwire-cpp-client.html says: The socket to the ActiveMQ broker is to be exposed to the application by the transport layer, and data received on it is to

Re: Too many open files

2011-01-06 Thread Don Santillan
You mean by default, ActiveMQ is already using KahaDB? Using the activemq.xml that I posted earlier, the logs show this: 2011-01-06 15:47:48,873 INFO BrokerService:462 - Using Persistence Adapter: AMQPersistenceAdapter(/tmp/dev/devbroker) 2011-01-06 15:47:48,882 INFO AMQPersistenceAdapter:177