====== AppFuse as backend for Spring-RCP Standalone ======
===== Modify Maven configuration =====
Add the following dependency in the pom.xml:
com.company.app
app-core
${app.version}
The rebuild the project definition using ''mvn eclipse:eclipse''.
===== Modify Context configuration =====
Add the following two bean definitions to the file ''richclient-application-context.xml'':
classpath:jdbc.properties
classpath:mail.properties
classpath:remoting.properties
===== Modify security configuration =====
Add the following bean definitions to the security.xml:
===== Add property files =====
Copy the following two property files from the AppFuse project to ''src/main/resources''
* src/test/resources/jdbc.properties
* src/test/resources/mail.properties
===== Using AppFuse in the client =====
Add two of the AppFuse configuration files to your RCP runtime configuration:
String appfuseDaoContextPath = "applicationContext-dao.xml";
String appfuseServiceContextPath = "applicationContext-service.xml";
String zcrmApplicationContextPath = "applicationContext.xml";
try {
new ApplicationLauncher(startupContextPath, new String[] {
[...]
appfuseDaoContextPath,
appfuseServiceContextPath,
zcrmApplicationContextPath
});
} catch (RuntimeException e) {
logger.error("RuntimeException during startup", e);
}