Menu

Tree [4071a3] master /
 History

HTTPS access


File Date Author Commit
 src 2013-03-03 Bin Yu Bin Yu [4071a3] update libraries
 README.md 2013-03-03 Bin Yu Bin Yu [4071a3] update libraries
 pom.xml 2013-03-03 Bin Yu Bin Yu [4071a3] update libraries

Read Me

lightj

set of light java API for workflow, DAL, config, locking, scheduler and many more.

Setup

  1. Run mvn clean install (default to use in memory db hsql)
    [optional]
  2. Install mysql database locally, create a database "test"
  3. Run /src/main/resources/scripts/mysql_create.sql to create all tables
  4. Change org.lightj.example.dal.SampleDatabaseEnum to point to the right db with username and password
  5. Run mvn clean install (now with mysql supported)

Top Modules

  1. session: light weight workflow session, bean defined workflow, spring friendly, see /src/test/java/org/lightj/session/TestFlowSession.java for example

  2. schedule: quartz based scheduler module, see /src/test/java/org/lightj/schedule/TestScheduler.java for example

  3. config: application config management, allow base config, environment and host override, annontation (@XmlConfig) link xml config to java constant for easy reference, runtime config change, see /src/test/java/org/lightj/config/TestConfigManager.java for example

  4. jms: activemq jms user friendly APIs

  5. task: task running framework, for sync, async, asyncpoll task execution

Supporting Modules

  1. DAL: super light weight OR mapping framework

  2. clustering: grizzly (glassfish) based clsutering capability

  3. concurrent: priority round-robin threadpool, allow sharing one threadpool for preemptive, round-robin, and low priority thread execution

  4. locking: global semaphor based on rdbms row locking

Tests and Sample Codes

All unit tests are in /src/test
Sample implementation in
1. session: org.lightj.example.session (sample flow)
2. schedule: org.lightj.example.schedule
3. dal: org.lightj.example.dal
4. task: org.lightj.example.task

Contact

biyu@ebay