Tuesday, August 12, 2014

Hanlon server can now run on Java

Hanlon server code is migrated / refactored to run on JRuby so that hanlon server can be deployed on Java Application Servers. This blog outline the process to create hanlon.jar file for JAS deployment

Dependencies

1. OpenJDK 7
2. Jruby

Hanlon Jar Creation

Assuming hanlon git repo is cloned and a suitable dev environment setup. (ref. Setting up Hanlon Development Environment for further details)

1. Create hanlon.jar

# go to hanlon home directory
cd scripts
./create_war.sh

create_war.sh download necessary dependencies (xxx_jdbc.jar, ruby gems etc.,) and includes them into the war file

 

2. Deploy war

Created war file can be found under builds directory of hanlon home directory. This file can be deployed onto your favorite java application server. It is tested on tomcat, jboss and glassfish. If you get a chance to test on other JAS containers, please post your feedback for any improvements

No comments:

Post a Comment