Info |
---|
Help is available by sending an email to csf-support@mit.edu |
Panel | ||||||
---|---|---|---|---|---|---|
Quick Links to:
|
Note |
---|
The SVN repository for the jar template has moved to svn+ssh://svn.mit.edu/es-common-services-framework/es-project-template/jar-template/trunk. |
Panel | ||||||
---|---|---|---|---|---|---|
OVERVIEWThis document contain the instruction on how to install and configure your project's JAR component using the jar-template. The screen shots are taken from the Eclipse Java EE IDE for Web Developers - Version: Indigo Service Release 2 IDE. If you are using a different version of Eclipse Java EE or a different variant of Eclipse, the screen shots may differ. It is important to keep in mind that the following instructions should be viewed as to what has to be done rather than how to do it. There are 3 sections to this document. These sections are:
It should take you approximately 10 - 20 minutes to get your jar component created and customized. |
Panel | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Section 1: Creating the project jar component using the jar-template
Creating the project jar component using the jar-template is now complete. |
Panel | |||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Section 2: Customizing the project JARindent | | 1 | 1 {color:red}|||||||||||||||||||||||||||||||||||||||||
indent | 2 | 2 | |||||||||||||||||||||||||||||||||||||||||
!customizeJar002.jpg!
| |||||||||||||||||||||||||||||||||||||||||||
indent | 2 | 2 | !customizeJar004.jpg!
Code Block |
---|
<bean id="csfProjectNameMappingResources" class="org.springframework.beans.factory.config.ListFactoryBean" parent="commonHibernateMappingResources">
<bean id="hibernateCsfProjectNameMappingResources" class="org.springframework.beans.factory.config.ListFactoryBean" parent="csfProjectNameMappingResources">
|
Code Block |
---|
<bean id="csfAttMappingResources" class="org.springframework.beans.factory.config.ListFactoryBean" parent="commonHibernateMappingResources">
<bean id="hibernateCsfAttMappingResources" class="org.springframework.beans.factory.config.ListFactoryBean" parent="csfAttMappingResources">
|
When you are satisifed with the changes, save and close the file.Open the applicationContext-csf-projectName.xml for editing and change the following lines substituting your short project acronym for projectName.
There are 3 occurances of projectNamethat have to be changed.
Code Block |
---|
<import resource="classpath*:applicationContext-csf-projectName-component-scan.xml" />
<import resource="classpath*:applicationContext-csf-projectName-config.xml" />
<import resource="classpath*:applicationContext-csf-projectName-security-spring.xml" />
|
When you have made all the changes, the lines you have changed should look similar to the following:
Code Block |
---|
<import resource="classpath*:applicationContext-csf-att-component-scan.xml" />
<import resource="classpath*:applicationContext-csf-att-config.xml" />
<import resource="classpath*:applicationContext-csf-att-security-spring.xml" />
|
In the above example, projectName was replaced with the short project acronym att.
When you are
satisfied with the changes, save and close the file.
From the Project Explorer View, rename each of the following files, substituting your short project acronym for projectName.
There are 4 files that have to be renamed.
Code Block |
---|
applicationContext-csf-projectName.xml
applicationContext-csf-projectName-component-scan.xml
applicationContext-csf-projectName-config.xml
applicationContext-csf-projectName-security.xml
|
When you have made all the changes, the file names that you have changed should look similar to the following:
Code Block |
---|
applicationContext-csf-att.xml
applicationContext-csf-att-component-scan.xml
applicationContext-csf-att-config.xml
applicationContext-csf-att-security.xml
|
In the above example, projectName was replaced with the short project acronym att.
Your Project Explorer View should look similar to the following:
When you are satisfied with the changes, save and close the file.
From the Project Explorer View, expand src/test/resources. Open the applicationContext-csf-unit-tests-default.xml for editing and change the following lines substituting your short project acronym for projectName.
There are 2 occurances of projectNamethat have to be changed.
Code Block |
---|
<import resource="classpath*:applicationContext-csf-projectName.xml" />
<import resource="classpath*:applicationContext-csf-projectName-config-test.xml" />
|
When you have made all the changes, the lines you have changed should look similar to the following:
Code Block |
---|
<import resource="classpath*:applicationContext-csf-att.xml" />
<import resource="classpath*:applicationContext-csf-att-config-test.xml" />
|
When you are satisfied with the changes, save and close the file.
From the Project Explorer View, expand src/test/resources. Open the applicationContext-csf-projectName-config-test.xml for editing and change the following lines substituting your short project acronym for projectName.
There are 2 occurances of projectNamethat have to be changed.
Code Block |
---|
<value>classpath:csf-projectName-test.properties</value>
<value>classpath:csf-projectName-test.properties</value>
|
When you have made all the changes, the lines you have changed should look similar to the following:
Code Block | ||
---|---|---|
<value>classpath:csf-att-test.properties</value>
<value>classpath:csf-att-test.properties</value> | ||
indent | ||
2 | 2 |
!customizeJar006.jpg!
|
When you are
satisifedsatisfied with the changes, save and close the file.
From the Project Explorer View, rename each of the following files, substituting your short project acronym for projectName.
There are 2 files that have to be renamed.
Code Block |
---|
applicationContext-csf-projectName-config-test.xml
csf-projectName-test.properties
|
When you have made all the changes, the file names that you have changed should look similar to the following:
Code Block |
---|
applicationContext-csf-att-config-test.xml csf-att-test.properties |
Customizing the project JAR is now complete.
Panel | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Section 3: Customizing the project JAR pom.xmlindent | 1 | 1 | {color:red}|||||||||
indent | 2 | 2 | !jarPomXml002.jpg!
Panel | ||||||
---|---|---|---|---|---|---|
Section 4: One final thing to doThere may have been changes made to the JAR template that are not reflected in the above documentation. One final thing to do is now complete. |