Skip to content

Commit

Permalink
changes to add a new datasource contents
Browse files Browse the repository at this point in the history
  • Loading branch information
gmansueto committed Mar 27, 2023
1 parent b8e3627 commit 1b2aac1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions chapter_4/add_datasource.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Add new Data Source
############

To let all the BI tools work properly you need to configure DB connection. There are two different options available for the configuration **JNDI** (recommended) and **JDBC**.
To let all the BI tools work properly, you need to configure DB connection. There are two different options available for the configuration, **JNDI** (recommended) and **JDBC**.

Connect to your data
--------------------
Expand All @@ -10,24 +10,24 @@ In order to connect to your data, you have to define a new data source connectio

Knowage manages two types of data source connections:

- connections retrieved as JNDI resources, which are managed by the application server on which Knowage is working. This allows the application server to optimize data access (e.g. by defining connection pools) and thus are the preferred ones. Here you can find information how create connection pool in Tomcat : https://tomcat.apache.org/tomcat-8.0-doc/jndi-datasource-examples-howto.html
- connections retrieved as JNDI resources, which are managed by the application server Knowage is working on. This allows the application server to optimize data access (e.g. by defining connection pools), reason why they are preferred. By clicking on the following link, you can find information on how creating connection pools in Tomcat : https://tomcat.apache.org/tomcat-8.0-doc/jndi-datasource-examples-howto.html
- direct JDBC connections, which are directly managed by Knowage;

.. important::
**How to create connection JNDI on Tomcat**

- Create connection pool on ``TOMCAT_HOME/conf/server.xml``
- Add ResourceLink on context.xml
- Create a connection pool on ``TOMCAT_HOME/conf/server.xml``
- Add a ResourceLink on context.xml

To add a new connection, first add the relative JDBC driver to the folder ``TOMCAT_HOME/lib`` and restart Knowage. Then, login as administrator (user: *biadmin*, password: *biadmin* are the default credential) and select the **Data source** item from the **Data provider** panel in the administrator menu.
To add a new connection, first add the relative JDBC driver to the folder ``TOMCAT_HOME/lib`` and restart Knowage. Then, log in as administrator (user: *biadmin*, password: *biadmin* are the default credentials) and select the **Data source** item from the **Data provider** panel in the administrator menu.

By clicking the **Add** button on the top right corner of the left panel, an empty form will be displayed on the right.

.. figure:: media/image25.png
.. figure:: media/image25_8.1.png

Add a new data source

.. figure:: media/image26.png
.. figure:: media/image26_8.1.png

Data source details.

Expand Down
Binary file added chapter_4/media/image25_8.1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chapter_4/media/image26_8.1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1b2aac1

Please sign in to comment.