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

2011-03-08 Thread mzo
Hello Timothy, hello Óscar, I would like to thank both of you for giving me some new insights to AMQ. I think I got a good clue on how to go on. @Oscar: Yeah, your sample is around to the thing I want to do. Thanks very much. I can now better understand the mutexes used with AMQ. And what kind of

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

2011-03-07 Thread Oscar Pernas
Hi mzo, To do what you want to do I did a conditional mutex over a concurrent access queue. If you want to take a look of my code: https://code.google.com/p/activeinterface/source/browse/#svn%2FActiveInterface%2Fsrc%2Fcore%2Fwrapper

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

2011-03-07 Thread Timothy Bish
On Mon, 2011-03-07 at 09:28 +0100, m...@domdv.de wrote: > Hello Timothy, > > > Creating a Consumer object and registering a MessageListener will result > > in messages being received in a separate thread, so there's not really > > any need to create a new thread for your consumer. > > That explai

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

2011-03-07 Thread mzo
Hello Timothy, > Creating a Consumer object and registering a MessageListener will result > in messages being received in a separate thread, so there's not really > any need to create a new thread for your consumer. That explains the count of threads upon debugging. I already thought that may be

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