Does using transactions on jms consumer lowers the performance?

2008-10-21 Thread pratibhaG
Click to flag this post MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: [EMAIL PROTECTED] To use transactions I have kept a property transacted="jms" on jms consumer. I found the performance is lowered after this. It affected my load tes

Stomp Client Hoarding Messages

2008-10-21 Thread logictude
Here's the nutshell: I have AMQ (v5.1.0) running great and my clients subscribe just fine. At this moment I have between two and three clients connected to AMQ (queue, FYI, not topic). Each client reads incoming messages and checks for a keyword against the DB. When a client does find a match it

persistence problems in consumer having java exception

2008-10-21 Thread Imagine_David
1. a exception occured during consuming message, but activemq did not persist this message. which mean the messages will lose if java exception occur. 2. after activemq restart, the message persisted in database will automatic re-queue. but if this message have error again, activemq will not per

Re: why queue consumer threads only get half messages ?

2008-10-21 Thread chenq
yes, there is only one broker. I just simply extract the activemq with default configuration Joe Fernandez wrote: > > Is their only one broker in your configuration? > > Joe > http://www.ttmsolutions.com - get a free ActiveMQ user guide > > > > > chenq wrote: >> >> I'm testing the activ

Re: Spring JmsTemplate receive() returns null with messages in Queue

2008-10-21 Thread kpalania
I am running onto the same issue as well with ActiveMQ 5.1 and Spring 2.5. If I don't use JmsTemplate or use it but do a blocking call, it is fine. However, I am unable to use JmsTemplate with it being non-blocking. Any thoughts? Yohan Liyanage wrote: > > Hi, > > I tried to use JmsTemplate's r

Re: activemq.xml BrokerService.setDeleteAllMessagesOnStartup()

2008-10-21 Thread Joe Fernandez
In the element, for example http://activemq.apache.org/schema/core"; brokerName="localhost" dataDirectory="${activemq.base}/data" deleteAllMessagesOnStartup="true"> ... Joe http://www.ttmsolutions.com - get a free ActiveMQ user guide Minh Tu Duong wrote: > > Hi, > > someone know how to

Re: why queue consumer threads only get half messages ?

2008-10-21 Thread Joe Fernandez
Is their only one broker in your configuration? Joe http://www.ttmsolutions.com - get a free ActiveMQ user guide chenq wrote: > > I'm testing the activemq, and when I make my cosumers receive messages > from a queue in multi-threds , it only get half messages sent from > producers. would s

Re: why queue consumer threads only get half messages ?

2008-10-21 Thread Joe Fernandez
Is there only one broker in your configuration? Joe http://www.ttmsolutions.com - get a free ActiveMQ user guide chenq wrote: > > I'm testing the activemq, and when I make my cosumers receive messages > from a queue in multi-threds , it only get half messages sent from > producers. would som

Re: why queue consumer threads only get half messages ?

2008-10-21 Thread chenq
no,there is only my consumers for that queue. James.Strachan wrote: > > 2008/10/21 chenq <[EMAIL PROTECTED]>: >> >> I start consumers threads first, and then start producers, and producers >> is >> keeping sending messages during consumers receives, so the queue is not >> empty. >> At last, whe

Where the Message object (javascript) of amq.js is defined ?

2008-10-21 Thread cmoulliard
Hi, I would like to know where the javascript object Message used by AJAX/ActiveMq in a HTML page is defined ? I see in the portfolio example that we can use the following method "message.getAttribute('stock')" to access part of the xml message returned by the queue engine through the MessageList

Re: Query broker via STOMP

2008-10-21 Thread Yari Marchetti
Dejan Bosanac ha scritto: > Yari Marchetti wrote: > >> Hi, >> is it possible to query the browser via STOMP? Something like the >> 'activemq-admin query' command does. >> >> Regards, >> Yari >> >> >> > There's no way to do something like that via Stomp. Stomp is just > another transport

Re: why queue consumer threads only get half messages ?

2008-10-21 Thread James Strachan
2008/10/21 chenq <[EMAIL PROTECTED]>: > > I start consumers threads first, and then start producers, and producers is > keeping sending messages during consumers receives, so the queue is not > empty. > At last, when I calculate the total number of the receiving and sending > messages, they doesn't

Re: why queue consumer threads only get half messages ?

2008-10-21 Thread chenq
I start consumers threads first, and then start producers, and producers is keeping sending messages during consumers receives, so the queue is not empty. At last, when I calculate the total number of the receiving and sending messages, they doesn't match. James.Strachan wrote: > > Is this FAQ

Re: why queue consumer threads only get half messages ?

2008-10-21 Thread James Strachan
Is this FAQ entry applicable? http://activemq.apache.org/i-do-not-receive-messages-in-my-second-consumer.html 2008/10/21 chenq <[EMAIL PROTECTED]>: > > I'm testing the activemq, and when I make my cosumers receive messages from > a queue in multi-threds , it only get half messages sent from produ

why queue consumer threads only get half messages ?

2008-10-21 Thread chenq
I'm testing the activemq, and when I make my cosumers receive messages from a queue in multi-threds , it only get half messages sent from producers. would somebody can tell me why? here is my source code: public class Recv extends Thread { private static final String url = "tcp://localhost

activemq.xml BrokerService.setDeleteAllMessagesOnStartup()

2008-10-21 Thread Minh Tu Duong
Hi, someone know how to configure the activemq.xml so that the /_BrokerService.setDeleteAllMessagesOnStartup(true) _/ is called at startup. cheers. Minh Tu.

activemq.xml BrokerService.setDeleteAllMessagesOnStartup()

2008-10-21 Thread Minh Tu Duong
Hi, someone know how to configure the activemq.xml so that the /_BrokerService.setDeleteAllMessagesOnStartup(true) _/ is called at startup. cheers. Minh Tu.

Specifying wire formats in activemq-jms-ds.xml (JBoss connection factory)

2008-10-21 Thread vanyatka
Hi, I'd like to configure amq wire formats from JBoss according to http://activemq.apache.org/configuring-wire-formats.html Here is the datasource file that resides in jboss deploy directory. Is that correct to append wire configuration options into the ServerUrl tag? activemq-jms-ds.xml =

Re: AMQ and messages

2008-10-21 Thread Joe Fernandez
There is the 'deleteAllMessagesOnStartup' option, but this option is meant for testing purposes. http://activemq.apache.org/broker-uri.html Joe http://www.ttmsolutions.com - get a free ActiveMQ user guide ivan-50 wrote: > > Hi! > > I have AMQ and consumer of some queue. From third-party,

Re: Query broker via STOMP

2008-10-21 Thread Dejan Bosanac
Yari Marchetti wrote: > Hi, > is it possible to query the browser via STOMP? Something like the > 'activemq-admin query' command does. > > Regards, > Yari > > There's no way to do something like that via Stomp. Stomp is just another transport protocol and has nothing to do with browser managemen

Re: AMQ and messages

2008-10-21 Thread James Strachan
2008/10/21 ivan <[EMAIL PROTECTED]>: > Hi! > > I have AMQ and consumer of some queue. From third-party, some provider > writes JMS messages to queue. > > When consumer is off, JMS messages accumulate in AMQ. > Next, for some reason, I shutdown AMQ. > > Now I start system (AMQ and consumer), and con

Re: ActiveMq - AJAX - JMX & Camel

2008-10-21 Thread Dejan Bosanac
Hi Charles, > 1) I would like to know if it is possible to activate JMX with the > MessageListenerServlet used by AJAX ? In the web.xml configuration file, the > only two parameters that we can configurate are the following : > > > > org.apache.activemq.brokerURL >

AMQ and messages

2008-10-21 Thread ivan
Hi! I have AMQ and consumer of some queue. From third-party, some provider writes JMS messages to queue. When consumer is off, JMS messages accumulate in AMQ. Next, for some reason, I shutdown AMQ. Now I start system (AMQ and consumer), and consumer reads old messages from AMQ. I want to d

Query broker via STOMP

2008-10-21 Thread Yari Marchetti
Hi, is it possible to query the browser via STOMP? Something like the 'activemq-admin query' command does. Regards, Yari

Re: How do I decide choose embeded activemq or not-embeded activemq

2008-10-21 Thread Gary Tully
I think most of considerations are captured @ http://activemq.apache.org/should-i-deploy-the-broker-inside-my-jvm-or-appserver.html 2008/10/21 Imagine_David <[EMAIL PROTECTED]>: > > what condition i shall be consider when i try to decide using embeded > activemq broker or not-embeded activemq brok

Re: AMQ 5.1 - How to get a list of Queues

2008-10-21 Thread JuliusR
Hi, How to convert these to C#.. thank you. shaf wrote: > > Hello, > > I am trying to get a list of existing Queues with the following code: > > ActiveMQConnectionFactory connectionFactory = new > ActiveMQConnectionFactory( server ); > ActiveMQConnection amqcon = connectionFact

ActiveMQ and IBM Lotus Notes

2008-10-21 Thread cabra
Hi all, I've to connect IBM Lotus Notes platform to ActiveMQ, in order to send out data from Lotus using JMS message. In this link http://www.ibm.com/developerworks/lotus/library/domino-jms/index.html#Download there's a guide to connect Lotus to WebSphere MQ using JDNI support. I try to adapt