tree: cc31d4ab54a61df6411f6f84c3b6aa3bf4243ada [path history] [tgz]
  1. bin/
  2. conf/
  3. lib/
  4. NOTICE
  5. README.md
tomee-server/src/main/server/README.md

ODE Server based on Apache TOMEE

NOTE: This server is not yet production ready. Use for demo purposes only.

Folder structure

  • bin (contains startup scripts)
  • lib (contains tomee libraries, thirdparty licenses and ode startup jar to startup tomee in embedded mode)
  • conf (tomee configuration files)
  • database (derby database for OpenJPA and Hibernate used by ODE)
  • logs
  • webapps (ODE web application)

Server Startup

Linux: bin/start.sh

Windows: bin/start.bat

Server Shutdown

CTRL + C

Datasource Configuration

Embedded Derby database and OpenJPA persistence.

<Resource id="jdbc/ode" type="DataSource">
    jdbcDriver=org.apache.derby.jdbc.EmbeddedDriver
    jdbcUrl=jdbc:derby:database/derby-jpadb
    userName=sa
    password=
    defaultAutoCommit=false
    jtaManaged=true
    initialSize=5
    maxActive=20
    defaultTransactionIsolation=2
</Resource>

Embedded Derby database and Hibernate persistence.

<Resource id="jdbc/ode" type="DataSource">
    jdbcDriver=org.apache.derby.jdbc.EmbeddedDriver
    jdbcUrl=jdbc:derby:database/derby-hibdb
    userName=sa
    password=
    defaultAutoCommit=false
    jtaManaged=true
    initialSize=5
    maxActive=20
    defaultTransactionIsolation=2
</Resource>

Change the relevant section of the Resource element under conf/tomee.xml for different database and download and store the driver jar file under lib/ directory.

OPENJPA Persistence

By default server comes packaged with OpenJPA and Embedded Derby database. If a different database is needed then change the relevant section under conf/tomee.xml

Hibernate Persistence

Download these Hibernate dependencies and put them under lib/ of the server

  • antlr-2.7.6.jar
  • asm-3.3.1.jar
  • cglib-2.2.jar
  • dom4j-1.6.1.jar
  • ehcache-1.2.3.jar
  • hibernate-core-3.3.2.GA.jar
  • javassist-3.9.0.GA.jar

Edit file ode-axis2.properties under webapps/ode/WEB-INF/conf/

Replace this line

ode-axis2.dao.factory=org.apache.ode.dao.jpa.BPELDAOConnectionFactoryImpl

With

ode-axis2.dao.factory=org.apache.ode.daohib.bpel.BpelDAOConnectionFactoryImpl

By default server comes packaged with Embedded Derby database. If a different database is needed then change the relevant section under conf/tomee.xml and store the driver jar file under lib/ directory of the server.