Re: Duplicated messages

2011-03-04 Thread Ron Piterman
To make sure messages are delivered once only, use a queue. Greetings, RP On 04.03.11 22:49, kafka399 wrote: What can be reason for duplicated messages? I use jmsTemplate for messages production, ActiveMQ as a broker and one Topic for the moment which saves messages in database. I have up to 10

Duplicated messages

2011-03-04 Thread kafka399
What can be reason for duplicated messages? I use jmsTemplate for messages production, ActiveMQ as a broker and one Topic for the moment which saves messages in database. I have up to 100 msg/s time to time. Thank you in advance. -- View this message in context: http://activemq.2283324.n4.nabble.

Async error occurred: javax.jms.JMSException: Unmatched acknowledege: MessageAck ... Expected message count (1) differs from count in dispatched-list (4208) Expected message count (1) differs from c

2011-03-04 Thread nnprasad
Hi, Can Some help me to find out the reason / fix this ERROR message. I could not figure out the in what scenario this is happening. http://activemq.2283324.n4.nabble.com/file/n3335978/activemq.xml activemq.xml When the Queue size growing larger than 50,000, we are seeing this ERROR in logs, and

Re: AMQCPP: unexpected exception

2011-03-04 Thread Henrique Magarotto
Hi Tim and Oscar, thanks for your attention, So, in my case i got frozen in a commit attempt. But really, testing without transaction and MessageListener i got frozen in consumer destructor too. Maybe it's the same reason for both cases. I tested with several configurations to try avoid freezes fo

Re: Best practices with JMS

2011-03-04 Thread Bruce Snyder
On Fri, Mar 4, 2011 at 10:19 AM, Christian Schneider wrote: > Hi Filip, > > basically connections can be kept open as long as you like. They are also > thread safe. For connections there is the problem that they can become > invalid if the server goes away for too long. > Sessions can also be kept

Re: Best practices with JMS

2011-03-04 Thread Christian Schneider
Hi Filip, basically connections can be kept open as long as you like. They are also thread safe. For connections there is the problem that they can become invalid if the server goes away for too long. Sessions can also be kept open but they are not thread safe. So make sure you do not share a

Re: TCP connection to broker from behind NAT

2011-03-04 Thread Gary Tully
can you get request reply to work with a local broker? There are two ports involved, the client port (usually dynamically assigned, and the server or broker port (66167). You may have to open up the client port on your firewall to allow packets from the broker to get through to the client. a clie

ActiveMQ connection with failover and prefetch

2011-03-04 Thread Marco.Crivellaro
Hi, I am trying to connect to a broker using failover and queue prefetch policy set to 1, using it I don't receive any error and simply cannot connect resulting in the application to hang. I've tried both following formats: failover:(tcp://localhost:61616?wireFormat.maxInactivityDuration=0&jms.pr

Re: AMQ-CMS - questions about threads/producerthreads in AMQ

2011-03-04 Thread Timothy Bish
On Fri, 2011-03-04 at 12:46 +0100, m...@domdv.de wrote: > Thanks for the fast reply. > > I already tested a bit with the example. I also think i know how esb and > amq work basically. > > The problem is this: > > 1.) How can I create a Producer-Thread which sleeps until my programm > wants to se

Re: AMQ-CMS - questions about threads/producerthreads in AMQ

2011-03-04 Thread mzo
Thanks for the fast reply. I already tested a bit with the example. I also think i know how esb and amq work basically. The problem is this: 1.) How can I create a Producer-Thread which sleeps until my programm wants to send a message? And how do I call the function which sends the message? I tr

Re: AMQ-CMS - questions about threads/producerthreads in AMQ

2011-03-04 Thread Oscar Pernas
I think that if you go to section CMS-API-Overview http://activemq.apache.org/cms/cms-api-overview.html At the end, you could see something that is more addaptable for that you want. I think ;-) regards 2011/3/4 > Hello there, > > greetings from

AMQ-CMS - questions about threads/producerthreads in AMQ

2011-03-04 Thread mzo
Hello there, greetings from Germany. ;) I'm currently trying to work myself into AMQ. I already tried several approches to the producer thread question and have searched the web and the forum. I'm also a beginner to the multithreading theme. The situation: I would like my application to create a