4.7.5. Example of an Environment
The following is an example of an environment. This environment contains two deployed bundles: a loadable 'jdk' bundle and an executable 'helloserver' bundle shown earlier.
/local/
dev/
env/
info
uses/
jdk
helloserver/
bundle
work/
config/
helloserver.properties
logging.properties
logs/
- In the above layout, the 'jdk' file inside the 'uses' directory contains the path of a specific version of the jdk bundle (e.g. /opt/bundles/jdk/1.5.0_12). When this environment is loaded with the use command, this version of the jdk is loaded.
- The 'bundle' file inside the 'helloserver' directory contains the path of a specific version of the helloserver bundle (e.g. /opt/bundles/helloserver/2.0). When this environment is loaded, an alias to helloserver is created to run BundleWorks commands like start and stop on this deployed bundle. The version of the 'helloserver' bundle referenced inside the 'bundle' file actually executes the commands.
- The 'work' directory inside the 'helloserver' directory contains configuration files installed during deployment of this bundle. It also contains a 'logs' directory for holding log files.