You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Hendra Sasmita <he...@net-m.de> on 2007/08/24 16:19:14 UTC

[BUG??]JMeter JMS - Correlation ID does not work for JBoss Messaging

Hi Guys,
 
Currently I am trying to use JMeter to measure JBoss Messaging's
performance.
When I set the communication style into Request Response, JMeter shows
errors in the report.
 
>From the log, I see that the problem lies in these lines:
 
Files: org.apache.jmeter.protocol.jms.sampler.Receiver
 
if (reply.getJMSCorrelationID() == null) {
                        log.warn("Received message with correlation id
null. Discarding message ...");
            } else {
 
MessageAdmin.getAdmin().putReply(reply.getJMSCorrelationID(), reply);
            }
 
 
I don't know it is done in activeMQ, but in JBoss Messaging, the message
producer will not set Message's correlation ID automatically.
So if you want to set Correlation ID in JBoss Messaging, you need to use
method "setJMSCorrelationID(String correlationID)"
 
Since in JMS specification, it is not specified that that the content of
JMS Correlation ID will automatically be filled with Message Id, I think
it is better to change the correlation ID with Message ID.
 
if (reply.getJMSMessageID() == null) {
                        log.warn("Received message with message id null.
Discarding message ...");
            } else {
 
MessageAdmin.getAdmin().putReply(reply.getJMSMessageID(), reply);
            }
 
This way, we can make sure that the test will run for any JMS Provider.
 
The change has been made in my local computer, and it works for JBoss
Messaging. I would like to hear you opinion about this matter.
Should I change the source in SVN, or has anyone problem with the
change?
 
Thank you for your attention.
 
Best Regards,
Hendra

Re: [BUG??]JMeter JMS - Correlation ID does not work for JBoss Messaging

Posted by Matt Mankad <rm...@infostretch.com>.
Hi 

Has this issue been fixed. I am finding that I get the NULL Correlation ID
message on response Queue. I am doing this on a Weblogic WLS 10.3.0 server. 

Do I have to do some code change to make this work?

Matt

sebb-2-2 wrote:
> 
> On 24/08/07, Hendra Sasmita <he...@net-m.de> wrote:
>> Hi Guys,
>>
>> Currently I am trying to use JMeter to measure JBoss Messaging's
>> performance.
>> When I set the communication style into Request Response, JMeter shows
>> errors in the report.
>>
>> From the log, I see that the problem lies in these lines:
>>
>> Files: org.apache.jmeter.protocol.jms.sampler.Receiver
>>
>> if (reply.getJMSCorrelationID() == null) {
>>                        log.warn("Received message with correlation id
>> null. Discarding message ...");
>>            } else {
>>
>> MessageAdmin.getAdmin().putReply(reply.getJMSCorrelationID(), reply);
>>            }
>>
>>
>> I don't know it is done in activeMQ, but in JBoss Messaging, the message
>> producer will not set Message's correlation ID automatically.
>> So if you want to set Correlation ID in JBoss Messaging, you need to use
>> method "setJMSCorrelationID(String correlationID)"
>>
>> Since in JMS specification, it is not specified that that the content of
>> JMS Correlation ID will automatically be filled with Message Id, I think
>> it is better to change the correlation ID with Message ID.
>>
>> if (reply.getJMSMessageID() == null) {
>>                        log.warn("Received message with message id null.
>> Discarding message ...");
>>            } else {
>>
>> MessageAdmin.getAdmin().putReply(reply.getJMSMessageID(), reply);
>>            }
>>
>> This way, we can make sure that the test will run for any JMS Provider.
>>
>> The change has been made in my local computer, and it works for JBoss
>> Messaging. I would like to hear you opinion about this matter.
>> Should I change the source in SVN, or has anyone problem with the
>> change?
> 
> Please create a Bugzilla issue and attach the fix as a unified diff to
> that.
> 
>> Thank you for your attention.
>>
>> Best Regards,
>> Hendra
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-BUG---JMeter-JMS---Correlation-ID-does-not-work-for-JBoss-Messaging-tp12313381p25145569.html
Sent from the JMeter - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Re: [BUG??]JMeter JMS - Correlation ID does not work for JBoss Messaging

Posted by sebb <se...@gmail.com>.
On 24/08/07, Hendra Sasmita <he...@net-m.de> wrote:
> Hi Guys,
>
> Currently I am trying to use JMeter to measure JBoss Messaging's
> performance.
> When I set the communication style into Request Response, JMeter shows
> errors in the report.
>
> From the log, I see that the problem lies in these lines:
>
> Files: org.apache.jmeter.protocol.jms.sampler.Receiver
>
> if (reply.getJMSCorrelationID() == null) {
>                        log.warn("Received message with correlation id
> null. Discarding message ...");
>            } else {
>
> MessageAdmin.getAdmin().putReply(reply.getJMSCorrelationID(), reply);
>            }
>
>
> I don't know it is done in activeMQ, but in JBoss Messaging, the message
> producer will not set Message's correlation ID automatically.
> So if you want to set Correlation ID in JBoss Messaging, you need to use
> method "setJMSCorrelationID(String correlationID)"
>
> Since in JMS specification, it is not specified that that the content of
> JMS Correlation ID will automatically be filled with Message Id, I think
> it is better to change the correlation ID with Message ID.
>
> if (reply.getJMSMessageID() == null) {
>                        log.warn("Received message with message id null.
> Discarding message ...");
>            } else {
>
> MessageAdmin.getAdmin().putReply(reply.getJMSMessageID(), reply);
>            }
>
> This way, we can make sure that the test will run for any JMS Provider.
>
> The change has been made in my local computer, and it works for JBoss
> Messaging. I would like to hear you opinion about this matter.
> Should I change the source in SVN, or has anyone problem with the
> change?

Please create a Bugzilla issue and attach the fix as a unified diff to that.

> Thank you for your attention.
>
> Best Regards,
> Hendra
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org