borland Packages  Class Hierarchy  cx Package 

OrbConnect component

java.lang.Object
   +----com.borland.cx.OrbConnect

About the OrbConnect component

Variables  Constructors  Properties  Methods  

Note: This is a feature of JBuilder Enterprise.

OrbConnect is a non-UI bean that resolves a given name to a CORBA object without using the VisiBroker root context extension to the Naming Service. The context for resolving is set through a stringified object IOR. You may narrow the CORBA object to a desired class using helper classes.


OrbConnect variables

Variables implemented in this class

OrbConnect constructors

OrbConnect properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

OrbConnect methods

Methods implemented in this class

Methods implemented in java.lang.Object


OrbConnect variables

addressFile

  protected String addressFile
Current address file path setting.

locationService

  protected String locationService
Current value for location service class name.

ls

  protected boolean ls
Current value of flag for using location service or not.

namingService

  protected String namingService
Current value for naming service class name.

ns

  protected boolean ns
Current value of flag for using naming service or not.

orb

  protected org.omg.CORBA.ORB orb
Current reference to ORB.

ots

  protected boolean ots
Current value of flag for using transaction service or not.

port

  protected int port
Current port property setting.

transactionService

  protected String transactionService
Current value for transaction service class name.

OrbConnect constructors

OrbConnect()

  public OrbConnect()
Constructor which defaults to VisiBroker settings.

OrbConnect properties

addressFile

 public String getAddressFile()
 public void setAddressFile(String newAddressFile)
Returns the file name for connecting to remote Smart Agents. Will be set to null if the ORBagentAddr property is not used for ORB initialization.

Parameters:

newAddressFile
Address file name or null.

initialize

 public boolean isInitialize()
 public void setInitialize(boolean b)
Returns true if the ORB has been successfully initialized.

Initialize (if haven't already) using current property settings or remove reference to ORB.

Parameters:

b
True to initialize ORB, false to remove reference to it.

locationService

 public String getLocationService()
 public void setLocationService(String className)
Returns current value of location service property.

Sets location service name for optional used during ORB initialization.

Parameters:

className
Name of location service that optionally might be used during ORB initialization.

namingService

 public String getNamingService()
 public void setNamingService(String className)
Returns current value of naming service property.

Sets naming service name for optional used during ORB initialization.

Parameters:

className
Name of naming service that optionally might be used during ORB initialization.

orb

 public org.omg.CORBA.ORB getOrb()
 public void setOrb(org.omg.CORBA.ORB newOrb)
Returns the ORB that will be used to find the naming services.

Sets the ORB on which the naming services are running. If an ORB is not set, a new ORB connection will be created using the current property settings.

Parameters:

newOrb
ORB to use or null.

port

 public int getPort()
 public void setPort(int newPort)
Returns the port to be used when creating a new ORB connection.

Sets the port to use if a new ORB connection is required.

Parameters:

newPort
New value for the port property.

transactionService

 public String getTransactionService()
 public void setTransactionService(String className)
Returns current value of transaction service property.

Sets transaction service name for optional used during ORB initialization.

Parameters:

className
Name of transaction service that optionally might be used during ORB initialization.

useLocationService

 public boolean isUseLocationService()
 public void setUseLocationService(boolean value)
Returns true if the location service should be appended to the ORBservices property during ORB initialization.

Sets flag to indicate whether or not the current value for the location service should be appended to the 'ORBservices' property during ORB initialization.

Parameters:

value
True if location service to be defined.

useNamingService

 public boolean isUseNamingService()
 public void setUseNamingService(boolean value)
Returns true if the naming service should be appended to the ORBservices property during ORB initialization.

Sets flag to indicate whether or not the current value for the naming service should be appended to the 'ORBservices' property during ORB initialization.

Parameters:

value
True if naming service to be defined.

useTransactionService

 public boolean isUseTransactionService()
 public void setUseTransactionService(boolean value)
Returns true if the transaction service should be appended to the ORBservices property during ORB initialization.

Sets flag to indicate whether or not the current value for the transaction service should be appended to the ORBservices property during ORB initialization.

Parameters:

value
True if transaction service to be defined.

OrbConnect methods

initOrb()

  public org.omg.CORBA.ORB initOrb()
Initialize an ORB using the current property values if no ORB currently referenced by this class. This returns an initialized ORB or null.