|
I'm having problem using JDBCR4 to connect to Oracle database andhopefully
someone can help me with it. The problem I'm having is that theprocess
seems to be stuck when my program calls the JDBC_ConnProp to get the==calls==>
connection.
I debug, I see that JDBC_ConnProp ==calls==> Driver_ConnProp
CallConnectMethod. CallConnectMethod seems to be where it is stuckat.
********************************************************************
Has anyone has similar problem?
Below is what my code looks like:
* connect to the MyAccount Database********************************************************************
P setMyAcctDBConn...:myConnProp);
P B
D myReply s 1
D myUID s 90 varying
D myPwd s 90 varying
D myJDBCDriver s 255 varying
D myURL s 255 varying
D myConnProp s like(properties)
/free
dow @ENDLESSLOOP;
myConnProp = JDBC_Properties();
exsr setMyConnProp;
myAcctDBConn = JDBC_ConnProp(myJDBCDriver :myURL
JDBC_freeProp(myConnProp);
exsr returnToCallerIfOK;
enddo;
//********************************************************
// set connection properties
//********************************************************
begsr setMyConnProp;
myUID = %trim(refGetCFG(@pgmNm :systemName :'UID'));
myPWD = %trim(refGetCFG(@pgmNm :systemName :'PWD'));
myJDBCDriver = %trim(refGetCFG(@pgmNm :systemName :'DRV'));
myURL = %trim(refGetCFG(@pgmNm :systemName :'URL'));
JDBC_setProp(myConnProp: 'user' :%trim(myUID) );
JDBC_setProp(myConnProp: 'password' :%trim(myPWD) );
endsr;
. . . .
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.