Skip to Main Content

Developer Community

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Writing Logs from BPEL process

The simple way is to create a Java Embedding in BPEL with code like the following. Suppose you want to log the BPEL variable “RetryCount”:

<extensionActivity>

<bpelx:exec name="Java_Embedding1">

<![CDATA[

Object obj = getVariableData("RetryCount");

java.util.logging.Logger logger = java.util.logging.Logger.getLogger("oracle.soa.Logger");

oracle.fabric.logging.LogFormatter.configFormatter(logger);

logger.info("RetryCount is "+ obj);

]]>

</bpelx:exec>

</extensionActivity>

You will find the message “RetryCount is 1” in the diagnostic.log

Comments
Post Details
Added on Sep 30 2024
0 comments
194 views