Skip to main content

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

Comments

Popular posts from this blog

Just Buzz... Where is AI?

Speaking to Recode’s Kara Swisher and MSNBC’s Ari Melber, Pichai said AI is “one of the most important things that humanity is working on. It’s more profound than, I don’t know, electricity or fire,” adding that people learned to harness fire for the benefits of humanity, but also needed to overcome its downsides, too. Pichai also said that AI could be used to help solve climate change issues, or to cure cancer. We are seeing some exciting things in the industry, Samsung’s massive 8K TVs apparently use AI to upscale lower resolution images for the big screen. Sony has created a new version of the Aibo robot dog, which this time promises more artificial intelligence. Travelmate’s robot suitcase will use AI to drive around and follow its owner wherever they go.  Kohler has invented Numi, a toilet that has Amazon’s Alexa voice assistant built in etc., But despite all this, it does leave me wondering: is artificial intelligence really what we should be calling this revolution?...

Building Hanlon Micro-Kernel (MK)

I am posting a quick cookbook on creating hanlon microkernel for easy reference. Detailed information on how the microkernel organized and build along with details on each of the command listed here can be found on git hanlon microkernel wiki   1. Install dependencies sudo apt-get install squashfs-tools -y sudo apt-get install -y fakeroot sudo apt-get install p7zip-full -y sudo apt-get install curl -y   2. Install Ruby (I prefer using rvm) \curl -sSL https://get.rvm.io | bash -s stable --ruby source /home/user/.rvm/scripts/rvm   3. Clone hanlon micro-kernel project into your working directory (my directory ~/wspace/hanlon/hanlon-mk) cd mkdir wspace mkdir hanlon git clone hanlon-mk cd hanlon-mk   4. Clone hanlon micro-kernel project into your working directory (my directory ~/wspace/hanlon/hanlon-mk) cd mkdir wspace mkdir hanlon git clone hanlon-mk   5. Create bundle file: This would create a temporary tar file containing all necessary ...

AI - Intelligence is getting Hybrid

Cooperative learning among networks will lead to hybrid intelligence Neural networks will evolve from monolithic to distributed co-operative/competitive models. Coupled with evolving neural-fuzzy and generic fuzzy algorithms — reinforced learning models that are more adaptive to the environment and context (i.e., too noisy and time-varying systems) — these neural networks will evolve into hybrid intelligent systems that integrate different learning and adaptation techniques to overcome individual limitations