Folders and Files.

<< Click to Display Table of Contents >>

Navigation:  Document Management >

Folders and Files.

Folders and Files.

Top Previous Next

 

Once the installation program has finished, the following folders structure will be created under the destination folder you have chosen during the installation process:

 

_img1

 

The main folders are:

 

Eritrium: This is the main folder. All files installed are under it. No additional files are copied out of this folder.

Db: This is the folder where the MSAccess database file is located.

J2re1.4.2_07: This is the folder where the Java Virtual Machine is located.

Samples: In this folder you will find example templates and other useful tools.

Tomcat: This is the folder where the application server (and also web server) is located.

Database Management

 

The default database included in the installation files is MSAccess. Eritrium can work with other database engines providing jdbc access technology.

By default, the installation package creates a ODBC driver mapping MSaccess file Solver.mdb as shown in the image

:

_img8

 

Administrators can change the database engine simply because it is configured in an external file. In folder C:\Program Files\Eritrium\Tomcat\webapps\Eritrium\WEB-INF you will find a file web.xml containing the configuration for the application. You must start Eritrium server at least once in order to generate this file.

The content of the standard file is:

 

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app

PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

<display-name>Eritrium</display-name>

<description>Web based crm solution</description>

<servlet>

<servlet-name>CRMController</servlet-name>

<servlet-class>com.solver.site.http.CRMController</servlet-class>

<init-param>

<param-name>connectionDriver</param-name>

<param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value>

</init-param>

<init-param>

<param-name>connectionString</param-name>

<param-value>jdbc:odbc:Eritrium05</param-value>

</init-param>

<init-param>

<param-name>user</param-name>

<param-value></param-value>

</init-param>

<init-param>

<param-name>password</param-name>

<param-value></param-value>

</init-param>

</servlet>

<servlet>

<servlet-name>ShopController</servlet-name>

<servlet-class>com.solver.site.http.ShopController</servlet-class>

<init-param>

<param-name>connectionDriver</param-name>

<param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value>

</init-param>

<init-param>

<param-name>connectionString</param-name>

<param-value>jdbc:odbc:Eritrium05</param-value>

</init-param>

<init-param>

<param-name>user</param-name>

<param-value></param-value>

</init-param>

<init-param>

<param-name>password</param-name>

<param-value></param-value>

</init-param>

</servlet>

<servlet>

<servlet-name>InterfaceController</servlet-name>

<servlet-class>com.solver.site.http.InterfaceController</servlet-class>

<init-param>

<param-name>connectionDriver</param-name>

<param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value>

</init-param>

<init-param>

<param-name>connectionString</param-name>

<param-value>jdbc:odbc:Eritrium05</param-value>

</init-param>

<init-param>

<param-name>user</param-name>

<param-value></param-value>

</init-param>

<init-param>

<param-name>password</param-name>

<param-value></param-value>

</init-param>

</servlet>

<servlet-mapping>

<servlet-name>CRMController</servlet-name>

<url-pattern>/Eritrium</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>InterfaceController</servlet-name>

<url-pattern>/interface</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>ShopController</servlet-name>

<url-pattern>/shop</url-pattern>

</servlet-mapping>

<session-config>

<session-timeout>30</session-timeout>

</session-config>

 

</web-app>

 

As you can see highlighted in red color, two sections are defined Connection String and Connection Driver, both used to select the way to access the data base.

 

In the same folder two more files are provided, web(Oracle).xml and web(SQLServer).xml. These files are examples of how to configure file web.xml to use Oracle or SQl Server. Note that the Database administrator should first generate the database in the new database engine, importing the data model defined in file Solver.mdb using any existing database management tool. If you need help, please contact soporte@ee-pp.com