jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Antunes <bruno.fs.antu...@gmail.com>
Subject Re: How to set JMSDeliveryMode=2 (=Persistent)
Date Fri, 23 Mar 2012 17:34:10 GMT
The "Use non-persistent delivery mode" feature was introduced with the
issue https://issues.apache.org/bugzilla/show_bug.cgi?id=52775

You can normally assume, that if we don't set this, it will use
javax.jms.DeliveryMode.PERSISTENT (but this depends in the connection
factory in JMS Server)

I have already expressed to JMeter mailing list some
suggestion/observations regarding the delivery mode option. This was
addressed in:
http://jmeter.512774.n5.nabble.com/JMS-Publisher-test-versus-IBM-Performance-Harness-for-Java-Message-Service-td5513604.html

Next follows again my observations in "configurable delivery mode option"
for JMeter:

The Default Delivery mode used by JMeter is the one that’s configured by
the providers Connection Factory

if we don't set we are using the one defined for the Connection Factory;
and that could not necessarily be PERSISTENT.

A  possible suggestion for JMS sampler for Delivery Mode, we have in fact
three options
* Use de default mode as configured in providers Connection Factory (JMeter
in this case should not specify the delivery mode). JMeter does this today.
* Use PERSISTENCE. JMeter should explicitly set the delivery mode option to
javax.jms.DeliveryMode.PERSISTENT.
* Use NON_PERSISTENCE. JMeter should explicitly set the delivery mode
option to javax.jms.DeliveryMode.NON_PERSISTENT (this is achieved with the
latest patch)

best regards,
-- 
Bruno Antunes
Software Engineer


On Tue, Mar 20, 2012 at 7:28 AM, Ben Stover <bxstover@yahoo.co.uk> wrote:

> When sending JMS messages from JMeter the sender has to specify if the
> target MessageBroker (e.g.ActiveMQ) should persist the
> Msg or not). For that the JMS sender must specify the JMS header field
>
> JMSDelivereyMode
>
> and set it to value 2
>
> How can I do this in JMeter?
>
> Do I simply have to add another field "JMSDeliveryMode" in the "JMS
> Properties" section of
> JMS Point-to-Point section of a TestPlan?
>
> What is the difference to the checkbox "Use non-persistent delivery mode" ?
>
> Ben
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message