tags: EBS
Download Related Standard Packages
fndutil.jar
fndcp.jar
fndctx.jar
Download Directory $ JAVA_TOP / ORACLE / APPS / FND / JAR / JAR /
Write a Java class
Define the package name rules:
a. If there is only a simple Class class after completion, the path to the registration is defined and the path to the server is consistent, such as package oracle.apps.hqc; the class file needs to upload to $ java_top / oracle.Apps.hqc / directory ;
b. If the project is more complicated, it is best to pack it into JAR, then upload it to the directory specified by the server.
Class description:
Your own class must implement the JavaconCurrentProgram interface, and implement concurrent integral functions Runprogram (CPContext CTX)
Release registration
3.1 Release Java Program
a. If there is only a simple Class class, upload it to the server's package name, such as package oracle.apps.hqc; the class file needs to upload to $ java_top / oracle.apps.hqc / directory, concurrent manager Automatically find the class file;
b. If the program is packaged into a JAR package, you can upload it to the directory specified in $ java_top, and then there are two ways to reference the JAR package:
Method 1: Modify the ClassPath and AF_CLASSPATH in USAPL_TOP / Admin / Adovars.env, add the absolute path of JAR to the JAR, and then restart the concurrent manager.
Method 2: Add the following to the options for concurrent procedures:
-classpath <path_to_your_custom.jar>/custom.jar:<path_to_JAVA_TOP>:<path_to_appsborg.zip>/appsborg.zip
--- Absolute path
<path_to_appsborg.zip> = $COMMON_TOP/java/lib/appsborg.zip
E.g:
-classpath /u1/TEST52/apps/apps_st/comn/java/classes/hqc/Loadjava/EBSExcel.jar:/u1/TEST52/apps/apps_st/comn/java/classes:/u1/TEST52/apps/apps_st/comn/java/lib/appsborg.zip

3.2 Concurrent request registration
Performing method: java concurrency program
Executive file name: Classification
Perform file path: package name

Concurrent request sets the same procedure, slightly
package oracle.apps.hqc;
import oracle.apps.fnd.cp.request.CpContext;
import oracle.apps.fnd.cp.request.JavaConcurrentProgram;
import oracle.apps.fnd.cp.request.LogFile;
import oracle.apps.fnd.cp.request.ReqCompletion;
import oracle.apps.fnd.util.NameValueType;
import oracle.apps.fnd.util.ParameterList;
public class TestHqc implements JavaConcurrentProgram {
@Override
public void runProgram(CpContext ctx) {
/ / A list of parameters that acquire concurrent program incoming
ParameterList lPara = ctx.getParameterList();
ReqCompletion lrc = ctx.getReqCompletion();
try
{
// Print the value of the parameter name and parameters in log and output, respectively, in LOG and OUTPUT
while(lPara.hasMoreElements())
{
NameValueType nvt = lPara.nextParameter();
ctx.getOutFile().writeln(nvt.getName() + ":" + nvt.getValue());
ctx.getLogFile().write(nvt.getName() + ":" + nvt.getValue(), LogFile.STATEMENT);
}
/ / After completing the procedure of the print, the end status of the setup program is normal. If this step does not do, although the program has no error, the execution result is still an error.
lrc.setCompletion(ReqCompletion.NORMAL, "Normal Ending");
}
catch(Exception e)
{
/ / If the program has an exception, the execution result of the setup program, it should be set to Error
ctx.getLogFile().write(e.toString(), LogFile.STATEMENT);
lrc.setCompletion(ReqCompletion.WARNING, "Exception Occurs!!!");
}
}
}
5、FQA
1) IDEA packaging JAR operation error
Exception in thread “main” java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
Solve: Open the JAR package using the compression software: All the other files other than the MAINFEST.MF, .RSA and Maven folders in the meta-inflicity
2) Use high version JDK to report
java.lang.UnsupportedClassVersionError: com/oppo/ebs/DemoHqc : Unsupported major.minor version 52.0
Solve: Change JDK1.6 package
references
Host type concurrent request Write a simple Shell script such as HostTest.prog, print several information in the concurrent request log, the content is as follows Upload to the server directory, such ...
An EBS technology Xiaobai's self-statement...
You can spend a few hours learning about XML on the W3C website. 1 Introduction XML (Extensible Markup Language), a markup language used to mark electronic files to make them structured. is designed t...
In multi-threaded programming, the return value of the task will not bring the return value of the task to Exception, but not throw. Java offers a Callable interface The class that implements this int...
Table of contents 1. CyclicBarrier Overview 2. Example of CyclicBarrier code 1. CyclicBarrier Overview CyclicBarrier literally means that the barrier used by cyclic. CyclicBarrier was blocked when a s...
Reference blog 1 Introduction Volatile is a lightweight synchronization mechanism provided by Java. The Java language contains two internal synchronization mechanisms: synchronous blocks (or methods) ...
[FND] Hidden request...
The password has been reset at this time, but it is not mandatory for the user to change the password when logging in. You can clear the field password_date value of the fnd_user table....
EBS submission requests mainly use the following API fND_GLOBAL.Apps_INITIALIZE: initialization user, responsibilities environment variables fnd_request.set_print_opting: Set the print format of the r...