This chapter provides you with information about the
build (Build)
packaging (XMA Pack)
deploy (XMA Deploy)
debugging (XMA Debug)
of XMA-Webapplications.
Due to the special requirements of an XMA-Client some additinal elements are necessary on top of a standard Wep Application Archive. That will be described in the chapter XMA Webapplication (XMA Webapplication) .
A detailed description about application descriptors required by the xma-client can be found inApplication and Plugin Descriptors (Application and Plugin Descriptors) . This section will introduce you into application and plugin descriptors.
There are also some available Standard-Plugins. A Documentation about these Plugins can be found here: Standard Plugins (XMA Plugins).
This is the simplified designd of an XMA-Build. In principle the XMA Build is split into 3 parts.
Compile is the evant where .java files changed into .class files. In an XMA Application the Compile Section works a little more.
Pack is a Section in which different Components and Files where pack in a server-side application.war file
Deploy can be optional. You can deploy and a war file in different ways on different servers.
These Targets are the pre-stage to become a correct and clean compile. All Variables and external properties fiels are prepared.
INPUT: All .java files from the source directory
OUTPUT: The compiled .class files are copied into the class directory
There are two different Common_jar files: First the CommonClient.jar and second the CommonServer.jar
For each Component you add to your application, this target will call the target "jar"
The WebApp Target has to calling "make_hash_for_jar" even the you want to sign a file.
Two files: ComponentServer.jar and ComponentClient.jar with a Hashcode. Now they can be pack into the application.war file.
Now the file will have a Hashcode.
At this time the externalPlug-Ins (XMA Plugins) where delivered.
The Common_Jar target is very importent for you. If you are using a database or any .gif and so on, you have to edit this target in the build.xml file.
at/spardat/xma/security/*.properties == must have set
at/spardat/xma/samplespar/data/** == this is the "data" directory so the samplespar reference projekt can use a database
at/spardat/xma/security/*.properties == must have set
at/spardat/xma/samplespar/shared/** == this is the "shared" directory so the client can use the images which are in this folder
The WebApp Target
create a new directory named "build_war" and copied your application template (=the folder who has the same name like your application).Then different files where copied into this build_war directory:
all server component-jar files
all required runtime libraries for the server
all client components into the components directory, which is used to download from clients
all runtime libaries required by the client
For detailed informations about the Web Application take a look here. (XMA Webapplication)
The Input only can be a application.war file
This only can be used while Tomcat Server is still running and the application was already deployed.We are using the Tomcat Manager to be able to provide this.
If Tomcat isn´t running use this targets.
This Target copied the war file in the specified Weblogic folder which deploy the file while running.
The fastest procedure to become a running application. This will Compile, Pack and Deploy the application on a running Tomcat Server
The "Little Helpers" are realy self-explanatory.