Novell exteNd Messaging Platform 5.2

com.sssw.jms.api
Class JMQDatabase

java.lang.Object
  extended bycom.sssw.jms.api.JMQDatabase

public abstract class JMQDatabase
extends Object

Create an in-process JMS database controller.

Since:
jBroker MQ 1.3
See Also:
JMQMessageService

Constructor Summary
JMQDatabase()
           
 
Method Summary
abstract  void create()
          Create the JMS database.
abstract  void destroy()
          Destroy the JMS database.
static JMQDatabase init(Properties props)
          Instantiate an instance of the Database controller.
abstract  String version()
          Get JMS database version.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMQDatabase

public JMQDatabase()
Method Detail

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 JMS 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 JMS 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 JMS 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.

Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.