2
Installing JBuilder and WebLogic Server
When you install JBuilder 6 Enterprise, be sure to opt for “Full
Install.” This will install JBuilder 6 as well as Borland Enterprise
Server, AppServer Edition (the AppServer Edition). The
AppServer Edition must be installed and configured in order to
develop EJBs even if the target application server is WebLogic.
WebLogic must be installed on the same machine as JBuilder.
For more information on installation, refer to the relevant
installation guide. Note that JBuilder 6 does not include any
software or licenses for WebLogic.
Configuring JBuilder for WebLogic
Server
To enable EJB development with JBuilder, the Enterprise Setup
and Default Project Properties need to be configured. Select
Enterprise Setup (Tools | Enterprise Setup)
Figure 1: Enterprise Setup dialog
The Enterprise Setup dialog enables configuration of JBuilder
for CORBA ® application servers and database drivers. For the
purposes of this paper, the application server setup that will be
completed will automatically complete the CORBA setup for
Borland VisiBroker, ® the leading CORBA solution on the
market. The EJB 2.0 specification mandates the use of
RMI/IIOP for inter-server application interoperability. IIOP
is the communications protocol of CORBA; hence, the
CORBA capabilities of JBuilder often prove essential even to
an EJB developer.
EJB configuration
Select the Application Server tab at the top of the Enterprise
Setup dialog box. On the Borland Enterprise Server 5.0 tab,
enter the installation directory of the AppServer Edition and
ensure the “enable integration” check box is selected. This will
add the AppServer Edition JARs to the JBuilder classpath and
enable the EJB wizards and utilities once JBuilder is restarted.
Complete the WebLogic 6.x tab by entering both the WebLogic
installation directory (default is C:/bea/wlserver6.1), BEA home
directory (default is C:/bea), system password, domain name, and
server name. The compiler for ejbc usage can also be specified if
there is a preferred external compiler to compile the stub files.
Figure 2: WebLogic 6.1 — Enterprise Setup dialog
JBuilder ™
3
Restart JBuilder to enable the integration. Once restarted, check
that the configuration has been successful by creating a new
project (File | New Project), opening the Object Gallery (File |
New), and checking that the EJB wizards are enabled on the
Enterprise tab.
Figure 3: EJB Wizards — Object Gallery
Additionally, this EJB configuration will have created three
new libraries (Tools | Configure Libraries) called Borland
Enterprise Server 5.0 Client, WebLogic 6.x Client, and
WebLogic 6.x Deploy.
Default Project Properties
Default project settings are stored in a project called Default.jpr,
located in the /.jbuilder6 subdirectory of the home directory.
This Default.jpr file is used as a template whenever a new
project is created. JBuilder 6 offers a number of properties to
configure projects, but for the purposes of this document, only
the properties that directly affect WebLogic integration will
be edited.
There are known problems with the ejbc compiler when the
project is created in a directory that contains spaces. Default
Project Properties allow a default directory structure to be
defined that does not contain spaces. Open the Default Project
Properties dialog box (Project | Default Project Properties).
On the Paths tab of Default Project Properties, specify a default
working directory (e.g. C:\JB6Projects), output path (e.g.
C:\JB6Projects\classes), backup path (e.g. C:\JB6Projects\bck),
source default path (e.g. C:\JB6Projects\src), source test path
(e.g C:\JB6Projects\test), and documentation path (e.g.
C:\JB6Projects\docs).
Figure 4: Path Configuration — Default Project Properties
Next, select the Servers tab of the Default Project Properties
dialog. Select WebLogic Application Server 6.x as the default
application server for EJB development. The Servers tab also
allows the Web server to be selected. JBuilder provides Web
server plug-ins for WebLogic 6.x, WebLogic 5.1, Tomcat 3.2,
and Tomcat 4.0. Select the “Application server is Web server”
check box to use WebLogic 6.1.