Buildr-based packaging script that bundles a pre-configured Apache ODE with Tomcat 7 and Bitronix
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main/resources/tomcat
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
buildfile
profiles.yaml

README.md

Apache ODE Tomcat Bundle

Buildr-based packaging script that bundles a pre-configured Apache ODE with Tomcat 7 and Bitronix.

Database configuration can be placed in profiles.yaml:

filter: &common
  bitronix.minPoolSize: 10
  bitronix.maxPoolSize: 50

mysql:
  filter:
    <<: *common
    jdbc.driverClassName: "com.mysql.jdbc.Driver"
    jdbc.url: "jdbc:mysql://localhost:3306/ode"
    jdbc.user: "root"
    jdbc.password: ""
    jdbc.gav: "mysql:mysql-connector-java:jar:5.1.26"
    ode.dao: "org.apache.ode.daohib.bpel.BpelDAOConnectionFactoryImpl" # for Hibernate
    #ode.dao: "org.apache.ode.dao.jpa.BPELDAOConnectionFactoryImpl" # for OpenJPA

In the same fashion, other database setups can be added. All database configuration parameters can also be changed in tomcat/conf/resources.properties later on.

To create the pre-configured bundle, change the settings in profiles.yaml and then run

buildr clean package -e mysql

-e mysql identifies the mysql profile. If you have added other profiles in your profiles.yaml, you can select them using the -e switch.

NOTE: Please make sure that Apache Buildr and the nokogiri gem is installed. I prefer JRuby, so with an installed JRuby, just run

gem install bundler
bundle install

and you're set.

NOTE: If you use JRuby and don't have added its bin directory to your path, you need to prepend /jruby1.x-x/bin/jruby -S to the gem, bundle and buildr commands above.

License

This build script, Apache ODE and Apache Tomcat are Apache-licensed. The generated bundle, however, will include the Bitronix Transaction Manager (LGPL) and possibly proprietary licensed JDBC drivers.

Credits

This build script is based on Sathwik Bantwal Premakumar's blog post on configuring ODE with Bitronix in Tomcat 7.