com.sssw.jms.api
Class JMQDatabase
java.lang.Object
|
+--com.sssw.jms.api.JMQDatabase
- public abstract class JMQDatabase
- extends Object
Create an in-process jBroker MQ database controller.
- Since:
- jBroker MQ 1.3
- See Also:
JMQMessageService
Method Summary |
abstract void |
create()
Create the jBroker MQ database. |
abstract void |
destroy()
Destroy the jBroker MQ database. |
static JMQDatabase |
init(Properties props)
Instantiate an instance of the Database controller. |
abstract String |
version()
Get jBroker MQ database version. |
JMQDatabase
public JMQDatabase()
init
public static JMQDatabase init(Properties props)
throws JMSException
- Instantiate an instance of the Database controller.
- Parameters:
props
- Database properties. The constants are defined in
the JMQMessageService class.- Returns:
- An instance of the Database control object.
- Throws:
JMSException
- If a Database could not be instantiated.
Use the JMSException's getLinkedException
method to get
the root cause of the exception.
create
public abstract void create()
throws JMSException
- Create the jBroker MQ database.
- Throws:
JMSException
- Raised in the following circumstances:
- Could not connect to the database. This could either be a
JDBC connectivity problem, or if invalid or insufficient
properties were passed in when creating this object.
- The database already exists.
destroy
public abstract void destroy()
throws JMSException
- Destroy the jBroker MQ database.
- Throws:
JMSException
- Raised in the following circumstances:
- Could not connect to the database. This could either be a
JDBC connectivity problem, or if invalid or insufficient
properties were passed in when creating this object.
- The database does not exist.
version
public abstract String version()
throws JMSException
- Get jBroker MQ database version.
- Throws:
JMSException
- Raised in the following circumstances:
- Could not connect to the database. This could either be a
JDBC connectivity problem, or if invalid or insufficient
properties were passed in when creating this object.
- The database does not exist.
jBroker is a registered trademark of Novell, Inc.
Copyright 1998-2003 Novell, Inc. All Rights Reserved.