Establishing a Connection
Creating a JDBC Data Source
You can create a JDBC data source to connect from your Java application, based on CData JDBC Driver for SAP BusinessObjects BI.Follow these steps:
- Add the driver JAR file to the classpath. The JAR file is located in the installation directory's lib subfolder. Ensure that the .lic file is located in the same folder as the JAR file.
- Provide the driver class. For example:
cdata.jdbc.sapbusinessobjectsbi.SAPBusinessObjectsBIDriver
- Provide the JDBC URL. For example:
jdbc:sapbusinessobjectsbi:User=MyUser;Password=MyPassword;Url=http://myserver:6405/biprws;
Or, if there is a conflict in your application between drivers using the same URL format, use this form to ensure that you are using the CData driver:
jdbc:cdata:sapbusinessobjectsbi:User=MyUser;Password=MyPassword;Url=http://myserver:6405/biprws;
Ensure that the URL starts with either jdbc:sapbusinessobjectsbi: or jdbc:cdata:sapbusinessobjectsbi:. The URL can include any of the connection properties in name-value pairs separated with semicolons.
Connecting to SAPBusinessObjectsBI
To connect to your SAP BusinessObjects BI instance, you must set the following:
- URL: The SAP BusinessObjects BI REST API URL. To discover this:
- Log into the Central Management Console.
- Choose Applications from the combo box.
- Select RESTful Web Service. The Central Management Console displays the access URL, which is http://{Server-Name}:6405/biprws by default.
- AuthScheme: Set this to the type of authentication to use when connecting to SAP BusinessObjects BI.
Basic
To connect to SAP BusinessObjects BI using the default Basic authentication mechanism, set the AuthScheme to Basic, and set these properties:
Enterprise
To connect to SAP BusinessObjects BI using Enterprise authentication, set the AuthScheme to Enterprise, and set these properties:
LDAP
To connect to SAP BusinessObjects BI using LDAP authentication, set the AuthScheme to LDAP, and set these properties:
WinAD
To connect to SAP BusinessObjects BI using Windows AD authentication, set the AuthScheme to WinAD, and set these properties:
CyberArk
To connect to CyberArk, set the AuthScheme to CyberArk, and set these properties:
- User: The CyberArk login name (user@domain).
- Password: The CyberArk user's password.
- SSOLoginURL: The app's single sign on URL.
- SSOExchangeURL: The url used for the exchange of the SAML token for SAP BusinessObjects BI credentials.
If you have configured MFA, you must use combinations of SSOProperties to authenticate using CyberArk. Set any of the following, as applicable:
- MFAType: If you have configured MFA, set this to the name of the mechanism that should be selected during authentication.
- MFAPassCode: If you have configured MFA, set this to a valid answer for the selected mechanism.
If you set this to an empty or an invalid value, the driver initiates the out-of-band mechanism. The driver polls the API until the challenge is completed through user interaction before deciding on closing the connection. - MFATimeout: If you have configured MFA, set this to the number of seconds the driver should continue polling the API until the challenge is completed through user interaction. By default, the driver polls the API for 60 seconds before closing the connection.
Example connection string:
AuthScheme=CyberArk;SSOLoginURL='https://abc1234.id.cyberark.cloud/run?appkey=00000000-0000-0000-0000-000000000000&customerId=ABC1234';User=cyberarkUserName;Password=cyberarkPassword;SSOExchangeUrl=http://myserver:8080/biprws/saml/SSO;