Server User Manual

Table Of Contents
38 Developing Applications for J2EE Servers
Starting the configuration or server
Starting the configuration or server
Before any server related actions (server startup, deployment, and so on) are
performed, you must start the management agent with Enterprise|Borland Enterprise
Server Management Agent (use the version of this command that matches the version
of the Borland Enterprise Server AppServer Edition your project is targeted for.). For
the Borland Enterprise Server 6.0, this will start the management hub. For Borland
Enterprise Server 5.2.1, this starts the server.
For both editions, after the management agent has started up, you can launch the
partition by right-clicking the EJB or web module in the project pane and selecting Run
Using Defaults. You can also create a Server run configuration and run the project
using that configuration.
Running the partition in JBuilder will
Create the partition (and configuration for Borland Enterprise Server 6.0), if not
already present. The partition name (and the configuration name for Borland
Enterprise Server 6.0) used in this step is derived from the run configuration used to
start up the server. If you are starting the configuration or server using the default
configuration, the partition name as configured in the application server properties
will be used.
Deploy any resources defined in jndi-definitions.xml (if present) to the root of the
partition directory. For the Borland Enterprise Server AppServer Edition 6.0, this
directory is:
PARTITION_NAME\dars\jbuilder.dar. For Borland Enterprise Server 6.0
only, the
jndi-definitions.xml file is packaged into a .dar file and deployed. For the
Borland Enterprise Server AppServer Edition 5.2.1, it is:
APPSERVER_HOME\var\
servers\SERVER_NAME\partitions\PARTITION_NAME\
.
This file will be created if your project contains an EJB 2.0 module with data
sources/messaging resources defined.
Note This action can be turned off by unchecking the Deploy jndi-definitions.xml option in
the Deployment EJBs Services properties on the Server node of the Project
Properties dialog box.
Copy selected libraries to the partitions lib directory. All archives in this directory
will be added to the partitions classpath when the partition is started up.
The directory on the server for Borland Enterprise Server AppServer Edition 6.0 is
APPSERVER_HOME\var\domains\base\configurations\CONFIGURATION_NAME\mos\
PARTITION_NAME\lib.
For the Borland Enterprise Server AppServer Edition 5.2.1, the
directory is
APPSERVER_HOME\var\servers\SERVER_NAME\partitions\PARTITION_NAME\lib.