jrun.mail
Class MailService

jrunx.kernel.ServiceAdapter
  |
  +--jrun.mail.MailService
All Implemented Interfaces:
MailServiceInterface, MailServiceMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean

public class MailService
extends ServiceAdapter
implements MailServiceMBean, MailServiceInterface

Implementation class for JRun Mail service.

Author:
Chris Kintzing
See Also:
Serialized Form

Field Summary
static java.lang.String JRUN_MAIL_JNDI_CONTEXT
           
 
Fields inherited from class jrunx.kernel.ServiceAdapter
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
MailService()
           
 
Method Summary
 void createMailSession(java.lang.String strJndiName, java.util.Properties xmlAttribs)
           
 void init()
          Not every service needs to init, implement it out of convenience.
 void removeMailSession(java.lang.String strJndiName)
           
 void setMailSessionDefaults(DefaultSessionInfo info)
           
 void start()
          Every service other than mere data collections should start
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, destroy, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, stop, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, stop, updateStatus
 

Field Detail

JRUN_MAIL_JNDI_CONTEXT

public static final java.lang.String JRUN_MAIL_JNDI_CONTEXT
Constructor Detail

MailService

public MailService()
Method Detail

init

public void init()
          throws java.lang.Exception
Description copied from class: ServiceAdapter
Not every service needs to init, implement it out of convenience.
Specified by:
init in interface Service
Overrides:
init in class ServiceAdapter

start

public void start()
           throws java.lang.Exception
Description copied from class: ServiceAdapter
Every service other than mere data collections should start
Specified by:
start in interface Service
Overrides:
start in class ServiceAdapter

setMailSessionDefaults

public void setMailSessionDefaults(DefaultSessionInfo info)
Specified by:
setMailSessionDefaults in interface MailServiceMBean

createMailSession

public void createMailSession(java.lang.String strJndiName,
                              java.util.Properties xmlAttribs)
                       throws MailServiceException
Specified by:
createMailSession in interface MailServiceInterface

removeMailSession

public void removeMailSession(java.lang.String strJndiName)
                       throws MailServiceException
Specified by:
removeMailSession in interface MailServiceInterface


Copyright � 2002 Macromedia Corporation. All Rights Reserved.