4. Spring Sample Project Installation
What It Does
The Spring sample application is the port of the EJB 3 address book demo, minus the HDividedBox feature. As such, the overall description of it is very similar. See EJB 3 demo.
More specifically, this sample illustrates:
- EJB 3 entity beans externalization, via the HibernateExternalizer class, with Gas3 generated ActionScript3 classes.
- Spring bean: The PersonServiceBean class, configured in WEB-INF/conf/applicationContext.xml, uses JpaTemplate and TransactionTemplate Spring classes for persistence operations and is accessible via the GDS SpringServiceFactory factory. See services-config.xml.
- Security settings via the AcegiSecurityService class, see granite-config.xml and WEB-INF/conf/acegiSecurityContext.xml, at two levels; a web-tier security that forbids unauthenticated accesses (see security-constraint in services-config.xml), and a spring-tier security that forbids modification method calls for simple user (@Secured annotations in PersonService).
Requirements, Installation & Deployment
Follow general requirements here and point your browser to http://localhost:8080/graniteds-ejb3/.
Note: you must have setup the security accordingly to instructions in the graniteds/examples/README.txt file.
You should now see the EJB 3 sample application running.
