Re: Unable to have multiple consumers on the same broker

2009-07-13 Thread kkarank
Many thanks JLuna I must confess I am a newbie to STOMP Php library and find it really poor in terms of documentation. Feels like someone developer on some planet has done us all a favor by dumping some code on the google code list and given us a free hand on how to scratch our heads and try to g

Re: Unable to have multiple consumers on the same broker

2009-07-13 Thread Jose Luna
Are you sure you're not setting the same client-id header for both clients? If you are, I don't believe the second client will be allowed to connect -- you'll receive an exception from the broker. On that note, do you know if you're connecting to the broker at all with the second client? If

Re: Unable to have multiple consumers on the same broker

2009-07-13 Thread kkarank
Ok just played around with setting the prefetch size to 50 in the URL when using the connect command from STOMP - still the same problem I am struggling to understand though as to how the prefetch size could have anything to do with this. Reading through the docs - this setting takes care of how

Re: Unable to have multiple consumers on the same broker

2009-07-13 Thread kkarank
No I did not set the prefetch size - just used the defaults that come with the PHP Stomp client. - I will play around and come back Thanks :) bsnyder wrote: > > On Mon, Jul 13, 2009 at 9:53 PM, kkarank wrote: >> >> Thanks Bruce, >> >> I am connecting to the broker from PHP Stomp library and th

Re: Unable to have multiple consumers on the same broker

2009-07-13 Thread Bruce Snyder
On Mon, Jul 13, 2009 at 9:53 PM, kkarank wrote: > > Thanks Bruce, > > I am connecting to the broker from PHP Stomp library and there is nothing in > the examples you mention that talks about how to setup multiple consumers > listening to the same broker port but on multiple queues? Ah, you didn't

Re: How can I save to message data that already exists in the queue?

2009-07-13 Thread Jose Luna
I'm not sure I understand correctly, but I think you need Camel. Check out the aggregator pattern: http://camel.apache.org/aggregator.html For more info about using Camel with Activemq: http://activemq.apache.org/how-should-i-package-applications-using-camel-and-activemq.html - Original

Re: Unable to have multiple consumers on the same broker

2009-07-13 Thread kkarank
Thanks Bruce, I am connecting to the broker from PHP Stomp library and there is nothing in the examples you mention that talks about how to setup multiple consumers listening to the same broker port but on multiple queues? kk bsnyder wrote: > > On Mon, Jul 13, 2009 at 2:39 PM, kkarank wrote:

How can I save to message data that already exists in the queue?

2009-07-13 Thread demonair
How can I save to message data that already exists in the queue? I explain: I insert a data to the tail, now I want to upgrade, for example: The first time insert "Hello" and suppose that is stored in message 1 I now add "World" in the message. so that the message is the following "Hello

Re: Messages order corrupt.

2009-07-13 Thread Bruce Snyder
On Mon, Jul 13, 2009 at 7:15 AM, fulldec wrote: > > I've seen this defect: > http://issues.apache.org/activemq/browse/AMQ-729 > > Anyway reproducing test steps from the issue doesn't show an problems. That > script works correctly. That issue is over three years old and no longer applies to the cu

Re: Messages order corrupt.

2009-07-13 Thread Bruce Snyder
On Mon, Jul 13, 2009 at 6:56 AM, fulldec wrote: > > Hi everyone. > We have an application using ActiveMQ for messaging. The order of messages > is significant for us. > There is a problem when we have a lot of messages hanging in a queue: > 1. Generate a lot of messages (around 2). > 2. Start s

Re: AMQ Client/Server Compatibility

2009-07-13 Thread Rob Davies
Ah - was referring to the Java client 4.x/5.x On 13 Jul 2009, at 20:48, Michael Dehmlow wrote: Are you talking AMQ client 2.4.x or 2.5.x or the client contained AMQ Package 4.x or 5.x? rajdavies wrote: No - you need to update to version 4 (preferably 5) On 13 Jul 2009, at 19:02, Michael

Re: AMQ Client/Server Compatibility

2009-07-13 Thread Dejan Bosanac
Clients of 4.x and 5.x versions On Monday, July 13, 2009, Michael Dehmlow wrote: > > Are you talking AMQ client 2.4.x or 2.5.x or the client contained AMQ Package > 4.x or 5.x? > > > rajdavies wrote: >> >> No - you need to update to version 4 (preferably 5) >> >> On 13 Jul 2009, at 19:02, Michael

Re: AMQ Client/Server Compatibility

2009-07-13 Thread Michael Dehmlow
Are you talking AMQ client 2.4.x or 2.5.x or the client contained AMQ Package 4.x or 5.x? rajdavies wrote: > > No - you need to update to version 4 (preferably 5) > > On 13 Jul 2009, at 19:02, Michael Dehmlow wrote: > >> >> Does AMQ 2.2.6 Client work with AMQ 5.2 Server? >> -- >> View this

Re: Unable to have multiple consumers on the same broker

2009-07-13 Thread Bruce Snyder
On Mon, Jul 13, 2009 at 2:39 PM, kkarank wrote: > > Hello All > > I am trying to setup two clients each listening to a different queue on the > same broker but having no joy as ActiveMQ console shows that only one > consumer is active at a time? > > This is despite both the clients listening for me

Unable to have multiple consumers on the same broker

2009-07-13 Thread kkarank
Hello All I am trying to setup two clients each listening to a different queue on the same broker but having no joy as ActiveMQ console shows that only one consumer is active at a time? This is despite both the clients listening for messages on different queues? Am I missing any setting? Cheers

Re: AMQ Client/Server Compatibility

2009-07-13 Thread Rob Davies
No - you need to update to version 4 (preferably 5) On 13 Jul 2009, at 19:02, Michael Dehmlow wrote: Does AMQ 2.2.6 Client work with AMQ 5.2 Server? -- View this message in context: http://www.nabble.com/AMQ-Client-Server-Compatibility-tp24466475p24466475.html Sent from the ActiveMQ - User ma

AMQ Client/Server Compatibility

2009-07-13 Thread Michael Dehmlow
Does AMQ 2.2.6 Client work with AMQ 5.2 Server? -- View this message in context: http://www.nabble.com/AMQ-Client-Server-Compatibility-tp24466475p24466475.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Getting Exception in thread "Persistence Adaptor Task" when hot deploy a war

2009-07-13 Thread Gary Tully
there is a BrokerService attribute "useShutdownHook" that defaults to true. I think setting this to false in your broker.xml will ensure that broker code will not be executed at JVM shutdown, when the relevant class loaders are no longer available, which could lead to the behavior you describe. 2

Re: Getting Exception in thread "Persistence Adaptor Task" when hot deploy a war

2009-07-13 Thread chu_man_fu
I get the same exceptions when I shut JBoss down. The exception list goes on for ages and there is no way of halting it. Did you find a solution? jinglei wrote: > > Here is the stack trace, > > 08:40:46,972 ERROR [STDERR] Exception in thread "Persistence Adaptor Task" > 08:40:46,972 ERROR [S

Re: Queue does not drain completely.

2009-07-13 Thread Aleksandar Ivanisevic
RakeshRay writes: > Thanks for the suggestions, I tried, but does not help. > It could be the problem with the Stomp protocol!. > Anyone using Stomp to Connect to use Active MQ? I'm using STOMP with perl Net::Stomp and it is working reasonably good for simple use. 5.3.SNAPSHOT is buggy once you

Re: Messages order corrupt.

2009-07-13 Thread fulldec
I've seen this defect: http://issues.apache.org/activemq/browse/AMQ-729 Anyway reproducing test steps from the issue doesn't show an problems. That script works correctly. -- View this message in context: http://www.nabble.com/Messages-order-corrupt.-tp24459534p24459824.html Sent from the Activ

Messages order corrupt.

2009-07-13 Thread fulldec
Hi everyone. We have an application using ActiveMQ for messaging. The order of messages is significant for us. There is a problem when we have a lot of messages hanging in a queue: 1. Generate a lot of messages (around 2). 2. Start some consumer. Leech them. 3. Stop the consumer. Mostly at thi

panacya-mdb-test-1.0.jar not working on JBoss 5.1 and ActiveMQ 5.2

2009-07-13 Thread doktora
Hi, Is it possible to update the example panacya-mdb-test-1.0.jar so that it works in JBoss 5.1 with ActiveMQ 5.2. Currently deploying the jar on the above configuration gives the following error: 12:45:56,334 ERROR [AbstractKernelController] Error installing to Create: name=jboss.j2ee:jndiNam