Giter Club home page Giter Club logo

jentrata-msh's Introduction

Jentrata - Message Handler Service

Join the chat at https://gitter.im/jentrata/jentrata-msh

Jentrata MSH is based on Hermes Messaging Gateway developed by CECID, The University of Hong Kong. The goal of Jentrata is build on the orignial work developed by CECID as well as build a community to continue it's development.

See jentrata.org for complete details on the project

Current Build Status

Build Status

Building/Contributing

GitHub Setup

  1. Fork Repo into your github account

  2. Run on your local machine:

     git clone [email protected]:<github-username>/jentrata-msh.git
     cd jentrata-msh.git
     git remote add upstream [email protected]:jentrata/jentrata-msh.git
    

You can now pull/rebase from the upstream repository

git pull upstream master

And push now push these changes to your forked repository

git push

Also you should run the following

git config --global user.name "Your Name"
git config --global user.email <your_email>

How to Build Jentrata from source

Requires maven 3.0+ and Java 6+

git clone [email protected]:<github-username>/jentrata-msh.git
cd jentrata-msh
mvn clean install

This will create jentrata-msh-tomcat.tar.gz in jentrata-msh/Dist/target/ as well as an uncompressed version

How to get Jentrata Running on tomcat using PostgreSQL on unix (incuding Mac) systems

Install and configure Tomcat

  1. download and install tomcat 6.x or 7.x

  2. untar jentrata-msh-tomcat.tar.gz

  3. set JENTRATA_HOME and TOMCAT_HOME environment variables, for example

     export JENTRATA_HOME=/dev/jentrata-msh-tomcat
     export TOMCAT_HOME=/dev/tomcat
    
  4. create a symlink to the $JENTRATA_HOME/webapps/corvus in the $TOMCAT_HOME/webapps directory to

     ln -s $JENTRATA_HOME/webapps/corvus $TOMCAT_HOME/webapps/corvus
    
  5. set JAVA_OPTS environment variable as follows

     export JAVA_OPTS="$JAVA_OPTS -Dcorvus.home=$JENTRATA_HOME"
    
  6. add the following roles and user to $TOMCAT_HOME/conf/tomcat-users.xml

     <role rolename="admin"/>
     <role rolename="corvus"/>
     <user username="corvus" password="corvus" roles="tomcat,admin,corvus"/>
    

Install and configure database

PostgreSQL

  1. install postgresql 8.3+ - During the install, for the default user 'postgres', make the password 'postgres' (ignore quotes). For Mac OSX you should read the link - memory configuration info for OSX

  2. copy the database creation scripts to your PostgreSQL install

     copy JENTRATA_HOME/sql/ebms.sql to the PostgreSQL bin directory
     copy JENTRATA_HOME/sql/as2.sql to the PostgreSQL bin directory
    
  3. log in as the PostgreSQL user 'postgres' created during the install

  4. set the password for the default user 'postgres' as a temporary environment variable

     export PGPASSWORD="postgres"
    
  5. cd to the PostgreSQL bin directory

  6. create a postgres user corvus with default password corvus

     ./createuser -s -d -P corvus
    
  7. create the ebms and as2 databases

     ./createdb -O corvus ebms
     ./createdb -O corvus as2
    
  8. Run the db create tables scripts

     ./psql -f ebms.sql ebms
     ./psql -f as2.sql as2
    
  9. Logout as user postgres

MySQL

  1. Install MySQL for your OS (http://mysql.com)

  2. Create your databases

     mysql -e "CREATE DATABASE ebms;"
     mysql -e "CREATE DATABASE as2;"
    
  3. Create users/permissions to new databases

     mysql -e "GRANT ALL ON ebms.* TO 'ebms'@'localhost' IDENTIFIED BY 'ebms';"
     mysql -e "GRANT ALL ON as2.* TO 'as2'@'localhost' IDENTIFIED BY 'as2';"
    
  4. Import DB Schema

     mysql ebms < JENTRATA_HOME/sql/mysql_ebms.sql
     mysql as2 < JENTRATA_HOME/sql/mysql_as2.sql
    
  5. Configure Jentrata to use MySQL

    You will need to modify the some parameters of the doafactory component in the 'plugins' directory for each plugin of Jentrata that you wish to use with MySQL.

     JENTRATA_HOME/plugins/hk.hku.cecid.ebms/conf/hk/hku/cecid/ebms/spa/conf/ebms.module.xml
     JENTRATA_HOME/plugins/hk.hku.cecid.edi.as2/conf/hk/hku/cecid/edi/as2/conf/as2.module.core.xml
    

    Look for the following Component:

     <component id="daofactory" name="System DAO Factory">
    

    Find the following parameters and change them as follows:

     <parameter name="driver" value="com.mysql.jdbc.Driver"/>
     <parameter name="url" value="jdbc:mysql://127.0.0.1:3306/ebms"/>
    

Run Jentrata

  1. Start tomcat and browse to http://localhost:8080/jentrata/admin/home. You will need to login using the username and password you set in the tomcat-users.xml corvus/corus by default

  2. If Jentrata doesn't start correctly you can check the various log files under $TOMCAT_HOME/logs/ or $JENTRATA_HOME/logs for errors

jentrata-msh's People

Contributors

aaronwalker avatar cavycorp avatar mhanda avatar arranubels avatar edwinvds avatar rinis-dev avatar gitter-badger avatar

Watchers

James Cloos avatar  avatar

Forkers

johan-basenet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.