For Derby Database
You can use the default database provided with the installer, which can be found in
folder persistance\GatewayDbDerby.
-
Download the
apache db derby jar db-derby-10.16.1.1-lib.zip file, which is supported for Java 17 and higher from https://dlcdn.apache.org/db/derby/db-derby-10.16.1.1 URL. -
Extract the derby jar files and copy it and paste all the following derby jar file to
%TOMEE+_HOME%\lib directory.
- derby.jar
- derbyLocale_cs.jar
- derbyLocale_de_DE.jar
- derbyLocale_es.jar
- derbyLocale_fr.jar
- derbyLocale_hu.jar
- derbyLocale_it.jar
- derbyLocale_ja_JP.jar
- derbyLocale_ko_KR.jar
- derbyLocale_pl.jar
- derbyLocale_pt_BR.jar
- derbyLocale_ru.jar
- derbyLocale_zh_CN.jar
- derbyLocale_zh_TW.jar
- derbyshared.jar
- derbytools.jar
- Restart the Apache TOMEE application server.
-
Navigate to
%TOMEE+_HOME%\confdirectory. OpenTomEE.xmlfile in an editor. -
Append
Resourceelement as shown in the below example.<Resource id="jdbc/gateway/3DEXPERIENCEPlatformGW" type="javax.sql.DataSource"> JdbcDriver org.apache.derby.jdbc.EmbeddedDriver JdbcUrl jdbc:derby:C:/3DEXPERIENCEPlatformGW/persistance/GatewayDbDerby maxActive 100 maxIdle 30 maxWait 10000 username password JtaManaged false </Resource>
where,
C:/3DEXPERIENCEPlatformGW/persistance/GatewayDbDerbypoint to path ofGatewayDbDerbydirectory inpersistancedirectory.jdbc/gateway/3DEXPERIENCEPlatformGWis the DataSource JNDI Name entered when installing Gateway Server for X-PDM.
Result: The DataSource is configured and is ready to use.