public class LocalBrokerConnectionParameters extends java.lang.Object implements BrokerConnectionParameters
Use the class in the following way:
BrokerConnectionParameters bcp = new LocalBrokerConnectionParameters("MYBROKER"); BrokerProxy.getInstance(bcp);
You might want to consider using the method BrokerProxy.getLocalInstance(String brokerName), which provides a way of defining the LocalBrokerConnectionParameters object and connecting to the broker in a single method call.
class
com.ibm.broker.config.proxy.LocalBrokerConnectionParameters
implements
com.ibm.broker.config.proxy.BrokerConnectionParameters
|
|
Responsibilities | Represents a set of connection parameters to a locally defined broker. |
Collaborators | MQBrokerConnectionParameters |
Change Activity: -------- ----------- ------------- ------------------------------------ Reason: Date: Originator: Comments: -------- ----------- ------------- ------------------------------------ 51619.19 2009-03-05 HDMPL v7 Release
Constructor and Description |
---|
LocalBrokerConnectionParameters(java.lang.String brokerName)
Constructs a new instance that refers to connection properties
to the locally defined broker with the supplied name.
|
Modifier and Type | Method and Description |
---|---|
com.ibm.broker.config.proxy.CommsMessageSerializer |
getProtocol()
This method is required by the IBM Integration API (CMP) and
should not be called by user applications.
|
com.ibm.broker.config.proxy.Receiver |
getReceiver()
This method is required by the IBM Integration API (CMP) and
should not be called by user applications.
|
com.ibm.broker.config.proxy.Sender |
getSender()
This method is required by the IBM Integration API (CMP) and
should not be called by user applications.
|
java.lang.String |
getSessionIDString()
Returns a String representation of the Session ID for this
connection.
|
java.lang.String |
getUserID()
Returns the userid that will be used to authorize this
application with the broker.
|
java.lang.String |
toString()
For diagnostic information, this method displays the current connection
parameters.
|
public LocalBrokerConnectionParameters(java.lang.String brokerName)
brokerName
- Name of the locally defined brokerpublic com.ibm.broker.config.proxy.Sender getSender() throws ConfigManagerProxyLoggedException
getSender
in interface BrokerConnectionParameters
ConfigManagerProxyLoggedException
- if the security exit could not be instantiatedpublic com.ibm.broker.config.proxy.Receiver getReceiver() throws ConfigManagerProxyLoggedException
getReceiver
in interface BrokerConnectionParameters
ConfigManagerProxyLoggedException
- if the security exit could not be instantiatedpublic com.ibm.broker.config.proxy.CommsMessageSerializer getProtocol()
getProtocol
in interface BrokerConnectionParameters
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getUserID()
getUserID
in interface BrokerConnectionParameters
public java.lang.String getSessionIDString()