Access OSB Resources using Java by Carsten Wiesbaum
June 6, 2018 Leave a comment
Every now and then you might want to store some configurations in simple configuration files and use them as OSB Resources in pipelines. In most cases OSB functionality is sufficient to fulfil your requirements. However sometimes you might not be able to get to your goal directly. Recently, I had to retrieve a list of all values in a specific domain column within a Domain Value Map (DVM). As DVMs are primarily used to map one domain value to one or multiple other domains, existing DVM functions do not provide the capability to retrieve all values from a domain column. Therefore, I developed a Java Callout to get the desired result. The solution is applicable to all OSB resource types. This blog post presents the basic concepts used to implement a solution.
OSB Resources Libs
Oracle Service Bus uses a standardized Java framework to access resources. Within this framework resources can be retrieved using specialised repositories. The corresponding JAR-Libraries can be found within the following folder:
<ORACLE_HOME>/osb/lib/modules/
All relevant libraries follow the naming schema oracle.servicebus.resources.<RESOURCE_TYPE>.jar. The figure below gives an overview of existing libraries. Basic functionality is provided by oracle.servicebus.resource.core.jar. For specific resource types, such as DVMs, XSLTs or XMLs, explicit additional Java libraries exist. Read the complete article here.
For regular information on Oracle SOA Suite become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.
Blog
Twitter
LinkedIn
Facebook
Wiki
Technorati Tags: SOA Community,Oracle SOA,Oracle BPM,OPN,Jürgen Kress
