You might want to print the current thread id for testing purposes in WSO2 ESB. It might be useful in cases where you want to make sure that the same thread is used for all the operations and no new threads were created. You can add following script mediator in your proxy to print the current thread id.
<script language="js">java.lang.System.out.println(java.lang.Thread.currentThread().getId());</script>
No comments:
Post a Comment