Uweheuer: Difference between revisions
| Line 2: | Line 2: | ||
* actual Eclipse project 'C:/Uwes/eclipse/workspace/uweheuer_new/' (old 'uweheuer') | * actual Eclipse project 'C:/Uwes/eclipse/workspace/uweheuer_new/' (old 'uweheuer') | ||
* s. <PROJECT_DIR>/doc/uweheuer.vsd | * s. <PROJECT_DIR>/doc/uweheuer.vsd | ||
** Build process | |||
* s. <PROJECT_DIR>/doc/uweheuer.uml | * s. <PROJECT_DIR>/doc/uweheuer.uml | ||
* s. in eclipse project 'uweheuer_new' sub folder 'vpproject/diagrams' (Visual Paradigm Plus) | * s. in eclipse project 'uweheuer_new' sub folder 'vpproject/diagrams' (Visual Paradigm Plus) | ||
** Client Server Communication | |||
** Synchronization | |||
==Installation== | ==Installation== | ||
Revision as of 19:13, 27 December 2013
Documentation
- actual Eclipse project 'C:/Uwes/eclipse/workspace/uweheuer_new/' (old 'uweheuer')
- s. <PROJECT_DIR>/doc/uweheuer.vsd
- Build process
- s. <PROJECT_DIR>/doc/uweheuer.uml
- s. in eclipse project 'uweheuer_new' sub folder 'vpproject/diagrams' (Visual Paradigm Plus)
- Client Server Communication
- Synchronization
Installation
Create and fill database mysql505 per mysql tools. Copy war-file or directory tree to the webapp directory of the application server. Adjust Apache or Tomcat for proxying to JBoss (HomePCNew#Apache)
Persistence
- DB configuration see <PROJECT_DIR>\src\WEB-INF\classes\META-INF\persistence.xml and JBoss configuration, which defines the driver and the database connection string, which includes the DB name
- EntityManagementUtil creates two EntityManagerFactories, one for bookmarks (definition see persistence.xml) and one for uweswiki (definition see persistence.xml)
Synchronization
- see sequence diagram 'Synchronization'
- init configuration in web.xml
Releases
- Migration from Axis 1 to Axis 2
- Migration from Hibernate to JPA implemented by Hibernate
- Migration from Runtime JBoss 4.2 to JBoss 7.1
Operation
Generierung and Deployment
Die Generierung erfolgt über Ant (s. build.xml).
Shell
ant [deploy_laptop_jboss7|deploy_home_jboss|deploy_rootserver]
Eclipse
Project -> Build Project ruft das target deploy_laptop auf.
Update Applet
- press x (clear class loader cache) in java console
- press 'Bookmark Applets' in menu
Crypt Data Handling
Die Generierung eines leeren Data-Files namens 'data.crypt' erfolgt über das Kommando:
C:\Uwes\eclipse\workspace\uweheuer\build\class>java server.CreateCryptDataFile.
Die Datei muss in das Verzeichnis <TOMCAT_HOME>/webapps/uweheuer/data kopiert werden z.B. mit
C:\Uwes\eclipse\workspace\uweheuer\build\class>copy data.crypt \Uwes\xampp\tomcat\webapps\uweheuer\data
Bookmarks
Tree Versioning
- bookmark tree version is set to latest update version
Contacts
Logging and Debuging
Logging
Logging on the server side uses log4j. Configuration is done in the central JBoss log4j configuration jboss-log4j.xml and for JBoss 7 here. Application specific configuration with the war file is probably possible but still an open issue (s. Google lookup). The coding uses LogUtil.java an the static method. It creates a logger named uweheuer which is used through out the code. The output and level are defined in the Log4j configuration files.
Logging on the client side is done via the printDebug() method, which goes at least to the java console.
Eclipse Debugging
Debug Configurations
- uweheuer_applet_laptop
- uweheuer_laptop