HowTo : Disable/Enable Oracle ESB status at runtime: Scheduling polling frequency

by toy

I’m being assigned a task which is Scheduling polling frequency in File adapter. Typically, File Adapter will collect the files from specified folder at the polling frequency time parameter, such as every 1 second or 1 min. What about specified time, every 6pm or every morning? How?? This is my solution. Quartz.

But one thing led to another. How do we invoke the File adapter programmatically? The answer is Oracle ESB API Client. This client will invoke the file adapter and change the status to enabled/disabled at the specified time. Reference

Oracle ESB API can also be invoked via HTTP protocol. You can try this http://localhost:8888/esb/esbConfiguration/executeCommand?action=ExploreServices. This URL will return an XML metadata where you can explore the services in ESB, such as guid and status.

Note: This URL will work for Basic installation, but may be not Advance installation.

And this is how we create quartz to work with OC4J
http://radio.weblogs.com/0135826/2004/04/02.html

This is the example of how we communicate with Oracle ESB API Client

JAVA CODE
ConsoleClient client = ConsoleClientFactory.getConsoleClient(HOST, PORT, USER_NAME,PASSWORD);
client.perform(“UpdateServiceStatus”, requestProps);



The example code