|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sssw.jms.api.JMQMessageService
A class for creating an in-process Java Message Service. This class also defines a set of properties, which must be set in order to run the JMS server.
Field Summary | |
static String |
MSGSVC_CLUSTER_IDENTIFICATION
Indication of whether to use IP addresses or host names to identify cluster members. |
static String |
MSGSVC_CLUSTER_MEMBERS
A comma separated list of cluster member URL's. |
static String |
MSGSVC_CLUSTER_TOPICS
A comma separated list of topics to forward messages for. |
static String |
MSGSVC_CONFIG_FILE
This property indicates a file name of an XML file with JMS server configuration. |
static String |
MSGSVC_DEBUG
A boolean property that detemines whether or not the JMS server will run in debug mode. |
static String |
MSGSVC_ENABLE_NAMING
Boolean property to disable the JMS server from exposing a name service. |
static String |
MSGSVC_ENABLE_SECURITY
Boolean property to enable security in the JMS server. |
static String |
MSGSVC_ENABLE_SSL
Boolean property to enable the JMS server to support SSL. |
static String |
MSGSVC_ERROR_QUEUE
The queue for error messages. |
static String |
MSGSVC_JDBC_DRIVER
The class name of the JDBC Driver. |
static String |
MSGSVC_JDBC_MAXMSGSIZE
The maximum message size. |
static String |
MSGSVC_JDBC_MAXPOOLSIZE
The maximum connection pool size for the database. |
static String |
MSGSVC_JDBC_MINPOOLSIZE
The minimum connection pool size for the database. |
static String |
MSGSVC_JDBC_PASSWORD
The password for the database user. |
static String |
MSGSVC_JDBC_URL
The database URL to use for the JMS tables. |
static String |
MSGSVC_JDBC_USER
The database username to use to access the JMS tables. |
static String |
MSGSVC_LOGDIR
The directory where the JMS error logs are kept. |
static String |
MSGSVC_MEMORY
The maximum memory size used for messages in the JMS server. |
static String |
MSGSVC_NAME
The unique name of the message service. |
static String |
MSGSVC_PORT
The IIOP port on which the message service starts up. |
static String |
MSGSVC_PROPFILE
Messaging service properties filename. |
static String |
MSGSVC_QUEUE_FACTORY
A comma separated list of queue connection factories. |
static String |
MSGSVC_QUEUE_XA_FACTORY
A comma separated list of XA queue connection factories. |
static String |
MSGSVC_ROUTER_TARGETS
A comma separated list of router URL's. |
static String |
MSGSVC_ROUTER_TOPICS
A comma separated list of topics to route messages for. |
static String |
MSGSVC_SECURITY_AUTHORIZATION
The fully classified name of the access control list class. |
static String |
MSGSVC_SECURITY_MANAGER
The fully classified name of the principal manager class. |
static String |
MSGSVC_SECURITY_REALM
The fully classified name of the authentication class. |
static String |
MSGSVC_SSL_CERTIFICATE
Directory with the JMS server's SSL information. |
static String |
MSGSVC_SSL_CIPHER_SUITES
A list of cipher suites supported. |
static String |
MSGSVC_SSL_CLIENT_CERTIFICATE
Boolean property to decide whether an SSL enabled JMS server requires client applications to present it with a certificate. |
static String |
MSGSVC_SSL_PASSWORD
The password to decrypt the private key. |
static String |
MSGSVC_STORE
The name of the persistent store to use. |
static String |
MSGSVC_STORE_DIR
The root directory for a file based message store. |
static String |
MSGSVC_STORE_SYNC
A boolean property that detemines whether or not the JMS server will sync file descriptors when writing messages into the file store. |
static String |
MSGSVC_THREADSMAX
The maximum size of the thread pool. |
static String |
MSGSVC_TOPIC_FACTORY
A comma separated list of topic connection factories. |
static String |
MSGSVC_TOPIC_XA_FACTORY
A comma separated list of XA topic connection factories. |
static String |
MSGSVC_VERBOSE
A boolean property that detemines whether or not the JMS server will run in verbose mode. |
Constructor Summary | |
JMQMessageService()
|
Method Summary | |
abstract ORB |
getORB()
Get the ORB used by this in-process JMS server. |
static JMQMessageService |
init(ORB orb,
Properties props)
Create an in-process instance of the Java Messaging Service. |
static JMQMessageService |
init(Properties props)
Create an in-process instance of the Java Messaging Service. |
abstract void |
shutdown()
Shutdown the in-process Java Message Service. |
abstract void |
start()
Start the in-process Java Message Service. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String MSGSVC_PROPFILE
jmqserv
and dbinit
programs will
load a property file with this name.
public static final String MSGSVC_NAME
public static final String MSGSVC_ROUTER_TARGETS
godel:53506,escher:53506All topic messages received on this broker will be forwarded to the specified router target brokers. All queue messages where the target queue is not on this broker will be forwarded, unless this broker is also clustered and one of the cluster members host the specifed queue.
public static final String MSGSVC_ROUTER_TOPICS
topic0,topic1
public static final String MSGSVC_ERROR_QUEUE
public static final String MSGSVC_CLUSTER_MEMBERS
godel:53506,escher:53506
public static final String MSGSVC_CLUSTER_IDENTIFICATION
MSGSVC_CLUSTER_MEMBERS
property. Administraters must ensure that either IP addresses or host
names are used consistently throughout the cluster. Possible values for
this property are IP
and hostname
(both case
insensitive) with IP being the default value.
public static final String MSGSVC_CLUSTER_TOPICS
topic0,topic1
public static final String MSGSVC_TOPIC_FACTORY
name:clientID:username:passwordOnly the name is mandatory. Example:
MyTopicFactory:client0:john:secret,OtherTopicFactory
public static final String MSGSVC_TOPIC_XA_FACTORY
name:clientID:username:passwordOnly the name is mandatory.
public static final String MSGSVC_QUEUE_FACTORY
name:clientID:username:passwordOnly the name is mandatory.
public static final String MSGSVC_QUEUE_XA_FACTORY
name:clientID:username:passwordOnly the name is mandatory.
public static final String MSGSVC_PORT
public static final String MSGSVC_LOGDIR
public static final String MSGSVC_THREADSMAX
public static final String MSGSVC_MEMORY
public static final String MSGSVC_STORE
public static final String MSGSVC_JDBC_DRIVER
public static final String MSGSVC_JDBC_URL
public static final String MSGSVC_JDBC_USER
public static final String MSGSVC_JDBC_PASSWORD
public static final String MSGSVC_JDBC_MINPOOLSIZE
public static final String MSGSVC_JDBC_MAXPOOLSIZE
public static final String MSGSVC_JDBC_MAXMSGSIZE
public static final String MSGSVC_ENABLE_SECURITY
The default value for this property is false. If this property is set to true, then the JMS server makes sure that ACL checking is done and that the server can be administered only by an Administrator.
public static final String MSGSVC_SECURITY_REALM
Realm
interface.
Realm
,
Constant Field Valuespublic static final String MSGSVC_SECURITY_MANAGER
PrincipalManager
interface. Note that if you specify a custom principal manager you
must also specify a custom realm.
MSGSVC_SECURITY_REALM
,
JMQPrincipalManager
,
Constant Field Valuespublic static final String MSGSVC_SECURITY_AUTHORIZATION
AclManager
interface.
JMQAclManager
,
Constant Field Valuespublic static final String MSGSVC_ENABLE_SSL
The default value for this property is false. If this property is set to true, then the JMS server exposes a secure connection factory object, which clients can use to create confidential connections. Note that the client connection factory must be configured with the desired quality of protection as well as a set of trusted certificates and certificate authorities.
JMQConnectionFactory.setCertificateChain(byte[][], byte[])
,
JMQConnectionFactory.addCACertificate(byte[][])
,
JMQConnectionFactory.IIOP_SSL_PROTOCOL
,
Constant Field Valuespublic static final String MSGSVC_SSL_CERTIFICATE
MSGSVC_ENABLE_SSL
property is set to TRUE. The JMS server will look for the following
files in this directory:
privateKey.der
file with the private key in DER format.
The key may optionally be encrypted.certificate.chain
file with a chain of DER encoded
certificates. You can optionally specify the certificate.der
file described below.certificate.der
file with a single DER encoded
certificate.certs
directory from which all files with suffix
.der
are loaded. These files must be ASN.1 DER encoded
trusted CA certificates.
MSGSVC_ENABLE_SSL
,
Constant Field Valuespublic static final String MSGSVC_SSL_CLIENT_CERTIFICATE
This property will be consulted when the MSGSVC_ENABLE_SSL
property is set to TRUE.
MSGSVC_ENABLE_SSL
,
Constant Field Valuespublic static final String MSGSVC_SSL_PASSWORD
MSGSVC_ENABLE_SSL
property is set to TRUE. It will be used to decrypt the private key loaded
from the privateKey.pkcs8
file.
MSGSVC_SSL_CERTIFICATE
,
Constant Field Valuespublic static final String MSGSVC_SSL_CIPHER_SUITES
CipherSuite
interface.
CipherSuite
,
Constant Field Valuespublic static final String MSGSVC_ENABLE_NAMING
The default value for this property is true. If this property is set to false, then the JMS server will not expose a COS name server with administered objects and destinations. Since the JMS server's name space is accessed using the JNDI/CosNaming driver it will not be protected. When running the JMS server in SSL mode, the name space can be disabled to prevent clients from getting clear text access to the name space.
When the name service is disabled, administered objects and destinations (queues and topics) are not accessible via JNDI. Instead, client applications must use the JMQConnectionFactory objects to bootstrap connection factories and the JMQQueue and JMQTopic objects for bootstrapping destination objects. Note that the name space should only be disabled if clean text access compromises the security of an application.
JMQTopic
,
JMQQueue
,
JMQConnectionFactory
,
Constant Field Valuespublic static final String MSGSVC_STORE_DIR
dbinit -create
it will be created.
Note that running dbinit -destroy
will remove this directory
will all its content.
public static final String MSGSVC_STORE_SYNC
FileDescriptor.sync()
,
Constant Field Valuespublic static final String MSGSVC_DEBUG
public static final String MSGSVC_VERBOSE
public static final String MSGSVC_CONFIG_FILE
Constructor Detail |
public JMQMessageService()
Method Detail |
public static JMQMessageService init(Properties props) throws JMSException
props
- message service properties
instance
- Throws:
JMSException
- if a JMS server could not be instantiated.
Use the JMSException
's getLinkedException
method
to get the root cause of the exception.
public static JMQMessageService init(ORB orb, Properties props) throws JMSException
orb
- an ORB instanceprops
- message Service properties
JMSException
- if a JMS server could not be instantiated.
Use the JMSException
's getLinkedException
method
to get the root cause of the exception.public abstract ORB getORB() throws JMSException
JMSException
- if the message service has not been startedpublic abstract void start() throws JMSException
JMSException
- if the message service could not be started.
Possible causes include:
JMSException
's getLinkedException
method for details about the cause of the exception.public abstract void shutdown() throws JMSException
JMSException
- if shutdown unexpectedly failed.
Consult the JMSException
's getLinkedException
method for details about the cause of the exception.
|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |