org.objectweb.jonas.mail
Interface MailServiceImplMBean
- All Known Implementing Classes:
- MailServiceImpl
- public interface MailServiceImplMBean
This interface provides a description for the mail service management.
- Author:
- Ludovic Bert, Florent Benoit
createMailFactoryMBean
public void createMailFactoryMBean(java.lang.String name,
java.util.Properties props)
throws MailServiceException
- Create a mail factory with the specified properties and register it
into the registry.
- Parameters:
name
- the name of the mail factoryprops
- the properties used to configure the mail factory.- Throws:
MailServiceException
- if the creation or the registration of
the factory failed.java.rmi.RemoteException
- if rmi call failed.
unbindMailFactoryMBean
public void unbindMailFactoryMBean(java.lang.String name)
throws MailServiceException
- Unregister the factory binded with the given name.
- Parameters:
name
- the name of the factory.- Throws:
MailServiceException
- if the unregistration of the
factory failed.java.rmi.RemoteException
- if rmi call failed.
getCurrentNumberOfSessionMailFactories
public java.lang.Integer getCurrentNumberOfSessionMailFactories()
- Returns:
- Integer Number of mail Session mail factories available in JOnAS
getCurrentNumberOfMimeMailFactories
public java.lang.Integer getCurrentNumberOfMimeMailFactories()
- Returns:
- Integer Number of internet.MimePartDataSource mail factories available in JOnAS
getCurrentNumberOfMailFactories
public java.lang.Integer getCurrentNumberOfMailFactories()
- Returns:
- Integer Total number of mail factories available in JOnAS
getMailFactoryPropertiesFile
public java.util.Properties getMailFactoryPropertiesFile(java.lang.String configFile)
throws java.lang.Exception
- Returns:
- mail factory configuration properties from a local file