Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 88332 invoked from network); 21 May 2007 16:44:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 May 2007 16:44:46 -0000 Received: (qmail 58121 invoked by uid 500); 21 May 2007 16:44:46 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 58104 invoked by uid 500); 21 May 2007 16:44:46 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 58050 invoked by uid 99); 21 May 2007 16:44:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 09:44:45 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [199.105.164.5] (HELO smtpmail2.sensis.com) (199.105.164.5) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 09:44:37 -0700 Received: from dimstar3.ats.sensis.com ([172.21.1.34]) by smtpmail2.sensis.com with esmtp (Exim 4.50) id 1HqAzY-0004ch-DD for users@activemq.apache.org; Mon, 21 May 2007 12:44:16 -0400 Received: from corpatsmail1.ats.sensis.com ([172.21.1.88] helo=corpatsmail1.corp.sensis.com) by dimstar3.ats.sensis.com with esmtp (Exim 4.50) id 1HqAzE-00059B-Ix for users@activemq.apache.org; Mon, 21 May 2007 12:43:56 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Implementation of multithreading model on CMS ActiveMQ Date: Mon, 21 May 2007 12:43:46 -0400 Message-ID: <7743F17344E95A4CA78A3E53A7AF496B0103A515@corpatsmail1.corp.sensis.com> In-Reply-To: <10722340.post@talk.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Implementation of multithreading model on CMS ActiveMQ Thread-Index: AcebxfVeBO8KZnX3QZCVzUbl+jKPlAAARHzg From: "Mittler, Nathan" To: X-Sensis-MailScanner-Information: Scanned at Sensis Corporation by MailScanner X-Sensis-MailScanner: Found to be clean X-Sensis-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-4.269, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.13, BAYES_00 -2.60) X-Sensis-MailScanner-From: nathan.mittler@sensis.com X-Virus-Checked: Checked by ClamAV on apache.org Sorry ... The url should be "tcp://localhost:61613?wireFormat=3Dstomp" See http://activemq.apache.org/cms/configuring.html=20 > -----Original Message----- > From: Pravin Kundal [mailto:pravin_kundal@persistent.co.in]=20 > Sent: Monday, May 21, 2007 12:34 PM > To: users@activemq.apache.org > Subject: RE: Implementation of multithreading model on CMS ActiveMQ >=20 >=20 > I am trying to test it out using stomp. > But it is giving me exceptions > On Consumer Client: ActiveMQConnectionFactory - unknown=20 > Transport Factory. >=20 > I tried with following brokerURI's >=20 > std::string brokerURI =3D "stomp://localhost:61613" > "?wireFormat=3Dstomp" > "&transport.useAsyncSend=3Dtrue"; >=20 > std::string brokerURI =3D "stomp://localhost:61613" >=20 > std::string brokerURI =3D "stomp://localhost:61616" >=20 > can you please help us out? >=20 > Thanks. >=20 >=20 >=20 > Mittler, Nathan wrote: > >=20 > > =20 > >>=20 > >> In the case I will need to implement the concurrency=20 > control over the=20 > >> session, so that only one thread can use the session, as=20 > sessions are=20 > >> implemented for serial use? Rght? > >=20 > > Yes, you should add your own concurrency control for the session. > >=20 > >>=20 > >> I tried the first case in which i implemented the multithreading,=20 > >> each thread running its own session and each session having one=20 > >> producer. But the results were not even close to our requriment=20 > >> (result in msges/sec). > >>=20 > >=20 > > Were you using openwire or stomp as the protocol? We have=20 > seen cases=20 > > where small messages with openwire cause extra delay due to=20 > the naggle=20 > > algorithm and that message footprints are smaller than their stomp=20 > > counterpart. If you're using openwire, I suggest you=20 > switch over to=20 > > stomp and see if you have different results. If that does=20 > the trick,=20 > > our next release will allow a user-specified TCP-NODELAY=20 > socket option=20 > > that should fix the problem for openwire (for small messages). > >=20 > >> Do you think the other case can give us the better results=20 > (i.e. "The=20 > >> ActiveMQ-CPP implementation, however, will allow you to share a=20 > >> session across threads.") > >>=20 > >=20 > > Without understanding your particular usage of the client, I would=20 > > guess that a different usage wouldn't help much. Just to=20 > make sure,=20 > > however, you could slightly modify our example application=20 > >=20 > https://svn.apache.org/repos/asf/activemq/activemq-cpp/trunk/src/examp > > le s/main.cpp and see if you can get it to meet your requirements. > >=20 > >=20 > > Regards, > > Nate > >=20 > >=20 >=20 > -- > View this message in context:=20 > http://www.nabble.com/Implementation-of-multithreading-model-o > n-CMS-ActiveMQ-tf3790047s2354.html#a10722340 > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >=20 >=20