Hi Godwin,

Is it Sampling Message Processor or Forwarding Message Processor. If it is
Forwarding Message Processor, I believe you are talking about accessing the
value from the reply sequence right ?

On Mon, Jun 20, 2016 at 3:03 AM, Godwin Shrimal <[email protected]> wrote:

> Hi All,
>
> Having an issue with numeric values in transport headers when we use
> Message Store and Processor with JMS. There is a Script mediator as below
> inside a sequence to set the transport header *REDELIVERY_ATTEMPTS*. When
> we use JMS message store (connected WSO2 MB) it gives null value when it
> consume from Message Processor (Inside a Sequence which Message processor
> calls), Same one work fine with InMemory message Store and give expected
> value.
>
> <script language="js"><![CDATA[var attempts =
> mc.getProperty('REDELIVERY_ATTEMPTS');
>
>                     var intAttempts = 0;
>
>                     if(attempts != null || attempts != ""){
>
>                            intAttempts = parseInt(attempts);
>
>                     }
>
>                     intAttempts = intAttempts + 1;
>
>                     *mc.setProperty("REDELIVERY_ATTEMPTS", intAttempts);*
>
> </script>
> If I change the setting transport header as below it works fine.
>
> *mc.setProperty("REDELIVERY_ATTEMPTS", intAttempts + "");*
>
> I don't have any blocker in this and can achieve the requirement from
> above solution. But what is the reason for above behaviour ?
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
> twitter: https://twitter.com/godwinamila
>



-- 
Regards,
*Shafreen*
Software Engineer
WSO2 Inc
Mobile : 077-556-395-1
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to