Re: thread deadlock issue in NMS

2008-10-28 Thread Vadim Chekan
Just curious, are all of your sessions, consumers, etc wrapped in "using" clause? Vadim. On Sun, Oct 26, 2008 at 7:03 PM, mkeenan <[EMAIL PROTECTED]> wrote: > > I'm using NMS 1.1 and I *think* there is a thread deadlock issue. I don't > have sufficient details at the moment, but I'm in the proces

NMS: Dispose usage

2008-10-28 Thread Vadim Chekan
I noticed that all over NMS code the Dispose(bool) is implemented so that it will call Close() regardless either it is called from destructor or Dispose(). As result, if it is called from destructor, an object will call its member disposeOf() when there is no guarantee that this member still exist.

Re: CLIENT_ACKNOWLEDGE mode for a session misunderstanding?

2008-10-28 Thread Vadim Chekan
Sorry, I think I got it wrong. If message remain intact when consumer disconnect then CLIENT_ACKNOWLEDGE is honored. On Tue, Oct 28, 2008 at 7:13 PM, Vadim Chekan <[EMAIL PROTECTED]> wrote: > James, > > Are you saying that CLIENT_ACKNOWLEDGE option can not be trusted? > > Vadim. > > On Tue, Oct 2

Re: CLIENT_ACKNOWLEDGE mode for a session misunderstanding?

2008-10-28 Thread Vadim Chekan
James, Are you saying that CLIENT_ACKNOWLEDGE option can not be trusted? Vadim. On Tue, Oct 28, 2008 at 10:44 AM, James Strachan <[EMAIL PROTECTED]> wrote: > 2008/10/28 Eugeny N Dzhurinsky <[EMAIL PROTECTED]>: >> Hello! >> >> I am facing some strange issue with acknowledge mode in ActiveMQ. Afte

Re: 'redeliveryPolicy doesn't work' or 'message won't remove after consumed' either of them will happen

2008-10-28 Thread Imagine_David
mysql version is 5.0 here is my config file: http://www.springframework.org/schema/beans"; xmlns:amq="http://activemq.org/config/1.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework

Re: 'redeliveryPolicy doesn't work' or 'message won't remove after consumed' either of them will happen

2008-10-28 Thread Imagine_David
thank you for replied. my program environment: activemq5.1 spring2.0 non-embeded activemq jdbcPersistenceAdapter(mysql) which deploy at 'ACTIVEMQ_HOME/conf/activemq.xml' David James.Strachan wrote: > > 2008/10/28 Imagine_David <[EMAIL PROTECTED]>: >> >> i use activemq in spring web project. >

Re: Loadbalancing MessageProducer

2008-10-28 Thread SarcasmMonster
The point was to load balance the JMS broker, that way we don't hammer the same broker with thousands of messages a second, but rather distribute the load between multiple brokers. Thanks for replying :) James.Strachan wrote: > > 2008/10/27 SarcasmMonster <[EMAIL PROTECTED]>: >> Is it possible

Re: CLIENT_ACKNOWLEDGE mode for a session misunderstanding?

2008-10-28 Thread James Strachan
2008/10/28 Eugeny N Dzhurinsky <[EMAIL PROTECTED]>: > Hello! > > I am facing some strange issue with acknowledge mode in ActiveMQ. After > reading the specs, I realized the broker will never deliver a message to the > consumer unless the consumer acknowledges the previous message. So I thought > it

CLIENT_ACKNOWLEDGE mode for a session misunderstanding?

2008-10-28 Thread Eugeny N Dzhurinsky
Hello! I am facing some strange issue with acknowledge mode in ActiveMQ. After reading the specs, I realized the broker will never deliver a message to the consumer unless the consumer acknowledges the previous message. So I thought it is enough to not send the acknowledgement message to the serve

Temp queues and failover.

2008-10-28 Thread akos
Hi, i'm using AMQ 5.1 for the communication between clients and a server with an embedded broker. They are talking with each other via temporary queues. There are two temp queues per client, one is created by the client and listening on it, the second is created by the server and waiting for requ

Re: 'redeliveryPolicy doesn't work' or 'message won't remove after consumed' either of them will happen

2008-10-28 Thread James Strachan
2008/10/28 Imagine_David <[EMAIL PROTECTED]>: > > i use activemq in spring web project. > at first, i use 'sessionTransacted=true' in > 'DefaultMessageListenerContainer'. the redeliveryPolicy was working fine! > but after done to consume message, the message in db wasn't remove. What persistence m

'redeliveryPolicy doesn't work' or 'message won't remove after consumed' either of them will happen

2008-10-28 Thread Imagine_David
i use activemq in spring web project. at first, i use 'sessionTransacted=true' in 'DefaultMessageListenerContainer'. the redeliveryPolicy was working fine! but after done to consume message, the message in db wasn't remove. then, i use 'transactionManager=jmsTransactionManager' instead of 'session

Re: Failover transport

2008-10-28 Thread selezovikj
YES, I am using the log4j JMS appender. That is mentioned in my first message for this thread. In my simple client, I am using the log4j JMS appender, which appends messages to a JMS topic and it WORKS ! It doesn't give any problems. The problem occurs once I include the commons-logging JAR. I

Re: Failover transport

2008-10-28 Thread James Strachan
2008/10/28 James Strachan <[EMAIL PROTECTED]>: > 2008/10/28 selezovikj <[EMAIL PROTECTED]>: >> >> PROBLEM FOUND !!! >> >> I wrote a simple client connecting to my activemq broker using the failover >> transport and it worked. >> Then I started adding the jar files that my bigger project uses, and a

Re: Failover transport

2008-10-28 Thread James Strachan
2008/10/28 selezovikj <[EMAIL PROTECTED]>: > > PROBLEM FOUND !!! > > I wrote a simple client connecting to my activemq broker using the failover > transport and it worked. > Then I started adding the jar files that my bigger project uses, and at one > point the same problem appeared: it was saying

Re: Failover transport

2008-10-28 Thread selezovikj
PROBLEM FOUND !!! I wrote a simple client connecting to my activemq broker using the failover transport and it worked. Then I started adding the jar files that my bigger project uses, and at one point the same problem appeared: it was saying attempting to connect for hours. After some adding an

Re: Determine if client recieved message

2008-10-28 Thread Rob Davies
There's advisories in 5.2 that will enable to to get a notification of when a message is consumed: http://activemq.apache.org/advisory-message.html cheers, Rob Rob Davies http://fusesource.com http://rajdavies.blogspot.com/ On 27 Oct 2008, at 22:11, yesnid wrote: Hello, I am trying to