working xml and javaconfig examples for a regular java app and web applications