VisiBroker IDL Properties
The VisiBroker IDL Properties dialog compiles remote interfaces defined in the Interface Definition Language (IDL). It generates Java interface definitions and Java client stubs and server skeletons. This allows a Java client to transparently invoke an IDL object that resides on a remote server or allows a Java server to define objects that can be transparently invoked from IDL clients.
The VisiBroker IDL Properties dialog can generate Java source code from
IDL (Interface Definition Language) files.
When you run the CORBA Settings Wizard on an IDL file, a Java-based preprocessor compiles an IDL source file and creates a directory structure containing the Java mappings for the IDL declarations. Typically, one IDL file will be mapped to many Java files that marshall/unmarshall Java data types to CORBA types and provide IIOP messaging. IDL file names must end with the .idl extension.
For more information, see the VisiBroker documentation in the JBuilder/doc/visigenics
directory of your JBuilder installation or the sample projects in the JBuilder/samples/visibroker/samples
directory. Selecting OK calls the VisiBroker tool idl2java
. VisiBroker for Java conforms with the OMG IDL/Java Language Mapping Specification.
To open the VisiBroker IDL Properties dialog, right-click on an IDL file in the Navigation pane, and select IDL Properties
To learn more about distributing objects in JBuilder, see Developing distributed applications.
Process This IDL File
When this option is selected, you can set compiler options, compile the selected files, add the compiled files and/or packages to the current project, and view compiler output.
Generated Code Options
Strict Portable Code Generation
When this option is selected, portable stubs will be generated. This means that any VisiBroker-specific code will not be generated. If unselected, the portable stubs will not be generated.
Generate Example Implementation
When this option is selected, example classes will be generated. If unchecked, the example classes will be suppressed.
Generate Tie Bindings
When this option is selected, _tie classes will be generated. If unchecked, the generation of _tie classes will be suppressed.
Generate Comments
When this option is selected, comments will be generated in the generated code. If unchecked, comments will be suppressed in the generated code.
Generate Smart Stubs
When this option is selected, the ability to use smart stubs is generated and additional methods are created in the interface Helper class.
Generate Deprecated Skeleton
When this option is selected, skeletons compatible with versions of VisiBroker prior to version 3.0 will be generated.
Directory To Search For Include Files
Opens a dialog that allows you to select a directory to be searched for the list of files to include in the build. You must select a directory that contains an .idl file.
Symbols Defined for Conditional IDL Compilation
Opens a dialog that enables you to define a symbol name for conditional IDL compilation.
New button
This button enables you to select new symbols for conditional IDL compilation.
Delete button
This button enables you to delete the selected symbol from the list of symbols defined for conditional compilation.
OK button
Set the correct options so that when compiled, it generates Java interface definitions and Java client and server stubs and skeletons in a subdirectory of the project with the same name as the project.
Cancel button
Exits the dialog.