[-support-dev][+dev]

On Fri, Jul 21, 2017 at 11:58 AM, Hariprasath Thanarajah <
haripras...@wso2.com> wrote:

> Hi All,
>
> When we extend the GenericPollingConsumer, ListeningConsumer or
> EventBasedConsumer to create a custom inbound for ESB there we don't have a
> method to pass the messageContext in that particular class[1]. In the
> custom inbound, we have a requirement to set the property in the
> messageContext[2] and need gets the values from the sequence For that we
> need to override the injectMessage method within the custom inbound[3].
>
> One way to overcome this we can create a utility method to create the
> message context and for the injectMessage we can pass the messageContext in
> the GenericPollingConsumer.
>
> Any thoughts?
>
> [1] - https://github.com/wso2/carbon-mediation/blob/master/
> components/inbound-endpoints/org.wso2.carbon.inbound.
> endpoint/src/main/java/org/wso2/carbon/inbound/endpoint/protocol/generic/
> GenericPollingConsumer.java#L77
>
> [2] - https://github.com/hariss63/esb-inbound-kafka/blob/master/
> src/main/java/org/wso2/carbon/inbound/kafka/KafkaMessageConsumer.java#L306
>
> [3] - https://github.com/hariss63/esb-inbound-kafka/blob/master/
> src/main/java/org/wso2/carbon/inbound/kafka/KafkaMessageConsumer.java#L327
>
> --
>
>
> *Thank you and Regards,**Hariprasath Thanarajah*
> Software Engineer | WSO2
> E: haripras...@wso2.com
> M: +94 75 2806528 <+94%2075%20280%206528>, +94 77 7216903
> <+94%2077%20721%206903>
> Blog: hariwso2.blogspot.com
>
> Skype : hariss636
> LinkedIn : https://www.linkedin.com/in/hariprasath-thanarajah-5234b660
>
> WSO2, Inc.
> lean . enterprise . middleware
>
> https://wso2.com/signature
> http://wso2.com/about/team/hariprashath-thanarajah/
>



-- 


*Thank you and Regards,**Hariprasath Thanarajah*
Software Engineer | WSO2
E: haripras...@wso2.com
M: +94 75 2806528, +94 77 7216903
Blog: hariwso2.blogspot.com

Skype : hariss636
LinkedIn : https://www.linkedin.com/in/hariprasath-thanarajah-5234b660

WSO2, Inc.
lean . enterprise . middleware

https://wso2.com/signature
http://wso2.com/about/team/hariprashath-thanarajah/
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to