Server User Manual

Table Of Contents
Chapter 6: Using JBuilders CORBA tools 49
Setting up JBuilder for CORBA applications
5 The Library For Projects field defines the library location of the ORB tools. To define
the library location, click the ellipsis () button next to the Library For Projects field.
This displays the Select A Different Library dialog box.
The library is necessary for compiling the generated stubs and skeletons and for
executing an application. For VisiBroker, browse to the Borland Enterprise Server
6.0 Client library, then click OK two times.
6 In the Enterprise Setup dialog box, leave the Apply This Configuration To The
Current Project option selected in order to set this ORB configuration for the current
project, as well as the default project.
7 Set the Make This Configurations ORB The Default For The Java VM option to use
the selected ORB as the default ORB for the Java VM.
8 Select the Add A VisiBroker Smart Agent Item To The Tools Menu option to enable
the Smart Agent to run as a JBuilder service during development. This option will be
disabled if the Smart Agent is not necessary.
9 Select a port on which to run the Smart Agent. The default port of 14000 will work on
most systems.
Note When running the project, you can use a JBuilder macro in the VM Parameters field
on the Edit Runtime Configuration dialog box for the application. This macro allows
the project to be used on another machine where the Smart Agent is configured for
a different port. The syntax is:
-Dvbroker.agent.port=($SmartAgentPort)
10 Click OK to save the configuration.
You also need to pass options to the IDL compiler.
To pass options to the IDL compiler when configuring VisiBroker stand-alone,
1 Choose Project|Project Properties|Build|IDL to display the IDL Build page, which will
look similar to this: