Project

General

Profile

How to Spring » History » Revision 3

Revision 2 (Henning Blohm, 05.09.2012 17:31) → Revision 3/62 (Henning Blohm, 05.09.2012 17:45)

h1. How to Use the Spring Framework in Z2 

 There is actually nothing sooo particular about using Spring in Z2. But when knowing how Z2 modularity works, there is much to gain by spending a few minutes reading this How-To. However it is required that you are familiar with the Spring framework as such. 

 h2. Pre-Requisites 

 In order to have the Spring libraries available you need to add the repository _z2-addons.spring_ to your environment. Some samples, for example the z2-samples.jta-spring sample explained in [[How to TransactionManager]] does so. To use the master branch version, add a *springRepository.properties* component descriptor to your *environment* module saying 

 <pre> 
 com.zfabrik.systemStates.participation=com.zfabrik.boot.main/sysrepo_up 

 # git stored component repository 
 com.zfabrik.component.type=com.zfabrik.gitcr 

 # true <=> optional repository. If gitcr.uri is invalid, then this gitcr will be ignore silently   
 gitcr.optional=true 

 # this can also point to a remote repository like  
 # ssh://myserver/some/git/repo 
 gitcr.uri=http://git.z2-environment.net/z2-addons.spring 

 # the git branch to use (e.g. 'master') 
 gitcr.branch=master 
 </pre> 

 For your own system, you may need to adapt the repository URL and the branch selection accordingly. 

 If that sounds like meaningless gibberish to you - sorry please consult the documentation at http://www.z2-environment.eu/v20doc and go back to [[First_steps_with_z2]]. 

 h2. Using Spring in Web Applications 

 h2. Using Spring in Re-use Modules 

 h2. Using Spring's Aspect/J Configuration