org.exolab.jms.tools.migration
Class Importer

java.lang.Object
  |
  +--org.exolab.jms.tools.migration.Importer

public class Importer
extends java.lang.Object

Imports data from a proxy database into a master.

Version:
$Revision: 1.3 $ $Date: 2005/11/12 12:47:37 $
Author:
Tim Anderson
See Also:
Exporter

Constructor Summary
Importer(org.exolab.jms.config.Configuration config, java.lang.String database, boolean delete)
          Construct a new Importer.
 
Method Summary
 void apply()
          Import the data from the proxy database to the master database.
static void main(java.lang.String[] args)
          Main line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Importer

public Importer(org.exolab.jms.config.Configuration config,
                java.lang.String database,
                boolean delete)
         throws org.exolab.jms.persistence.PersistenceException
Construct a new Importer.
Parameters:
config - the configuration to use
database - the database name
delete - if true, indicates to delete data in the master database, if it exists
Throws:
org.exolab.jms.persistence.PersistenceException - for any persistence error
Method Detail

apply

public void apply()
           throws javax.jms.JMSException,
                  org.exolab.jms.persistence.PersistenceException,
                  org.exolab.jms.service.ServiceException
Import the data from the proxy database to the master database.
Throws:
javax.jms.JMSException - for any JMS error
org.exolab.jms.persistence.PersistenceException - for any persistence error
org.exolab.jms.service.ServiceException - for any service error

main

public static void main(java.lang.String[] args)
Main line.
Parameters:
args - command line arguments


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.