Skip to Main Content

Java Development Tools

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!

How to call concurrent program from java code

961724Sep 12 2012 — edited Sep 13 2012
Hi,

I am trying to call a concurrent program from java code and have found these sources:

https://kr.forums.oracle.com/forums/thread.jspa?threadID=895917
http://prasanna-adf.blogspot.com/2008/11/call-concurrent-program-from-oa.html

I am try ting to use the code as shown below:

public int submitCPRequest(String strFilePath
,String strFileExtn
,int intLogLevel) {

try {
OADBTransaction dbTrx = (OADBTransaction)getDBTransaction();
java.sql.Connection Conn = dbTrx.getJdbcConnection();
ConcurrentRequest concReq = new ConcurrentRequest(Conn);

String pAppName = "XX_CUSTOM"; //Application that contains the concurrent program
String pCpShortName = "CP_SHORT_NAME"; //Concurrent program name
String pCpDesc = "CP_DESCRIPTION"; // concurrent Program description

// Pass the Arguments using vector
// Here i have added my parameter headerId to the vector and passed the vector to the concurrent program
Vector pArgs = new Vector();
//pArgs.addElement(headerId.stringValue());
pArgs.addElement(strFilePath);
pArgs.addElement(strFileExtn);
pArgs.addElement(intLogLevel);

// Calling the Concurrent Program
int xRequestId = concReq.submitRequest(pAppName, pCpShortName, pCpDesc, null, false, pArgs);
dbTrx.commit();
//int xRequestId = 0;
return xRequestId;


I am unable to compile the the code using the below java method because they are not available to our current version of java:

1.) OADBTransaction dbTrx = (OADBTransaction)getDBTransaction();
2.) dbTrx.commit();

Is there a way to call concurrent programs from a java code in older versions of oracle/java that will not use those methods?

We are running Oracle eBS 11.5.10.2.

Thanks!
Niko
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 11 2012
Added on Sep 12 2012
1 comment
828 views