You can access registry resource inside mediate method as below.
// if localentry "testLocalentry" defined in synapse econfig
Entry localEntryObj = (Entry) synapseMsgContext.getConfiguration()
.getLocalRegistry().get("testLocalentry");
System.out.println(" value: " + localEntryObj.getValue());
System.out.println(" Filename : " + localEntryObj.getFileName());
// goverance/config registry
Registry regInstance = synapseMsgContext.getConfiguration()
.getRegistry();
Object obj=regInstance.getResource(new
Entry("gov:/test1.txt"),null);
Object obj2=regInstance.getResource(new
Entry("conf:/test2.txt"),null);
Thanks,
Chanaka
On Fri, Apr 4, 2014 at 12:51 PM, Rushmin Fernando <[email protected]> wrote:
> Hi
>
> I need to read a blob in the the registry, from a mediator class. How can
> I do that please ?
>
> Thanks
> /rushmin
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware
>
> email : [email protected]
> mobile : +94772310855
>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
--
--
Chanaka Fernando
Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware
mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev