Hi Sanjeewa, This is already done in 2.2.0[1].
[1] https://wso2.org/jira/browse/APIMANAGER-5529 Thanks, Bhathiya On Tue, Jan 23, 2018 at 1:50 PM, Sanjeewa Malalgoda <[email protected]> wrote: > Even if we have workflow usecase we should be able to use JsonStreamBuilder > with workaround we tried recently. > There is no harm with this change and we should consider making > JsonStreamBuilder > default when we do APIM 2.2.0 release. > Please add this to 2.2 product development branch. > > Thanks, > sanjeewa. > > On Tue, Jan 23, 2018 at 12:59 PM, Harsha Kumara <[email protected]> wrote: > >> >> >> On Tue, Jan 23, 2018 at 10:27 AM, Keerthika Mahendralingam < >> [email protected]> wrote: >> >>> HI All, >>> >>> When we use the latest version of cache mediator implementation with >>> APIM, an empty response is getting cached instead of JSON message. But all >>> headers are getting cached correctly. When I debugged the code, I found >>> that response body is set to null in [1]. >>> >>> As Riyafa suggested when I changed the JSON message builder as >>> JsonStreamBuilder instead of JsonBuilder its worked as expected. >>> >>> Is there any specific reason for using JsonBuilder instead of >>> JsonStreamBuilder? Can I go with this approach? >>> >> There are many instances which we have suggest to use JsonStreamBuilder >> in APIM usecases and it's the defualt builder in the EI. We had a >> limitation using this when workflows enabled but there is a workaround. >> Hence it's fine to use JsonStreamBuilder. >> >>> >>> Any suggestion on this? >>> >>> [1]. https://github.com/wso2/carbon-mediation/blob/master/co >>> mponents/mediators/cache/org.wso2.carbon.mediator.cache/src/ >>> main/java/org/wso2/carbon/mediator/cache/CacheMediator.java#L359 >>> >>> Thanks, >>> Keerthika. >>> >>> -- >>> <[email protected]> >>> Keerthika Mahendralingam >>> Software Engineer >>> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144> >>> [email protected] >>> WSO2, Inc. >>> lean . enterprise . middleware >>> >> >> >> >> -- >> Harsha Kumara >> Software Engineer, WSO2 Inc. >> Mobile: +94775505618 <077%20550%205618> >> Blog:harshcreationz.blogspot.com >> > > > > -- > > *Sanjeewa Malalgoda* > WSO2 Inc. > Mobile : +94713068779 <071%20306%208779> > > <http://sanjeewamalalgoda.blogspot.com/>blog :http://sanjeewamalalgoda. > blogspot.com/ <http://sanjeewamalalgoda.blogspot.com/> > > > -- *Bhathiya Jayasekara* *Associate Technical Lead,* *WSO2 inc., http://wso2.com <http://wso2.com>* *Phone: +94715478185* *LinkedIn: http://www.linkedin.com/in/bhathiyaj <http://www.linkedin.com/in/bhathiyaj>* *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>* *Blog: http://movingaheadblog.blogspot.com <http://movingaheadblog.blogspot.com/>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
