From time-to-time you have requirement to sleep/pause/throttle the transaction in OSB. You can do this by using a simple POJO.
Below is a class to add to your OSBToolkit.java.
public class OSBToolkit
{
public OSBToolkit()
{
}
public static String sleep(long l)
{
String s;
try
{
Thread.sleep(l);
s = "Success";
}
catch(Exception exception)
{
s = "Error";
}
return s;
}
}
Then from OSB, reference to the OSBToolkit and the sleep class, specify the following value as input:
xs:long(5000)
Topics
- 12c (1)
- Architecture (2)
- B2B (1)
- Banking (1)
- BPEL (3)
- Cisco (1)
- ebXML (1)
- EDIFACT (1)
- Effective Management (2)
- Engineered Systems (2)
- Exadata (2)
- Exalogic (1)
- Governance (1)
- Innovative (1)
- Issue Management (1)
- ITIL (1)
- Java (3)
- JDeveloper (2)
- Methods (27)
- Mobility (1)
- OFM (5)
- OIC (1)
- Oracle SOA Suite (7)
- OSB (1)
- Principles (8)
- Release Management (1)
- Scripting (1)
- Standards (3)
- Virtualization (1)
- webMethods (6)
- XPath (1)