Use the JDBC-ODBC Bridge with the Salesforce ODBC driver to connect Jaspersoft to Salesforce and provide real-time access to your Salesforce objects, enabling you to analyse Salesforce data from your Jaspersoft dashboard.
Jaspersoft is a Java application. To interact with a data source such as Salesforce, a Java application uses a JDBC driver. (JDBC is a Java application programming interface (API) that connects Java to relational databases and other tabular data such as spreadsheets and flat files.)
The Salesforce ODBC driver uses ODBC to connect to Salesforce. ODBC is another data access technology, the Microsoft implementation of which is included with Windows.
The JDBC-ODBC Bridge allows a Java application using JDBC to access an ODBC driver. The JDBC-ODBC Bridge and ODBC driver do not have to be installed on the same machine.
The components necessary to connect Jaspersoft to Salesforce are therefore:
Jaspersoft <-> JDBC-ODBC Bridge <-> Salesforce ODBC driver <-> Salesforce
For installation instructions, refer to the Salesforce ODBC driver documentation.
Before you can use the Salesforce ODBC driver to connect Jaspersoft to Salesforce, you need to configure a System ODBC data source. An ODBC data source stores the connection details for the target database (in this case, Salesforce) and the ODBC driver that's required to connect to it (in this case, the Salesforce ODBC driver).
Use ODBC Data Source Administrator to create your Salesforce ODBC driver data source:
%windir%\system32\odbcad32.exe
Easysoft ODBC-Salesforce Driver
, and then choose Finish.Setting | Value |
---|---|
DSN | Salesforce |
User Name | The name of your Salesforce user. For example, myuser@mydomain.com . |
Password | The password for your Salesforce user. |
Token |
The security token for your Salesforce user, if required.
To find out whether you need to supply a security token, choose the Test button. If the connection attempt fails with an error which contains Salesforce emails the security token to the email address associated with your Salesforce user account. If you have not received a security token, you can regenerate it. Salesforce will then email the new security token to you. To regenerate your security token, log in to Salesforce and then choose Setup from the user menu. Search for "security token" in the Quick Find box. Choose Reset Security Token in the Reset Security Token page. When you receive the token in your email client, copy it and then paste it into the Token field. |
For installation instructions, refer to the JDBC-ODBC Bridge documentation.
Easysoft JDBC-ODBC Bridge Server x64 service
is running, and that the Easysoft JDBC-ODBC Bridge Server service
is stopped (stop the service and in the server properties, set the Startup type to Manual
).You can now connect Jaspersoft to Salesforce:
EJOB.jar
to the jasperserver-install\apache-tomcat\lib
folder.
EJOB.jar
is installed in the following location on the machine where you installed the JDBC-ODBC Bridge:
easysoft_install\Jars
The default location for easysoft_install
is drive:\Program Files (x86)\Easysoft Limited\Easysoft JDBC-ODBC Bridge
.
Setting | Value |
---|---|
Name | Salesforce |
Description | Connect Jaspersoft to Salesforce with Easysoft. |
JDBC Driver | Choose Other from the list, and then type easysoft.sql.jobDriver in the space provided. |
URL |
jdbc:easysoft://my_host/my_salesforce_system_dsn
Replace |
Username | Your Salesforce user name. |
Password | Your Salesforce password. |
If the JDBC-ODBC Bridge has authentication turned on, which it has by default, you will need to add these parameters to the JDBC URL:
:logonuser=my_windows_user:logonpassword=my_windows_password
Replace my_windows_user
and my_windows_password
with a valid Windows user name and password for the machine on which the JDBC-ODBC Bridge is running.