0% found this document useful (0 votes)
459 views3 pages

Jpos-Ee Setup Howto - Jpos

The document provides instructions for setting up jPOS-EE, an open source payment processing platform. It explains how to check out the jPOS-EE source code from Subversion, copy or symlink required modules into the modules directory, create a MySQL database and grant permissions, build jPOS-EE using Ant, and start the application by running a Java JAR file or calling Ant run. The setup allows for code reuse across jPOS-EE applications and gets the basic UI system running with MySQL.

Uploaded by

amarsmart4u
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
459 views3 pages

Jpos-Ee Setup Howto - Jpos

The document provides instructions for setting up jPOS-EE, an open source payment processing platform. It explains how to check out the jPOS-EE source code from Subversion, copy or symlink required modules into the modules directory, create a MySQL database and grant permissions, build jPOS-EE using Ant, and start the application by running a Java JAR file or calling Ant run. The setup allows for code reuse across jPOS-EE applications and gets the basic UI system running with MySQL.

Uploaded by

amarsmart4u
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

jPOS.org (http://jpos.

org/blog/)
jPOS rants, propaganda and some useful stuff.

jPOS-EE setup HOWTO


/by apr When you first get to see jPOS-EE (http://code.google.com/p/jposee) it looks like a puzzle, which is great for our business (http://jpos.org/private/jpos-services.pdf) going with a basic jPOS-EE UI setup. The basic idea behind the jPOS-EE build system is that we have modules that get merged at compile time, enabling and fostering code reuse among different jPOS-EE applications. We have some standard modules (you can find those in the modules directory) and optional modules (those are in the opt directory). In order to create your application, you need to either copy or symlink selected modules from the opt directory and you obviously need to add your own modules. This step-by-step instructions use MySQL, you can use other RDBMS but we suggest that you get the system going with MySQL and then change it to use your preferred one. Get jPOS-EE using subversion
s v nc h e c k o u th t t p : / / j p o s e e . g o o g l e c o d e . c o m / s v n / t r u n k /j p o s e e

but you can find here very simple instructions to get you

Copy or symlink the following optional modules into your modules directory:
c o m m o n s e e c o r e 3 e e w e b 3 h i b e r n a t e 3 j e t t y 6 j p u b l i s h 4 s t a t u s s t a t u s _ u i >. . / o p t / c o m m o n s >. . / o p t / e e c o r e 3 >. . / o p t / e e w e b 3 >. . / o p t / h i b e r n a t e 3 >. . / o p t / j e t t y 6 >. . / o p t / j p u b l i s h 4 >. . / o p t / s t a t u s >. . / o p t / s t a t u s _ u i

h i b e r n a t e 3 _ m y s q l>. . / o p t / h i b e r n a t e 3 _ m y s q l

Create the database and grant permissions You can review the file devel.properties and change dbname, dbuser and dbpass or you can pick the defaults for this little exercise, i.e:
C R E A T ED A T A B A S Ej p o s e e ; G R A N TA L LP R I V I L E G E SO Nj p o s e e . *T O' s a ' @ ' l o c a l h o s t ' ;

Build jPOS-EE Call ant (you need a recent version of ant, we are using 1.70 but 1.6.5+ would do Use a little Java or BeanShell script to create your DB and initial user You can use bin/bsh to invoke a Beanshell. If you are on Windows you may want to use cygwin or create yourself a BSH.BAT based on our unix based bin/bsh script and run:
i m p o r tj a v a . u t i l . * ; i m p o r to r g . j p o s . e e . * ; i m p o r to r g . h i b e r n a t e . * ; D Bd b=n e wD B ( ) ; d b . c r e a t e S c h e m a( n u l l ,t r u e ) ; d b . o p e n ( ) ; T r a n s a c t i o nt x=d b . b e g i n T r a n s a c t i o n ( ) ; U s e ru s e r=n e wU s e r ( ) ; / /u s e r = ' a d m i n ' ,p a s s w o r d = ' t e s t ' u s e r . s e t N i c k( " a d m i n " ) ; u s e r . s e t P a s s w o r d( " 6 6 d 4 a a a 5 e a 1 7 7 a c 3 2 c 6 9 9 4 6 d e 3 7 3 1 e c 0 " ) ; u s e r . s e t N a m e( " S y s t e mA d m i n i s t r a t o r " ) ; u s e r . g r a n t( " l o g i n " ) ; u s e r . g r a n t( " o p e r a t o r " ) ; u s e r . g r a n t( " u s e r a d m i n " ) ; u s e r . g r a n t( " s y s c o n f i g " ) ; u s e r . g r a n t( " a d m i n " ) ; d b . s e s s i o n ( ) . s a v e( u s e r ) ; t x . c o m m i t ( ) ; d b . c l o s e ( ) ;

Start jPOS-EE You can either call bin/q2, move to the build directory and call java -jar jposee.jar or call ant run Point your browser to http://localhost:8080/jpoeee (localhost:8080/jposee) This entry was posted in general (http://jpos.org/blog/category/general/) on October 11, 2007 [http://jpos.org/blog/2007/10/jpos-ee-setup-howto/] by apr (http://jpos.org/blog/author/apr/).

About apr jPOS Project founder, works @jposconsulting View all posts by apr (http://jpos.org/blog/author/apr/)

You might also like