JBoss.orgCommunity Documentation

Chapter 2. Manage JBoss AS from JBoss Developer Studio

2.1. How to Manage the JBoss AS Bundled in JBDS
2.1.1. Starting JBoss Server
2.1.2. Stopping JBoss Server
2.1.3. Server Container Preferences
2.2. How to Use Your Own JBoss AS Instance with JBDS
2.2.1. JBoss AS Installation
2.2.2. Adding and Configuring JBoss Server

In this chapter we'll focus more on how to operate the JBoss AS from JBoss Developer Studio.

JBoss Developer Studio 4.0.0.GA ships with JBoss EAP 5.1. When you followed the default installation of JBoss Developer Studio, you should already have a JBoss EAP 5.1 Server installed and defined. To run JBoss AS you need you will need to have JDK 6 installed.

Note:

You can leave JDK 1.5 configuration for JBDS and set JDK 6 as JRE only for JBoss EAP Server. For this you need to select WindowsPreferences, and then click ServerRuntime Environments. On the opened preference page you should select JBoss EAP Runtime and clicking the Edit button. In Edit Server Runtime Environment dialog you can configure Jave Runtime Environment by clicking the JRE button.

This section covers the basics of working with the JBoss Server supported directly by JBDS via bundled AS plug-in. The server points to the JBoss Enterprise Application Platform 5.1 Runtime shipped with JBDS.


To read more about AS plug-in, refer to the Server Manager guide.

Although JBoss Developer Studio works closely with JBoss EAP 5 we do not ultimately tie you to any particular server for deployment. There are some servers that Studio supports directly (via the bundled Eclipse WTP plug-ins). In this section we discuss how to manage self-installed JBoss AS. Suppose you want to deploy the application to JBoss 4.2.3 server. First of all you need to install it.

It does not matter where on your system you install JBoss server.

Note:

The installation of JBoss server into a directory that has a name containing spaces provokes problems in some situations with Sun-based VMs. Try to avoid using installation folders that contain spaces in their names.

There is no requirement for root access to run JBoss Server on UNIX/Linux systems because none of the default ports are within the 0-1023 privileged port range.

  • After you have the binary archive you want to install, use the JDK jar tool (or any other ZIP extraction tool) to extract the jboss-4.2.3.GA.zip archive contents into a location of your choice. The jboss-4.2.3.GA.tgz archive is a gzipped tar file that requires a gnutar compatible tar which can handle the long pathnames in the archive. The extraction process will create a jboss-4.2.3.GA directory.