Menu

Tree [r4] /
 History

HTTPS access


File Date Author Commit
 config 2006-09-12 jotobjects [r1] initial version of bodega
 docs 2006-10-03 jotobjects [r4] descritption
 lib 2006-09-12 jotobjects [r1] initial version of bodega
 src 2006-09-12 jotobjects [r1] initial version of bodega
 LICENSE 2006-09-13 jotobjects [r2] clarification
 README 2006-09-12 jotobjects [r1] initial version of bodega
 build.properties 2006-09-12 jotobjects [r1] initial version of bodega
 build.xml 2006-09-12 jotobjects [r1] initial version of bodega
 logging.properties 2006-09-12 jotobjects [r1] initial version of bodega

Read Me

README - SitePen JSON Persistence

***** ENVIRONMENT *****

Requires Java 1.5.x and Ant 1.6.5.

The Hibernate 3.1 jar is included in the lib directory.


***** BUILD *****

Type "ant" to clean and build this project. The build script
depends on ../json and builds that project first if necessary
and copies json.jar to the "dist" directory.  The files in the
"dist" directory after the build are the distribution jar files.

Type "ant -projecthelp" for a list of ant tasks.


***** CONFIG *****

The test driver utilizes MySql by default or can be switched to an
in-memory Hypersonic database (included) or to any other database
with JDBC drivers (see config/testHibernateCFG.xml). The
following sql statements configure a test database for MySql.

create database testbodega;
create user testbodega;
grant all privileges on testbodega.* TO testbodega;


***** SCHEDULER *****

If the system property "bodega.scheduler.config" is defined, a
Quartz schedler is started for executing deferred commands.
See config/scheduler/testQuartzProperties for properties.
The following sql statements configure the scheduler for MySql:

create database testbodegaquartz;
grant all privileges on testbodegaquartz.* TO testbodega;
use testbodegaquartz;
source config/scheduler/quartz_tables_mysql_innodb.sql


***** TEST *****

The test programs use JSON objects in the "testcase.properties"
file. The ant tasks that invoke the test driver are:

ant TestSuite01
ant TestSuite02
ant TestSuite03
ant TestSuite04

There is a test client to send requests to a web server. The default
URL is listed in build.properties and can be overridden with the
-Durl property. Examples:

ant TestHttpClient

ant TestHttpClient -Durl=http://myhost/path


***** LOGGING *****

Fine grained logging can be set by editing the parameters in the
logging.properties file. Set the per-package logging "level" to
SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST according
to the amount detail desired.

The ant -verbose and -debug flags also provide additional logging.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.