borland Packages Class Hierarchy cx Package
java.lang.Object +----com.borland.cx.OrbConnect
Variables Constructors Properties Methods
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.
protected String addressFileCurrent address file path setting.
protected String locationServiceCurrent value for location service class name.
protected boolean lsCurrent value of flag for using location service or not.
protected String namingServiceCurrent value for naming service class name.
protected boolean nsCurrent value of flag for using naming service or not.
protected org.omg.CORBA.ORB orbCurrent reference to ORB.
protected boolean otsCurrent value of flag for using transaction service or not.
protected int portCurrent port property setting.
protected String transactionServiceCurrent value for transaction service class name.
public OrbConnect()Constructor which defaults to VisiBroker settings.
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
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
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
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
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
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
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
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
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
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
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.