|
jBroker® MQ 2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omg.CORBA.portable.ObjectImpl | +--com.sssw.jbroker.orb.ValueWrapper | +--com.sssw.jms.api.JMQAdministeredObject | +--com.sssw.jms.api.JMQConnectionFactory
Factory for creating JMS connections in JBroker MQ. The factories
are JMQAdministeredObject
's which means that they can
be stored into any JNDI context.
JMQTopicConnectionFactory
,
JMQQueueConnectionFactory
,
JMQXATopicConnectionFactory
,
JMQXAQueueConnectionFactory
, Serialized FormField Summary | |
static String |
IIOP_PROTOCOL
The IIOP protocol supported by jBroker MQ |
static String |
IIOP_SSL_PROTOCOL
The IIOP/SSL protocol supported by jBroker MQ |
static int |
QUEUE
Queue Connection. |
static int |
TOPIC
Topic Connection. |
static int |
XA_QUEUE
Queue XA Connection |
static int |
XA_TOPIC
Topic XA Connection |
Method Summary | |
void |
addCACertificate(byte[][] derCert)
Add a DER encoded trusted CA certificate to this connection factory. |
Connection |
createConnection()
Create a Connection using the factory's default
configuration. |
Connection |
createConnection(String username,
String password)
Create a Connection using the factory's default
configuration and specified user name and password. |
CipherSuite[] |
getCipherSuites()
Get the SSL cipher suites that client connections support. |
String |
getClientId()
Get the JMS Client ID |
String |
getDefaultPassword()
Get the default password |
String |
getDefaultUserName()
Get the default username |
String |
getHost()
Get the (primary) host name of the jBroker MQ Server |
int |
getPort()
Get the port of the (primary) jBroker MQ Server |
String |
getProtocol()
Get the protocol used for sending/receiveing messages |
Reference |
getReference()
Get a JNDI Reference for this Connection Factory. |
JMQServerInfo[] |
getServers()
Get the servers in the cluster for this connection factory. |
int |
getType()
Get the connection Type. |
boolean |
isClientPull()
Get whether or not this connection factory will create connections that use pull mode when retrieving messages from the jBroker MQ server. |
void |
setCertificateChain(byte[][] derCertChain,
byte[] privateKeyBER)
Set the SSL certificate chain for clients using this connection factory. |
void |
setCertificateChain(byte[][] derCertChain,
byte[] privateKey,
String password)
Set the SSL certificate chain for clients using this connection factory. |
void |
setCipherSuites(CipherSuite[] ciphers)
Set the SSL cipher suites that client connections should support. |
void |
setClientId(String clientId)
Set the JMS Client ID |
void |
setClientPull(boolean clientPull)
Set whether or not this connection factory will create connections that use pull mode when retrieving messages from the jBroker MQ server. |
void |
setDefaultPassword(String defaultPassword)
Set the default password |
void |
setDefaultUserName(String defaultUser)
Set the default username |
void |
setHost(String hostName)
Set the primary host name of the jBroker MQ Server. |
void |
setPort(int port)
Set the port of the (primary) jBroker MQ Server |
void |
setProtocol(String protocol)
Set the protocol to use for sending/receiveing messages |
void |
setServers(JMQServerInfo[] servers)
Set the servers in the cluster for this connection factory |
String |
toString()
Return a pretty printed string form of this connection factory |
Methods inherited from class com.sssw.jbroker.orb.ValueWrapper |
_ids |
Methods inherited from class org.omg.CORBA.portable.ObjectImpl |
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int QUEUE
public static final int TOPIC
public static final int XA_QUEUE
public static final int XA_TOPIC
public static final String IIOP_PROTOCOL
public static final String IIOP_SSL_PROTOCOL
Method Detail |
public int getType()
QUEUE
,
TOPIC
,
XA_TOPIC
,
XA_QUEUE
public String toString()
toString
in class ObjectImpl
public Connection createConnection() throws JMSException
Connection
using the factory's default
configuration.Connection
object.public Connection createConnection(String username, String password) throws JMSException
Connection
using the factory's default
configuration and specified user name and password.userName
- connection user namepassword
- connection passwordConnection
object.public String getProtocol()
IIOP_PROTOCOL
,
IIOP_SSL_PROTOCOL
public void setProtocol(String protocol)
protocol
- the new protocol for connection factoryIllegalArgumentException
- if protocol is not supported.IIOP_PROTOCOL
,
IIOP_SSL_PROTOCOL
public String getHost()
public void setHost(String hostName)
hostName
- the host name used by this connection factorypublic int getPort()
public void setPort(int port)
port
- the port number used by this connection factorypublic JMQServerInfo[] getServers()
getHost
and getPort
methodspublic void setServers(JMQServerInfo[] servers)
servers
- an array of host/port pairs for the servers in
a clusterpublic String getClientId()
public void setClientId(String clientId)
clientId
- the new default client ID to use on connections
created by this connection factorypublic String getDefaultUserName()
public void setDefaultUserName(String defaultUser)
defaultUser
- the new default user name used to create
connections with this connection factorypublic String getDefaultPassword()
public void setDefaultPassword(String defaultPassword)
defaultPassword
- the new default user name used to create
connections with this connection factory.public CipherSuite[] getCipherSuites()
public void setCipherSuites(CipherSuite[] ciphers)
suites
- an array of cipher suites
If this connection factory has been configured for the IIOP/SSL protocol,
this value must be set prior to creating any connections.public void setCertificateChain(byte[][] derCertChain, byte[] privateKeyBER)
derCertChain
- the DER encoded certificate chain (using ASN.1
Distinguished Encoding Rules)privateKeyBER
- private key in clear text using the format defined
by PKCS #1 (PrivateKeyBER)public void setCertificateChain(byte[][] derCertChain, byte[] privateKey, String password)
derCertChain
- the DER encoded certificate chain (using ASN.1
Distinguished Encoding Rules)privateKey
- encrypted private key using the format defined
by PKCS #8password
- the password with which to decrypt the private key public void addCACertificate(byte[][] derCert)
derCert
- a DER encoded CA certificate (using ASN.1
Distinguished Encoding Rules)public boolean isClientPull()
public void setClientPull(boolean clientPull)
clientPull
- if set to true use pull mode; otherwise use push mode.public Reference getReference() throws NamingException
|
jBroker® MQ 2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |