Server User Manual

Table Of Contents
56 Developing Applications for J2EE Servers
Setting and viewing IDL build properties
The tie mechanism offers an alternative when it is not convenient or possible to
have your implementation class inherit from the VisiBroker skeleton class. Object
implementation classes must inherit from the VisiBroker skeleton class. Java
does not allow multiple class inheritance and you may want your implementation
class to inherit from a different class.
Inheritance is easier to use than the tie mechanism because implementation
objects look and behave just like object references. If an implementation object
happens to be in the same process as a client using it, operation invocations
involve less overhead because no transport, indirection, or delegation of any kind
is required.
The tie mechanism provides a
delegator implementation class that inherits from
org.omg.CORBA.Object. The delegator implementation class does not provide any
semantics of its own. It simply delegates every call to the real implementation
class, which can be implemented separately and can inherit from whichever class
it wishes.
The
Operations class defines all of the methods that must be implemented by the
object implementation. This class acts as the delegate object for the associated
_tie class when the tie mechanism is used.
Click the ellipsis () button next to the Include Path field to display the Select
Directory dialog box, where you can select a directory to search for the list of files
to include in the build. You must select a directory that contains an
.idl file.
Enter options not available in this dialog box in the Additional Options field.
The IDL2package Setting options are the equivalent of the command line
parameter
-idl2package idl pkg. If any part of the IDL file is in the scope
::CORBA,the generated is code is placed in the org.omg.CORBA package. When this
option is not set, the generated code uses the CORBA package resolution rules.
IDL Definition The definition in scope of IDL.
Package The Java package into which to place the IDL definition.
2 Click the Conditional Defines tab to set symbols defined for conditional compilation.
The Symbols Defined for Conditional IDL Compilation list displays a list of
symbols defined for conditional IDL compilation.
Click the New button to display the Define New Symbol dialog box, where you to
define a symbol name for conditional IDL compilation, for example
#define name
def
.
Choose a symbol and click the Delete button to delete the selected symbol from
the list of symbols defined for conditional compilation.