Home » JBoss-5.1.0 » org » jboss » mail » [javadoc | source]
public class: MailService [javadoc | source]

All Implemented Interfaces:
    MailServiceMBean, KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

MBean that gives support for JavaMail. Object of class javax.mail.Session will be bound in JNDI with the name provided with method #setJNDIName .
Field Summary
public static final  String JNDI_NAME     
 ObjectName mMail    Object Name of the JSR-77 representation of this service 
 Properties ourProps    save properties here 
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Method from org.jboss.mail.MailService Summary:
getConfiguration,   getDefaultSender,   getJNDIName,   getObjectName,   getPOP3ServerHost,   getPassword,   getProperties,   getSMTPServerHost,   getStoreProtocol,   getTransportProtocol,   getUser,   isSharedSession,   setConfiguration,   setJNDIName,   setPassword,   setSharedSession,   setUser,   startService,   stopService
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   getDeploymentInfo,   getLog,   getName,   getNextNotificationSequenceNumber,   getObjectName,   getServer,   getServiceName,   getState,   getStateString,   jbossInternalCreate,   jbossInternalDescription,   jbossInternalDestroy,   jbossInternalLifecycle,   jbossInternalStart,   jbossInternalStop,   pojoChange,   pojoCreate,   pojoDestroy,   pojoStart,   pojoStop,   postDeregister,   postRegister,   preDeregister,   preRegister,   setKernelControllerContext,   start,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.mail.MailService Detail:
 public Element getConfiguration() 
    Configuration for the mail service.
 public String getDefaultSender() 
 public String getJNDIName() 
 protected ObjectName getObjectName(MBeanServer server,
    ObjectName name) throws MalformedObjectNameException 
 public String getPOP3ServerHost() 
 protected String getPassword() 
    Password is write only.
 protected Properties getProperties() throws Exception 
 public String getSMTPServerHost() 
 public String getStoreProtocol() 
 public String getTransportProtocol() 
 public String getUser() 
 public boolean isSharedSession() 
 public  void setConfiguration(Element element) 
    Configuration for the mail service.
 public  void setJNDIName(String name) 
    The JNDI name under which javax.mail.Session objects are bound.
 public  void setPassword(String password) 
    Password used to connect to a mail server
 public  void setSharedSession(boolean sharedSession) 
    Set whether a single mail session should be shared across all lookups (sharedSession = true) or a new session created on each lookup (sharedSession = false, the default).
 public  void setUser(String user) 
    User id used to connect to a mail server
 protected  void startService() throws Exception 
 protected  void stopService() throws Exception