Re: How to find if the topic is empty ?

2009-08-12 Thread sinus
sinus wrote: > > Hello to everybody, > I have a java application that uses activemq 5.2. A batch file starts the > broker, create subscribers and register the listeners to the topic. The > same bath is responsible for stoping the process. During the stop > operation I must perform a check on th

Broker deadlock in queue message delivery

2009-08-12 Thread Chetan Sarva
Hi, We appear to be facing a deadlock during queue message delivery. See the following stack dump: "ActiveMQ Transport: tcp:///10.10.10.30:40919" daemon prio=10 tid=0x2aab002a3800 nid=0x281e in Object.wait() [0x57b77000] java.lang.Thread.State: TIMED_WAITING (on object monitor)

Re: vs2005-activemq-example blank console

2009-08-12 Thread Timothy Bish
On Wed, 2009-08-12 at 14:53 -0700, asawilliams wrote: > I found the location where my program is getting stuck. SocketFactory is > throwing an exception but the DECAF_CATCH_EXCEPTION_CONVERT function is > where the thread is getting stuck. Without some line numbers for where the exception is thr

Re: vs2005-activemq-example blank console

2009-08-12 Thread asawilliams
I found the location where my program is getting stuck. SocketFactory is throwing an exception but the DECAF_CATCH_EXCEPTION_CONVERT function is where the thread is getting stuck. Timothy Bish wrote: > > On Tue, 2009-08-11 at 14:11 -0700, asawilliams wrote: >> I am able to compile/build the v

RE: right way to send and receive messages in a BrokerPlugin

2009-08-12 Thread Mats.Henrikson
Hi JLuna, > Since Rob has noted that this as the correct way, would you consider > adding your plugin to the wiki when it is complete? I think others would > find it useful/interesting, including myself. Well, I can't add specifically what I have since unfortunately I've gone down the path of w

Re: vs2005-activemq-example blank console

2009-08-12 Thread Timothy Bish
On Wed, 2009-08-12 at 13:22 -0700, asawilliams wrote: > So, I tried to set some break points that I thought would surely trigger > (beginning of main and constructors), but none of the break points were > triggered. It seems like the program is not entering the main function. > Maybe this is me b

Re: vs2005-activemq-example blank console

2009-08-12 Thread asawilliams
So, I tried to set some break points that I thought would surely trigger (beginning of main and constructors), but none of the break points were triggered. It seems like the program is not entering the main function. Maybe this is me being a VS2008 novice, or maybe there is something wrong with

DLQ Not Working In ActiveMQ After Upgrade From 4 To 5

2009-08-12 Thread greenbean
I recently switched from ActiveMQ 4 to 5. I have been having issues getting messages to go to a DLQ after rollbacks. http://www.nabble.com/file/p24942054/out2.txt out2.txt Attached is a log showing a message consumer doing a rollback several times. The message is rolled back and redelivered a

Re: Programmatically purge() a queue

2009-08-12 Thread centis
Bruce, Thanks for your reply! I've seen several examples like that the problem I am having is the "broker". I'm not using an embedded broker, the problem I'm having is getting the "broker" object. I'm poking around in the samples but I don't see an example that doesn't use an embedded broker.

2 questions about performance and ActiveMq with java 1.4

2009-08-12 Thread avizmil
Hi, 1. Can some one please refer me to information about performance? we have a trading system and i would like to use ActiveMq for getting qutoes from StockEchange, talking about 5000 messages a sec . Can it handle it? what can it handle? 2. we are using WSAD 5.1 which supports java 1.4. I'm a

RE: conduit subscriptions

2009-08-12 Thread Mats.Henrikson
> What about using virtual topics instead of topics? This way, all your > consumers consume from queues. Hmm, interesting. I hadn't looked into VirtualTopics before, it would depend on how they work under the hood I guess. I'll have to experiment with them a bit. Thanks for the suggestion! Mats

Re: Build activemq-cpp lib in 32bit on 64bit system

2009-08-12 Thread Timothy Bish
On Tue, 2009-08-11 at 10:26 +0200, peter@gmx.net wrote: > Hi, > > I need to build a 32bit version of activemqcpp lib on a 64bit SLES 10 system > because we use some third-party libs which unfortunately are only available > in 32bit. > > I compiled apr,apr-util and apr-iconv with this compi

Hanging, unacknowledged messages

2009-08-12 Thread Norbert Pfistner
It seems that 3 Messages got stuck in a queue. Having two subscribed consumers for the same queue we can see messages beeing processed by consumer A just normaly, while the suspicous consumer B beeing stuck. The attributes of the suspicious subscription on the queue as displayed in the jmxcons

How to find if the topic is empty ?

2009-08-12 Thread sinus
Hello to everybody, I have a java application that uses activemq 5.2. A batch file starts the broker, create subscribers and register the listeners to the topic. The same bath is responsible for stoping the process. During the stop operation I must perform a check on the state of the topic. If the

Re: vs2005-activemq-example blank console

2009-08-12 Thread Timothy Bish
On Tue, 2009-08-11 at 14:11 -0700, asawilliams wrote: > I am able to compile/build the vs2005-activemq-example in vs2008, but when I > try to run it, a console shows up and its blank. I should at least see the > "Starting the example:", but I dont even get that. I have not changed the > original

Re: ActiveMQ 5.3 pending message issue

2009-08-12 Thread Chen-hsiu Huang
In ActiveMQ standard package, there are two example programs, we can use the following two scripts to reproduce the issue: == #!/bin/sh for id in $(seq 1 50) do ant consumer -Durl=tcp://SERVER1:61616 -Dsubje

XAResourceRecovery for ActiveMQ on JBoss

2009-08-12 Thread Scott McNab
Hello all. I am trying to get XAResource recovery to work with JBoss JTA and ActiveMQ, with no success so far. The core of the problem seems to be this: I cannot get the ActiveMQ JCA resource adaptor to bind an XAConnectionFactory instance to JNDI - no matter how I configure the resource adaptor,

Re: Messages Stuck in the queue(with the broker)

2009-08-12 Thread guptaviv
FYI... When we switched over to 5.2... we did not face this problem. Looks like a bug in 5.1 version. Thanks all of you for your suggestions! Norbert Pfistner-2 wrote: > > We also experience stuck messages in activemq 5.1, slow consumers an > jdbc persistance. > > Searching for the reason

Re: Implement request response with JMS over Stomp

2009-08-12 Thread Alexander L.
Hi Jose, Thanks for your attention again, Jose Luna-2 wrote: > > You have to be sure to include the reply-to destination in the request, > and then you know which destination to check for the response. Since we > don't have access to temporary destinations, we simply make sure that > destinati

Advisory Topics, ConsumerEvent Classes and Wildcards usage

2009-08-12 Thread Eric-AWL
Hi I use ConsumerEventSource class to be able to know the number of consumer on a queue or topic. I would want to use wildcards now. I want to have producers on "A.B" queues, and some consumers on "A.B" and others on "*.B". Sometimes, there will only be "A.B" consumers, sometimes only "*.B" con

Re: createSession() makes all the threads to wait ...

2009-08-12 Thread sinus
Hello Norbert, Thank you very much for your fast reply. Like you have said, I turned off the ProducerFlowControl flag for my topic and also increased the systemUsage parameters. The adding of the below code, made my broker to work stable and with no freeze. :) I really appreciate your help. Thank