Project Tasks : Building an Enterprise Archive (EAR)

Building an Enterprise Archive (EAR)
You can build an enterprise archive file using a BusinessEvents Studio dialog, and also using a command-line utility.
For deployment options see Chapter 8, Deploying a TIBCO BusinessEvents Project in TIBCO BusinessEvents Administration. For testing purposes, you may find it useful to refer to the section Starting a BusinessEvents Engine at the Command Line in that guide.
Building an EAR File in BusinessEvents Studio
When testing project before development, you may want to build the EAR as explained here, and run the project at the command line.
1.
If you see a message asking you to save all project resources, click Yes. It means an unsaved resource editor is open.
2.
3.
Click Apply to save the configuration details.
(To revert to the version already saved, click Revert.)
4.
Click OK to build the archive.
Before BusinessEvents packages the EAR file, it generates the Java code in a temporary directory. After the files are packaged in the EAR file, then the temporary files and directory are deleted.
You can choose to keep the generated Java files, for example to troubleshoot some problem with an EAR file. To do so, uncheck the Delete Temporary Files checkbox, and specify where to store the Java files in the Compilation Directory field.
If you uncheck the Delete Temporary Files checkbox, specify the directory where you want to save the Java files generated during the process of building the EAR file.
Building an EAR File at the Command Line
The buildear utility is useful for automation purposes, for example, in testing environments. For full details on deployment, see TIBCO BusinessEvents Administration.
To build an EAR file from a given BusinessEvents Studio project, navigate to BE_HOME/studio/bin/ and execute a command with the following format at a command prompt.
buildear [-h] [-x] [-o outputEarFile>] -p projectDir
Table 6, BusinessEvents Studio Tools Options, provides detailed information about the options.
The basic command to build EAR files. The buildear executable is located here:
BE_HOME/studio/bin/buildear.exe
-o outputEarFile
Optional. Specifies the filename for the output EAR file. If not specified the EAR file is the same as the final (leaf) directory name in the projectDir path.
-p projectDir