Deploy SCAM, and restart JBoss if needed (see Part II).
Build a WAR-file for your project, the command-chain.xml must be located in WEB-INF/resources. The class files can either be located in the WAR-file or in a separate JAR-file in the JBoss classpath. JBoss does not recognize WAR-files, this file must contained in a EAR-file along with application.xml.
Example 10.18. Deploy, application.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
<application>
<display-name>SCAM Portfolio</display-name>
<module>
<web>
<web-uri>scamPortfolio.war</web-uri>
<context-root>portfolio</context-root>
</web>
</module>
</application>
Example 10.19. Deploy, file structure (partial)
$JBOSS_HOME/server/<configuration name>
|
+- lib
| |
| +- <application>.jar
| +- scamController.jar
| +- scamDrutten.jar
| +- scamEditor.jar
| +- scamTaglib.jar
| +- <3pp jar-files>
|
+- deploy
|
+- <optional path>
|
+- scamRepository.jar
|
+- <application>.ear
|
+- META-INF
| |
| +- application.xml
|
+- <application>.war
|
+- pics
| |
| +- <graphic files>
|
+- WEB-INF
|
+- web.xml
+- jboss-web.xml
|
+- resources
| |
| +- command-chain.xml
|
+- jsp
| |
| +- <JSP files>
|
+- tld
|
+- <TLD files>