|
Novell exteNd Messaging Platform 5.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 Novell exteNd Messaging Platform JMS |
static String |
IIOP_SSL_PROTOCOL
The IIOP/SSL protocol supported by Novell exteNd Messaging Platform JMS |
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 JMS server |
int |
getPort()
Get the port of the (primary) JMS 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 JMS server. |
boolean |
isSecureBroker()
Get whether or not this connection factory uses a secure broker. |
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 JMS 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 JMS server. |
void |
setPort(int port)
Set the port of the (primary) JMS server |
void |
setProtocol(String protocol)
Set the protocol to use for sending/receiveing messages |
void |
setSecureBroker(boolean secure)
Set whether or not to use a secure message broker. |
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.
JMSException
public Connection createConnection(String username, String password) throws JMSException
Connection
using the factory's default
configuration and specified user name and password.
password
- connection password
Connection
object.
JMSException
public String getProtocol()
IIOP_PROTOCOL
,
IIOP_SSL_PROTOCOL
public void setProtocol(String protocol)
protocol
- the new protocol for connection factory
IllegalArgumentException
- 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
methods
public 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)
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 void setSecureBroker(boolean secure)
If the client communicates with the JMS server using HTTP/S you may want to set this property to false. Since all HTTP traffic is tunneled through the ORB tunnel, which will already be SSL protected, you can avoid requiring SSL between the tunnel and the JMS server by setting this to false.
secure
- whether or not to use the secure brokerpublic boolean isSecureBroker()
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
|
Novell exteNd Messaging Platform 5.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |