org.apache.james.mailrepository
Class JDBCSpoolRepository

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.james.mailrepository.JDBCMailRepository
              |
              +--org.apache.james.mailrepository.JDBCSpoolRepository
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.Loggable, MailRepository, SpoolRepository

public class JDBCSpoolRepository
extends JDBCMailRepository
implements SpoolRepository

Implementation of a SpoolRepository on a database.

Requires a configuration element in the .conf.xml file of the form:
type="MAIL"
model="SYNCHRONOUS"/>
sun.jdbc.odbc.JdbcOdbcDriver
jdbc:odbc:LocalDB
Message

destinationURL specifies..(Serge??)
Type can be SPOOL or MAIL
Model is currently not used and may be dropped
conn is the location of the ...(Serge)
table is the name of the table in the Database to be used

Requires a logger called MailRepository.

Version:
1.0.0, 24/04/1999
Author:
Serge Knystautas

Fields inherited from class org.apache.james.mailrepository.JDBCMailRepository
context, datasource, datasourceName, datasources, destination, filestore, repositoryName, sqlFileName, sqlQueries, tableName
 
Fields inherited from interface org.apache.james.services.SpoolRepository
SPOOL
 
Fields inherited from interface org.apache.james.services.MailRepository
MAIL
 
Constructor Summary
JDBCSpoolRepository()
           
 
Method Summary
 java.lang.String accept()
          Returns the key for an arbitrarily selected mail deposited in this Repository.
 java.lang.String accept(long delay)
          Returns the key for an arbitrarily select mail depository in this Repositry that is either ready immediately for delivery, or is younger than it's last_updated plus the number of failed attempts times the delay time.
 
Methods inherited from class org.apache.james.mailrepository.JDBCMailRepository
compose, configure, contextualize, equals, getConnection, initialize, list, lock, remove, remove, retrieve, store, unlock
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.james.services.MailRepository
list, lock, remove, remove, retrieve, store, unlock
 

Constructor Detail

JDBCSpoolRepository

public JDBCSpoolRepository()
Method Detail

accept

public java.lang.String accept()
Description copied from interface: SpoolRepository
Returns the key for an arbitrarily selected mail deposited in this Repository. Useage: SpoolManager calls accept() to see if there are any unprocessed mails in the spool repository.
Specified by:
accept in interface SpoolRepository

accept

public java.lang.String accept(long delay)
Description copied from interface: SpoolRepository
Returns the key for an arbitrarily select mail depository in this Repositry that is either ready immediately for delivery, or is younger than it's last_updated plus the number of failed attempts times the delay time. Useage: RemoteDeliverySpool calls accept() with some delay and should block until an unprocessed mail is available.
Specified by:
accept in interface SpoolRepository


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.