#Auto-B-Day
prototypische Entwicklung eines Systems zum automatischen Versand von Geburtstagsmails
#Configure MasterPassword
- Open
SystemChiperPassword.properties
. - Enter a
8
sign password. - Save and close the file.
#Configure SystemAccount
- Browse to
Auto-B-Day/Auto-B-Day-ejb/src/java
. - Rename
SystemMailAccountTemplate.properties
toSystemMailAccount.properties
. - Enter your credentials into the file.
- If your working with git, add the
SystemMailAccount.properties
to the ignore-file.
#Configure SystemMail
- Browse to
Auto-B-Day/Auto-B-Day-ejb/src/java
. - Just change the values in
SystemMail.properties
as you like, e.g. Changing the port.
#How to Deploy Auto-B-Day
- Install an Application Server, e.g. Glassfish.
- Set up Glassfish on Mac: http://weblogs.java.net/blog/pelegri/archive/2005/11/running_glassfi.html
- Set up Glassfish on Win: http://www.torsten-horn.de/techdocs/jee-sunglassfish.htm
- Set PATH on Mac: http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/
- Configure the Mailsystem and the MasterPassword.
- Browse to
Auto-B-Day
-Folder. - Run the build-script in the Auto-B-Day-Folder with
ant
.
- Note: if you want to test, just type
ant test
orant test-integration
andant clear
to clear the Project-Folder.
- Check out the dist-Folder and copy the
Auto-B-Day.ear
-File into your application server autodeploy-folder. - Set up the Database take care to name the db
autobday
. - Put a MySQL Connector into the lib-folder of the Glassfish (/glassfish/domains/domain1/lib).
- Start the Server.
- Go to the admin-console of the server ( http://localhost:4848 )
- Set up a
JDBC-Connectionpool
with nameAutoBDayPool
for your database and aJDBC-Ressource
with the namejdbc/autobday
. - Access Auto-B-Day with this URL
http://localhost:8080/Auto-B-Day-war/