Quantcast

JMS Pint-to-Point sampler question

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

JMS Pint-to-Point sampler question

Ivan Ivankovic-2
Hi,

Could you please tell me if there is a way to specify Integer property in
JMS properties section. If I put 0 (zero) it is treated as string.

I need something that corresponds to following in java:

jmsMessage.setIntProperty(0);

Regards,
Ivanko
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: JMS Pint-to-Point sampler question

Ivan Ivankovic-2
Hi guys,

Is there anybody to know if this is (see below) possible to do with JMS
Point-toPoint sampler or not?

Anything I put as a property values is treated as string, and I need it as
Integer, because this property is used as a messageSelector for my MDB.

Regards.

On Tue, Aug 25, 2009 at 5:17 PM, Ivan Ivankovic <[hidden email]> wrote:

> Hi,
>
> Could you please tell me if there is a way to specify Integer property in
> JMS properties section. If I put 0 (zero) it is treated as string.
>
> I need something that corresponds to following in java:
>
> jmsMessage.setIntProperty(0);
>
> Regards,
> Ivanko
>



--
Pozdrav,
Ivanko
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: JMS Pint-to-Point sampler question

Noel O'Brien
In reply to this post by Ivan Ivankovic-2
Hi Ivan,

AFAIK, It's not possible with the stock JMS P2P Sampler as it seems to assume everything is a String. Maybe Sebb can can confirm this?

Regards,
Noel

----- "Ivan Ivankovic" <[hidden email]> wrote:

> Hi guys,
>
> Is there anybody to know if this is (see below) possible to do with JMS
> Point-toPoint sampler or not?
>
> Anything I put as a property values is treated as string, and I need it as
> Integer, because this property is used as a messageSelector for my MDB.
>
> Regards.
>
> On Tue, Aug 25, 2009 at 5:17 PM, Ivan Ivankovic <[hidden email]> wrote:
>
> > Hi,
> >
> > Could you please tell me if there is a way to specify Integer property in
> > JMS properties section. If I put 0 (zero) it is treated as string.
> >
> > I need something that corresponds to following in java:
> >
> > jmsMessage.setIntProperty(0);
> >
> > Regards,
> > Ivanko
> >
>
>
>
> --
> Pozdrav,
> Ivanko
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: JMS Pint-to-Point sampler question

sebb-2-2
The JMSSampler only supports setStringProperty() currently.

On 26/08/2009, Noel O'Brien <[hidden email]> wrote:

> Hi Ivan,
>
>  AFAIK, It's not possible with the stock JMS P2P Sampler as it seems to assume everything is a String. Maybe Sebb can can confirm this?
>
>  Regards,
>
> Noel
>
>
>  ----- "Ivan Ivankovic" <[hidden email]> wrote:
>  > Hi guys,
>  >
>  > Is there anybody to know if this is (see below) possible to do with JMS
>  > Point-toPoint sampler or not?
>  >
>  > Anything I put as a property values is treated as string, and I need it as
>  > Integer, because this property is used as a messageSelector for my MDB.
>  >
>  > Regards.
>  >
>  > On Tue, Aug 25, 2009 at 5:17 PM, Ivan Ivankovic <[hidden email]> wrote:
>  >
>  > > Hi,
>  > >
>  > > Could you please tell me if there is a way to specify Integer property in
>  > > JMS properties section. If I put 0 (zero) it is treated as string.
>  > >
>  > > I need something that corresponds to following in java:
>  > >
>  > > jmsMessage.setIntProperty(0);
>  > >
>  > > Regards,
>  > > Ivanko
>  > >
>  >
>  >
>  >
>  > --
>  > Pozdrav,
>  > Ivanko
>  >

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: JMS Pint-to-Point sampler question

Ivan Ivankovic-2
If that is the case, I could use some hints Class names etc... to add this
feature myself because I need it, so if I don't find  a way around I could
try to add this feature. Something like a third column to choose Type of
property value.

Or simply to support some simple conversion syntax like int("0") in value
field itself or something like that. This would be faster to implement but
it would be ugly

Regards.

On Wed, Aug 26, 2009 at 12:02 PM, sebb <[hidden email]> wrote:

> The JMSSampler only supports setStringProperty() currently.
>
> On 26/08/2009, Noel O'Brien <[hidden email]> wrote:
> > Hi Ivan,
> >
> >  AFAIK, It's not possible with the stock JMS P2P Sampler as it seems to
> assume everything is a String. Maybe Sebb can can confirm this?
> >
> >  Regards,
> >
> > Noel
> >
> >
> >  ----- "Ivan Ivankovic" <[hidden email]> wrote:
> >  > Hi guys,
> >  >
> >  > Is there anybody to know if this is (see below) possible to do with
> JMS
> >  > Point-toPoint sampler or not?
> >  >
> >  > Anything I put as a property values is treated as string, and I need
> it as
> >  > Integer, because this property is used as a messageSelector for my
> MDB.
> >  >
> >  > Regards.
> >  >
> >  > On Tue, Aug 25, 2009 at 5:17 PM, Ivan Ivankovic <[hidden email]>
> wrote:
> >  >
> >  > > Hi,
> >  > >
> >  > > Could you please tell me if there is a way to specify Integer
> property in
> >  > > JMS properties section. If I put 0 (zero) it is treated as string.
> >  > >
> >  > > I need something that corresponds to following in java:
> >  > >
> >  > > jmsMessage.setIntProperty(0);
> >  > >
> >  > > Regards,
> >  > > Ivanko
> >  > >
> >  >
> >  >
> >  >
> >  > --
> >  > Pozdrav,
> >  > Ivanko
> >  >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
Pozdrav,
Ivanko
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: JMS Pint-to-Point sampler question

sebb-2-2
On 26/08/2009, Ivan Ivankovic <[hidden email]> wrote:
> If that is the case, I could use some hints Class names etc... to add this

Select the sampler, press Ctrl+W and the GUI and test element class
names will be displayed in the console window.

>  feature myself because I need it, so if I don't find  a way around I could
>  try to add this feature. Something like a third column to choose Type of
>  property value.

Yes, that's probably best.

>  Or simply to support some simple conversion syntax like int("0") in value
>  field itself or something like that. This would be faster to implement but
>  it would be ugly

Or add an indicator to the name field, e.g.

(int)fieldname   1234

But I agree this is uglier than adding a 3rd column.

>  Regards.
>
>
>  On Wed, Aug 26, 2009 at 12:02 PM, sebb <[hidden email]> wrote:
>
>  > The JMSSampler only supports setStringProperty() currently.
>  >
>  > On 26/08/2009, Noel O'Brien <[hidden email]> wrote:
>  > > Hi Ivan,
>  > >
>  > >  AFAIK, It's not possible with the stock JMS P2P Sampler as it seems to
>  > assume everything is a String. Maybe Sebb can can confirm this?
>  > >
>  > >  Regards,
>  > >
>  > > Noel
>  > >
>  > >
>  > >  ----- "Ivan Ivankovic" <[hidden email]> wrote:
>  > >  > Hi guys,
>  > >  >
>  > >  > Is there anybody to know if this is (see below) possible to do with
>  > JMS
>  > >  > Point-toPoint sampler or not?
>  > >  >
>  > >  > Anything I put as a property values is treated as string, and I need
>  > it as
>  > >  > Integer, because this property is used as a messageSelector for my
>  > MDB.
>  > >  >
>  > >  > Regards.
>  > >  >
>  > >  > On Tue, Aug 25, 2009 at 5:17 PM, Ivan Ivankovic <[hidden email]>
>  > wrote:
>  > >  >
>  > >  > > Hi,
>  > >  > >
>  > >  > > Could you please tell me if there is a way to specify Integer
>  > property in
>  > >  > > JMS properties section. If I put 0 (zero) it is treated as string.
>  > >  > >
>  > >  > > I need something that corresponds to following in java:
>  > >  > >
>  > >  > > jmsMessage.setIntProperty(0);
>  > >  > >
>  > >  > > Regards,
>  > >  > > Ivanko
>  > >  > >
>  > >  >
>  > >  >
>  > >  >
>  > >  > --
>  > >  > Pozdrav,
>  > >  > Ivanko
>  > >  >
>  >
>
> > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: [hidden email]
>  > For additional commands, e-mail: [hidden email]
>  >
>  >
>
>
>
>  --
>  Pozdrav,
>  Ivanko
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: JMS Pint-to-Point sampler question

Ivan Ivankovic-2
Thank you.

I will see to do something about this for the weekend.

Reagrds,
Ivanko

On Wed, Aug 26, 2009 at 12:17 PM, sebb <[hidden email]> wrote:

> On 26/08/2009, Ivan Ivankovic <[hidden email]> wrote:
> > If that is the case, I could use some hints Class names etc... to add
> this
>
> Select the sampler, press Ctrl+W and the GUI and test element class
> names will be displayed in the console window.
>
> >  feature myself because I need it, so if I don't find  a way around I
> could
> >  try to add this feature. Something like a third column to choose Type of
> >  property value.
>
> Yes, that's probably best.
>
> >  Or simply to support some simple conversion syntax like int("0") in
> value
> >  field itself or something like that. This would be faster to implement
> but
> >  it would be ugly
>
> Or add an indicator to the name field, e.g.
>
> (int)fieldname   1234
>
> But I agree this is uglier than adding a 3rd column.
>
> >  Regards.
> >
> >
> >  On Wed, Aug 26, 2009 at 12:02 PM, sebb <[hidden email]> wrote:
> >
> >  > The JMSSampler only supports setStringProperty() currently.
> >  >
> >  > On 26/08/2009, Noel O'Brien <[hidden email]> wrote:
> >  > > Hi Ivan,
> >  > >
> >  > >  AFAIK, It's not possible with the stock JMS P2P Sampler as it seems
> to
> >  > assume everything is a String. Maybe Sebb can can confirm this?
> >  > >
> >  > >  Regards,
> >  > >
> >  > > Noel
> >  > >
> >  > >
> >  > >  ----- "Ivan Ivankovic" <[hidden email]> wrote:
> >  > >  > Hi guys,
> >  > >  >
> >  > >  > Is there anybody to know if this is (see below) possible to do
> with
> >  > JMS
> >  > >  > Point-toPoint sampler or not?
> >  > >  >
> >  > >  > Anything I put as a property values is treated as string, and I
> need
> >  > it as
> >  > >  > Integer, because this property is used as a messageSelector for
> my
> >  > MDB.
> >  > >  >
> >  > >  > Regards.
> >  > >  >
> >  > >  > On Tue, Aug 25, 2009 at 5:17 PM, Ivan Ivankovic <
> [hidden email]>
> >  > wrote:
> >  > >  >
> >  > >  > > Hi,
> >  > >  > >
> >  > >  > > Could you please tell me if there is a way to specify Integer
> >  > property in
> >  > >  > > JMS properties section. If I put 0 (zero) it is treated as
> string.
> >  > >  > >
> >  > >  > > I need something that corresponds to following in java:
> >  > >  > >
> >  > >  > > jmsMessage.setIntProperty(0);
> >  > >  > >
> >  > >  > > Regards,
> >  > >  > > Ivanko
> >  > >  > >
> >  > >  >
> >  > >  >
> >  > >  >
> >  > >  > --
> >  > >  > Pozdrav,
> >  > >  > Ivanko
> >  > >  >
> >  >
> >
> > > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: [hidden email]
> >  > For additional commands, e-mail: [hidden email]
> >  >
> >  >
> >
> >
> >
> >  --
> >  Pozdrav,
> >  Ivanko
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: JMS Pint-to-Point sampler question

Noel O'Brien
Hi Ivan,

I've modified it already (more of a hack really :) ) to add a third column for "type" as I needed to to send MapMessage. It's also recently been modified to send ByteMessage. I can provide it to you but like I said, it's a hack and may not work exactly as you need it.

Sebb, how could I go about adding these modification (and improving them :) ) into the code base?

Regards,
Noel

----- "Ivan Ivankovic" <[hidden email]> wrote:

> Thank you.
>
> I will see to do something about this for the weekend.
>
> Reagrds,
> Ivanko
>
> On Wed, Aug 26, 2009 at 12:17 PM, sebb <[hidden email]> wrote:
>
> > On 26/08/2009, Ivan Ivankovic <[hidden email]> wrote:
> > > If that is the case, I could use some hints Class names etc... to add
> > this
> >
> > Select the sampler, press Ctrl+W and the GUI and test element class
> > names will be displayed in the console window.
> >
> > > feature myself because I need it, so if I don't find a way around I
> > could
> > > try to add this feature. Something like a third column to choose Type of
> > > property value.
> >
> > Yes, that's probably best.
> >
> > > Or simply to support some simple conversion syntax like int("0") in
> > value
> > > field itself or something like that. This would be faster to implement
> > but
> > > it would be ugly
> >
> > Or add an indicator to the name field, e.g.
> >
> > (int)fieldname 1234
> >
> > But I agree this is uglier than adding a 3rd column.
> >
> > > Regards.
> > >
> > >
> > > On Wed, Aug 26, 2009 at 12:02 PM, sebb <[hidden email]> wrote:
> > >
> > > > The JMSSampler only supports setStringProperty() currently.
> > > >
> > > > On 26/08/2009, Noel O'Brien <[hidden email]> wrote:
> > > > > Hi Ivan,
> > > > >
> > > > > AFAIK, It's not possible with the stock JMS P2P Sampler as it seems
> > to
> > > > assume everything is a String. Maybe Sebb can can confirm this?
> > > > >
> > > > > Regards,
> > > > >
> > > > > Noel
> > > > >
> > > > >
> > > > > ----- "Ivan Ivankovic" <[hidden email]> wrote:
> > > > > > Hi guys,
> > > > > >
> > > > > > Is there anybody to know if this is (see below) possible to do
> > with
> > > > JMS
> > > > > > Point-toPoint sampler or not?
> > > > > >
> > > > > > Anything I put as a property values is treated as string, and I
> > need
> > > > it as
> > > > > > Integer, because this property is used as a messageSelector for
> > my
> > > > MDB.
> > > > > >
> > > > > > Regards.
> > > > > >
> > > > > > On Tue, Aug 25, 2009 at 5:17 PM, Ivan Ivankovic <
> > [hidden email]>
> > > > wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > Could you please tell me if there is a way to specify Integer
> > > > property in
> > > > > > > JMS properties section. If I put 0 (zero) it is treated as
> > string.
> > > > > > >
> > > > > > > I need something that corresponds to following in java:
> > > > > > >
> > > > > > > jmsMessage.setIntProperty(0);
> > > > > > >
> > > > > > > Regards,
> > > > > > > Ivanko
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Pozdrav,
> > > > > > Ivanko
> > > > > >
> > > >
> > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Pozdrav,
> > > Ivanko
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: JMS Pint-to-Point sampler question

sebb-2-2
On 26/08/2009, Noel O'Brien <[hidden email]> wrote:
> Hi Ivan,
>
>  I've modified it already (more of a hack really :) ) to add a third column for "type" as I needed to to send MapMessage. It's also recently been modified to send ByteMessage. I can provide it to you but like I said, it's a hack and may not work exactly as you need it.
>
>  Sebb, how could I go about adding these modification (and improving them :) ) into the code base?

Create a Bugzilla enhancement issue, and then attach the code to the issue.

Changes to existing files should be added as "unified diff" patches;
new files can be attached as is. Please ensure new files have the
appropriate AL header.

>
>  Regards,
>  Noel
>
>  ----- "Ivan Ivankovic" <[hidden email]> wrote:
>  > Thank you.
>  >
>  > I will see to do something about this for the weekend.
>  >
>  > Reagrds,
>  > Ivanko
>  >
>  > On Wed, Aug 26, 2009 at 12:17 PM, sebb <[hidden email]> wrote:
>  >
>  > > On 26/08/2009, Ivan Ivankovic <[hidden email]> wrote:
>  > > > If that is the case, I could use some hints Class names etc... to add
>  > > this
>  > >
>  > > Select the sampler, press Ctrl+W and the GUI and test element class
>  > > names will be displayed in the console window.
>  > >
>  > > > feature myself because I need it, so if I don't find a way around I
>  > > could
>  > > > try to add this feature. Something like a third column to choose Type of
>  > > > property value.
>  > >
>  > > Yes, that's probably best.
>  > >
>  > > > Or simply to support some simple conversion syntax like int("0") in
>  > > value
>  > > > field itself or something like that. This would be faster to implement
>  > > but
>  > > > it would be ugly
>  > >
>  > > Or add an indicator to the name field, e.g.
>  > >
>  > > (int)fieldname 1234
>  > >
>  > > But I agree this is uglier than adding a 3rd column.
>  > >
>  > > > Regards.
>  > > >
>  > > >
>  > > > On Wed, Aug 26, 2009 at 12:02 PM, sebb <[hidden email]> wrote:
>  > > >
>  > > > > The JMSSampler only supports setStringProperty() currently.
>  > > > >
>  > > > > On 26/08/2009, Noel O'Brien <[hidden email]> wrote:
>  > > > > > Hi Ivan,
>  > > > > >
>  > > > > > AFAIK, It's not possible with the stock JMS P2P Sampler as it seems
>  > > to
>  > > > > assume everything is a String. Maybe Sebb can can confirm this?
>  > > > > >
>  > > > > > Regards,
>  > > > > >
>  > > > > > Noel
>  > > > > >
>  > > > > >
>  > > > > > ----- "Ivan Ivankovic" <[hidden email]> wrote:
>  > > > > > > Hi guys,
>  > > > > > >
>  > > > > > > Is there anybody to know if this is (see below) possible to do
>  > > with
>  > > > > JMS
>  > > > > > > Point-toPoint sampler or not?
>  > > > > > >
>  > > > > > > Anything I put as a property values is treated as string, and I
>  > > need
>  > > > > it as
>  > > > > > > Integer, because this property is used as a messageSelector for
>  > > my
>  > > > > MDB.
>  > > > > > >
>  > > > > > > Regards.
>  > > > > > >
>  > > > > > > On Tue, Aug 25, 2009 at 5:17 PM, Ivan Ivankovic <
>  > > [hidden email]>
>  > > > > wrote:
>  > > > > > >
>  > > > > > > > Hi,
>  > > > > > > >
>  > > > > > > > Could you please tell me if there is a way to specify Integer
>  > > > > property in
>  > > > > > > > JMS properties section. If I put 0 (zero) it is treated as
>  > > string.
>  > > > > > > >
>  > > > > > > > I need something that corresponds to following in java:
>  > > > > > > >
>  > > > > > > > jmsMessage.setIntProperty(0);
>  > > > > > > >
>  > > > > > > > Regards,
>  > > > > > > > Ivanko
>  > > > > > > >
>  > > > > > >
>  > > > > > >
>  > > > > > >
>  > > > > > > --
>  > > > > > > Pozdrav,
>  > > > > > > Ivanko
>  > > > > > >
>  > > > >
>  > > >
>  > > > > ---------------------------------------------------------------------
>  > > > > To unsubscribe, e-mail: [hidden email]
>  > > > > For additional commands, e-mail: [hidden email]
>  > > > >
>  > > > >
>  > > >
>  > > >
>  > > >
>  > > > --
>  > > > Pozdrav,
>  > > > Ivanko
>  > > >
>  > >
>  > > ---------------------------------------------------------------------
>  > > To unsubscribe, e-mail: [hidden email]
>  > > For additional commands, e-mail: [hidden email]
>  > >
>  > >
>  >

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...