Re: Messages left on the queue when using a transacted session.

2009-09-14 Thread Robert Nicholson
On each occasion when I notice messages are no longer being delivered. If I restart my app after restarting the broker the messages begin to deliver. On Sep 15, 2009, at 12:56 AM, Rob Davies wrote: On 15 Sep 2009, at 06:42, Robert Nicholson wrote: So, I have a pretty standard JMS message

Re: Messages left on the queue when using a transacted session.

2009-09-14 Thread Robert Nicholson
I have a multi threaded consumer setup... all message consumption is asynchronous the consumers both the dispatch consumer and the "child" consumers are setup like this public synchronized void startJMS() throws JMSException { try { connection = createQueueConnection(qu

Re: Messages left on the queue when using a transacted session.

2009-09-14 Thread Rob Davies
On 15 Sep 2009, at 06:42, Robert Nicholson wrote: So, I have a pretty standard JMS message listener but when using ActiveMQ it often just doesn't receive any messages even when there are messages on the queue. The Session is a transacted one with AUTO_ACKNOWLEDGE but for some reason the me

Messages left on the queue when using a transacted session.

2009-09-14 Thread Robert Nicholson
So, I have a pretty standard JMS message listener but when using ActiveMQ it often just doesn't receive any messages even when there are messages on the queue. The Session is a transacted one with AUTO_ACKNOWLEDGE but for some reason the messages are never taken off the queue. I believe A

Re: Duplicate Messages on Listener Restart

2009-09-14 Thread Rob Davies
On 15 Sep 2009, at 04:15, Bruce Snyder wrote: On Mon, Sep 14, 2009 at 12:25 PM, dbczak wrote: Hi, I have a message client that produces a message and sends to multiple listeners by using the URL: fanout:(static:(tcp://host1:61616,tcp://host2:61616,tcp://host3:61616 ...))?fanOutQueues=true&m

Re: Use of jndi.properties with activemq?

2009-09-14 Thread Rob Davies
On 15 Sep 2009, at 01:29, Robert Nicholson wrote: Ok I spotted one mistake and that was that I had receive queue and not request queue populated in my Point to Point setup. Now I see messages in my queue. Eureka !!! On Sep 14, 2009, at 8:36 AM, Rob Davies wrote: On 14 Sep 2009, at 14:27,

Re: i have a problem about Topic [re-question : detail info]

2009-09-14 Thread Rob Davies
On 15 Sep 2009, at 01:36, blackbear wrote: almostly I have 2 users to connect to my topic. but my topic raise 'Java.Lang.OutOfMemoryError' when it has 900 consumers. how can i achive my goal? (2 users) anyone who know about this problem, please give me a hint. --my e

Re: i have a problem about Topic [re-question : detail info]

2009-09-14 Thread Bruce Snyder
On Mon, Sep 14, 2009 at 6:36 PM, blackbear wrote: > > > almostly I have 2 users to connect to my topic. > but my topic raise 'Java.Lang.OutOfMemoryError' when it has 900 > consumers. > > how can i achive my goal? (2 users) > anyone who know about this problem, please give me a hint. > > --

Re: Duplicate Messages on Listener Restart

2009-09-14 Thread Bruce Snyder
On Mon, Sep 14, 2009 at 12:25 PM, dbczak wrote: > > Hi, > > I have a message client that produces a message and sends to multiple > listeners by using the URL: > fanout:(static:(tcp://host1:61616,tcp://host2:61616,tcp://host3:61616 > ...))?fanOutQueues=true&minAckCount=1 > > I'm getting duplicate

i have a problem about Topic [re-question : detail info]

2009-09-14 Thread blackbear
almostly I have 2 users to connect to my topic. but my topic raise 'Java.Lang.OutOfMemoryError' when it has 900 consumers. how can i achive my goal? (2 users) anyone who know about this problem, please give me a hint. --my environment --- cpu : pentium

Re: Use of jndi.properties with activemq?

2009-09-14 Thread Robert Nicholson
Ok I spotted one mistake and that was that I had receive queue and not request queue populated in my Point to Point setup. Now I see messages in my queue. Eureka !!! On Sep 14, 2009, at 8:36 AM, Rob Davies wrote: On 14 Sep 2009, at 14:27, Robert Nicholson wrote: When using org.apache.activ

Failover question (hangs appserver)

2009-09-14 Thread Leonard Gestrin
Hello, We are using activemq 5.2.0. Our webapp runs in tomcat 5. We don't use spring JMS support, however we do configure JMS listener class as a singleton in spring factory. Recently, we configured failover capabilities as jms.broker.url=failover:(tcp://sfltlg-halsg3b1:61616,tcp://sfltlg-hls

Re: Use of jndi.properties with activemq?

2009-09-14 Thread Robert Nicholson
Why would I get this ClassCastException then? I do have a jndi.properties in a JNDI.jar that's in my classpath and here's it's contents # use the following property to configure the default connector #java.naming.provider.url = tcp://localhost:61616 java.naming.provider.url = vm://localhost #

Re: Duplicate messages sent to Queue after broker restarts

2009-09-14 Thread dbczak
Unfortunately, my testing with the latest snapshot has the same problem. I've created my own case for this to see if I get more responses (link below). I appreciate your help. http://www.nabble.com/Duplicate-Messages-on-Listener-Restart-td25440673.html -- View this message in context: http://

Re: Duplicate messages sent to Queue after broker restarts

2009-09-14 Thread ryarger
This was an issue with the 5.1 version. It has been resolved in the 5.3 snapshots. I don't believe it was fixed in in 5.2. But we never used 5.2, so I am not 100% sure. We worked around the issue by deleting the data directory before bringing the broker back up. Hope that helps. -Rich -- View

Admin Console: Sort on Queue name

2009-09-14 Thread nmittal
Hi I use the bundled activemq console heavily to monitor queues. I refresh the page frequently to see the latest state. I was wondering if there was a way to ensure that after page refresh the queues are sorted by name? currently everytime I refresh, queue names show up in some random order that I

RE: Chat JavaScript example

2009-09-14 Thread Knight, Doug
OK, I think I've got it. Now, I've got a barebones sender and receiver pair, based on the example in the link below. I see the topic get created when I refresh the receiver, and it has a single consumer, as expected. When I run the sender to send to that topic, I am having issues trying to issue

Re: Duplicate messages sent to Queue after broker restarts

2009-09-14 Thread dbczak
have you resolved this issue? I'm having the same issue. Any help would be appreciated. -- View this message in context: http://www.nabble.com/Duplicate-messages-sent-to-Queue-after-broker-restarts-tp15598179p25440677.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Duplicate Messages on Listener Restart

2009-09-14 Thread dbczak
Hi, I have a message client that produces a message and sends to multiple listeners by using the URL: fanout:(static:(tcp://host1:61616,tcp://host2:61616,tcp://host3:61616 ...))?fanOutQueues=true&minAckCount=1 I'm getting duplicate messages whenever any of the listener is shut down and restarte

Re: Unrecognized xbean namespace mapping: http://activemq.apache.org/camel/schema/spring

2009-09-14 Thread Bob Pollack
This is possibly due to a change in the version of Camel. Take a look at http://camel.apache.org/exception-beandefinitionstoreexception.html this page in the current Camel documentation, which explains some of the changes that are necessary when changing from Camel 1.x to 2.0. Hope this helps.

Chat JavaScript example

2009-09-14 Thread Knight, Doug
All, >From the JavaScript-based chat example, and various all-similar sources for >how to configure it (i.e. see >http://docs.codehaus.org/display/JETTY/Integrating+with+ActiveMQ for example), >I don't understand how the JavaScript client knows what server to connect to. >There is mentioned som

Re: Chat JavaScript example

2009-09-14 Thread Dejan Bosanac
Hi Doug, ajax client connects to the servlet (called AjaxServlet) that runs inside jetty (or any other web container) that server like a proxy to the broker. Therefore, you should all jms related stuff inside your web application. Take a look at webapps/demo/WEB-INF/web.xml for an example of how t

Stomp connection drops

2009-09-14 Thread Danilo Tuler
Hi, We're experiencing a lot of stomp connection drops. There are a dozen connections. We're using ActiveMQ 5.2. The clients are java applications over internet connection. There is nothing on AMQ log. How do I tune the logging to see these droppings? I've read the links below, but I'm not sure

ActiveMQ performance too slow

2009-09-14 Thread Francesco Mascioli
Hi all, I wrote a simple program using c++ sample, implementing a Producer and a Consumer class. Producer is asynchronous and put data in the queue at high rate (i.e. 1000 msg/sec). Consumer is synchronous and read data at a predefined rate (i.e. 100 msg/sec). Everything seems to work

Re: Use of jndi.properties with activemq?

2009-09-14 Thread Rob Davies
On 14 Sep 2009, at 14:27, Robert Nicholson wrote: When using org.apache.activemq.jndi.ActiveMQInitialContextFactory will it ever look for a local jndi.properties file? I'm trying to get JMeter working with the JMSSampler and I keep getting a classcastexception when it does the lookup 200

Re: error in subscribing topic

2009-09-14 Thread czy11421
Rob Davies wrote: On 14 Sep 2009, at 00:00, czy11421 wrote: Rob Davies wrote: On 13 Sep 2009, at 20:03, czy11421 wrote: Rob Davies wrote: On 13 Sep 2009, at 17:55, czy11421 wrote: Rob, Thanks for your reply. Here is another question. If I use MessageListener, how could I start to rec

Use of jndi.properties with activemq?

2009-09-14 Thread Robert Nicholson
When using org.apache.activemq.jndi.ActiveMQInitialContextFactory will it ever look for a local jndi.properties file? I'm trying to get JMeter working with the JMSSampler and I keep getting a classcastexception when it does the lookup 2009/09/13 21:35:43 ERROR - jmeter.threads.JMeterThread:

Re: ActiveMQ stops consuming messages after No space left on device

2009-09-14 Thread Bruce Snyder
On Fri, Aug 28, 2009 at 8:45 PM, Denis Bazhenov wrote: > Some additional information would clarify situation, I think. After that > failure we restarted ActiveMQ and all goes ok (we clean up space on device). > But before restart I take thread dump of broken ActiveMQ process. I realize > that ther

Re: i have a problem about Topic

2009-09-14 Thread Rob Davies
On 14 Sep 2009, at 09:12, blackbear wrote: almostly I have 2 users to connect to my topic. but my topic raise 'Java.Lang.OutOfMemoryError' when it has 900 consumers. how can i achive my goal? (2 users) anyone who know about this problem, please give me a hint. have a good day~ --

i have a problem about Topic

2009-09-14 Thread blackbear
almostly I have 2 users to connect to my topic. but my topic raise 'Java.Lang.OutOfMemoryError' when it has 900 consumers. how can i achive my goal? (2 users) anyone who know about this problem, please give me a hint. have a good day~ -- View this message in context: http://www.nabble