Re: CMS and Multithreading

2009-05-01 Thread nmittal
Thats awesome. saves a lot of time for me as a developer trying to do my own synchronization. thanks Tim. Timothy Bish wrote: > > On Fri, 2009-05-01 at 06:44 -0700, nmittal wrote: >> below is an excerpt from the book "ActiveMQ in action"... >> The JMS spec specifically defines concurrency for

Re: CMS: Session, Destination

2009-05-01 Thread Timothy Bish
On Fri, 2009-05-01 at 07:08 -0700, nmittal wrote: > Hi All, > If I am not mistaken, then destinations are created from Sessions. > (session->createTopic() or session->createQueue()) > > Then how come, destinations are required to be thread safe while Sessions > are not? > > thanks > Nishant Main

Re: CMS and Multithreading

2009-05-01 Thread Timothy Bish
On Fri, 2009-05-01 at 06:44 -0700, nmittal wrote: > below is an excerpt from the book "ActiveMQ in action"... > The JMS spec specifically defines concurrency for various objects in the JMS > API and requires that only a few objects support concurrent access. The > ConnectionFactory, Connection and

ActiveMQ 5.2.0 + REST + java.lang.OutOfMemoryError

2009-05-01 Thread Bruce Loth
First off, I am a newbie when it comes to JMS & ActiveMQ. I have been looking into a messaging solution to serve as middleware for a message producer that will insert XML messages into a queue via HTTP POST. The producer is an existing system written in C++ that cannot be modified (so Java and t

CMS: Session, Destination

2009-05-01 Thread nmittal
Hi All, If I am not mistaken, then destinations are created from Sessions. (session->createTopic() or session->createQueue()) Then how come, destinations are required to be thread safe while Sessions are not? thanks Nishant -- View this message in context: http://www.nabble.com/CMS%3A-Session%

CMS and Multithreading

2009-05-01 Thread nmittal
below is an excerpt from the book "ActiveMQ in action"... The JMS spec specifically defines concurrency for various objects in the JMS API and requires that only a few objects support concurrent access. The ConnectionFactory, Connection and Destination objects are required to support concurrent ac

Re: SimpleProducer example inherits from Runnable.. curious why?

2009-05-01 Thread nmittal
Understood. Thanks. Timothy Bish wrote: > > On Thu, 2009-04-30 at 13:11 -0700, nmittal wrote: >> Hi All, in the examples that come with the CMS distribution, I see the >> following... >> class SimpleProducer: public Runnable >> >> is there a reason why a producer has to inherit from Runnable.

Re: Some questions, Please help

2009-05-01 Thread Andreas Gies
Hi there, please find comments inline... On May 1, 2009, at 12:10 AM, Websphere and ActiveMQ wrote: Today I have configured ActiveMQ and Websphere successfully, also I can send message by my Application. Note: I use JMS API to send/receive message. Now I have following questions. 1. After

Re: Please help:Again about ActiveMQ intigration with Websphere 6.1

2009-05-01 Thread Andreas Gies
Hi there, sorry to say, but the IBM guy is kind of wrong. You can bind AMQ administered objects in any JNDI store. This having said, the ActiveMQ JNDI implementation takes the information from a file called jndi.properties on the classpath. You cannot programmatically bind objects into the