Useful tools for creating enterprise applications
Distributed application development is a feature of JBuilder Enterprise.
The Enterprise tab of the Object Gallery
Distributed application tools on the Tools menu
CORBA Express
Context menu tools for distributed application development
Using Enterprise tools to create a CORBA application
When you develop distributed applications with JBuilder and VisiBroker, you must first identify the objects required by the application. You will then usually follow these steps:
- Create a new project by selecting File|New Project, or add this functionality to an existing project.
- Use Tools|Setup to enable JBuilder to "see" your ORB.
- Select your IDL compiler by selecting Project|Project Properties, then selecting the compiler on the Build tab.
- Write a specification for each object using the IDL wizard to generate the Interface Definition Language (IDL) file. To run the IDL wizard, select File|New, then select Sample IDL from the Enterprise tab of the Object Gallery. Right-click the IDL file and select properties to set compiler options and conditional defines.
-
Use the IDL compiler to generate the client stub code and server POA servant code. To activate the IDL compiler, right-click the IDL file, and select Make. This calls the
idl2java
compiler, and produces client-side stubs and server-side classes.
-
Write the client program code. To do this, first create a new application by selecting File|New, then selecting Application from the New tab of the Object Gallery. Select Wizards|Use CORBA Interface to generate the client implementation.
- Connect the factory interface to the ORB by adding an
OrbConnect
object from the CORBAExpress tab of the component palette to the frame file. Set its initialize
property to true. Select the interface defined in the previous step, and set its ORBConnect
property to the instantiated OrbConnect
object.
- Bind the wrapper class at runtime. An example of this is found in the "Exploring CORBA applications in JBuilder" topic "Binding the wrapper class at runtime".
-
Write the server object code. To do this, select File|New, then select CORBA Server Application from the Enterprise tab of the Object Gallery.
-
Compile the client and server code by selecting Project|Make Project.
- If using VisiBroker, start the Smart Agent by selecting Tools|VisiBroker Smart Agent.
-
Start the server by right-clicking the server implementation and selecting Run.
-
Run the client program by selecting the file generated by the Application wizard and selecting Run.
- Deploy the application by using the JBuilder Deployment wizard.