1->N queue model for high volume traffic?

2009-09-22 Thread Robert Nicholson
Is there ever an advantage to doing the following when order of processing matters? There is a need to preserve order based on some characteristic of the message. Therefore multiple consumers from the queue without the use of selectors is not an appropriate solution. Instead, single con

Re: what is best practices to implement Multithread + JMS ?

2009-09-22 Thread Robert Nicholson
processed the message or not. Looking for ideas. On Sep 20, 2009, at 12:11 PM, Bruce Snyder wrote: On Fri, Sep 18, 2009 at 8:42 PM, Robert Nicholson wrote: I've been looking at DMLC lately. Acknowledge semantics are a little different when using it though? There are four

Re: what is best practices to implement Multithread + JMS ?

2009-09-18 Thread Robert Nicholson
Also, Is there a simple example of a JMS consumer that's using DMLC with ActiveMQ available?

Re: what is best practices to implement Multithread + JMS ?

2009-09-18 Thread Robert Nicholson
I've been looking at DMLC lately. Acknowledge semantics are a little different when using it though? Isn't there the notion that you acknowledge before dispatch and therefore there lies an opportunity to acknowledge something from the queue and not actually process it because of an outage.

Did the JMX service url change b/w 5.3-SNAPSHOT and 5.2.0?

2009-09-18 Thread Robert Nicholson
So, does anybody have any idea what changes have taken place that would cause the Hermes discovery to no longer work with 5.3-SNAPSHOT? I notice that in 5.2.0 the following Service URL works service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi but in 5.3-SNAPSHOT the same service url cannot conn

HermesJMS queue discovery in 5.3-SNAPSHOT

2009-09-15 Thread Robert Nicholson
Does anybody know if JMX naming differs for JMS resource b/w 5.20 and 5.3-SNAPSHOT? When I tried Hermes Discovery with 5.3-SNAPSHOT it didn't discover any destinations where 5.20 finds all destinations.

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

2009-09-15 Thread Robert Nicholson
? :) On 15 Sep 2009, at 14:41, Robert Nicholson wrote: I just tried my app with the 5.3 SNAPSHOT and when I run it I see my process is consuming messages but every single one of them is always left on the queue. This even when my JMS Session is AUTO_ACKNOWLEDGE On Sep 15, 2009, at 2:40 AM, R

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

2009-09-15 Thread Robert Nicholson
Nicholson wrote: 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

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

2009-09-15 Thread Robert Nicholson
) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595) ... 20 more Here's my Hermes config On Sep 15, 2009, at 2:40 AM, Rob Davies wrote: On 15 Sep 2009, at 07:33, Robert Nicholson wrote: On each occasion when I notice messages are no longer being delivered.

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
AM, Rob Davies wrote: 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_ACKNOWLED

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: 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

Re: Use of jndi.properties with activemq?

2009-09-14 Thread Robert Nicholson
Queue queue = (Queue) context.lookup(getSendQueue()); The ContextFactory lookup goes ok but for some reason the queue lookup returns an ReadOnlyContext and not a Queue. On Sep 14, 2009, at 8:36 AM, Rob Davies wrote: On 14 Sep 2009, at 14:27, Robert Nicholson wrote: When using org.apach

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:

Has anybody got Jmeter Point to Point working with ActiveMQ?

2009-09-13 Thread Robert Nicholson
If you've got it working can you share how you did? Specifically are you using jndi.properties and if so what's in that and what does you Point to Point setup in JMeter look like? I'm having a tough time getting this working with ClassCastExceptions 2009/09/13 21:35:43 ERROR - jmeter.threads

Trying to get Point to Point sampler in Jmeter working?

2009-09-13 Thread Robert Nicholson
I'm doing everything that the documentation says I need to yet it cannot even find the InitialContextFactory Is there a more up to date set of instructions for using ActiveMQ with Jmeter? jmeter.protocol.jms.sampler.JMSSampler: Cannot instantiate class: org.activemq.jndi.ActiveMQInitialCo

Can you control how temporary queues are named?

2009-09-11 Thread Robert Nicholson
ActiveMQ seems to use a prefixing schema that HermesJMS just doesn't understand. I'm wondering if there wasn't anything in the queue name that HermesJMS parsed a schema identifier then it might not give the following error javax.naming.NamingException: scheme ID not recognized

HermesJMS discover destinations with 5.2.0?

2009-09-11 Thread Robert Nicholson
How can you get HermesJMS discovery working (with TemporaryQueues) with activemq 5.2.0 Which provider do I have to use to get discovery working? Many links on this topic on the internet are often stale.

Which jars for a JMS publisher consumer?

2009-09-11 Thread Robert Nicholson
Which jars from activemq do I need to include in my project if I'm just wanting to publish and consume from the queues with an external application?

How can ActiveMQ help with our scenario?

2009-09-09 Thread Robert Nicholson
So at work we currently have J2SE processes that use JMSMessageListeners to consume messages from a Websphere MQ 6.x queue. At this time I'm enhancing our existing processes to support muliple JMSMessageListeners where was the original implementation used a single threaded listener only. ie