![]() ![]() Public void setErrorCompletion(String message) Public void setWarningCompletion(String message) Public void setNormalCompletion(String message) Public Number getNumberParameter(String paramName) Public String getParameter(String paramName, String defaultValue) The full list of methods is below: public String getParameter(String paramName) Throw new ConcProgramException(getContext(), ex) ĬoncProgram provides all the methods that you need to manage your Java Concurrent Program. WriteLog& amp quot Exception & amp quot + ex.getClass().getName() + & amp quot caught in & amp quot + this.getClass().getName()) SetNormalCompletion(& amp quot OK& amp quot ) Public void main() throws ConcProgramException The only thing you have to do is implement the abstract method main() and ConcProgram will do the rest. To make life easier, I have created an abstract class containing a whole set of useful utility functions, designed to make writing a Java Concurrent Program a lot easier. However, the some of the information about the Concurrent Program can be a little awkward to access. The CpContext object gives you access a whole variety of useful things, including the database connection, the Log and Output files and all the parameter values from the Submit Request screen. Public void runProgram(CpContext cpContext) Public class CpTest implements JavaConcurrentProgram ![]() Oracle have provided the Java Interface .request.JavaConcurrentProgram to create your Java Concurrent Program you will need to create a class that implements this interface, ensuring that the abstract method runProgram() is implemented. Tim’s article is very good and I don’t intend to just repeat everything that he has written. I first came across it while reading Tim Dexter’s excellent BI Publisher Blog in his article How To – Java Concurrent Programs. I believe that this functionality was introduced in 11.5.9, but very little fuss has been made of it. It is a little known fact that Concurrent Manager Executables can be written in Java, as well as all the traditional languages such as PL/SQL. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |