Platform Explorer / CMF 1.8

Extension point sessionFactory


Extension point to register a session factory.

A session factory allows to create session for users. To create sessions the factory needs informations such as host, port, protocol ... The list of needed properties depends on the protocol used and if you need store, transport or both. For more information see the JavaMail API .

To get hold of a Session call: MailService mailService = Framework.getService(MailSerivce.class); Transport transport = mailSerivce.getTransport("myFactory"); Store store = mailServcie.getStore("myFactory");

The default is to get a session for the authenticated user if any, or you can pass a String to get a session for a user.

Contribution Descriptors

  • Class: org.nuxeo.ecm.platform.mail.service.SessionFactoryDescriptor

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-runtime-5.4.2-HF05.jar
    <extension point="sessionFactory" target="org.nuxeo.ecm.platform.MailService">
        <sessionFactory fetcherName="simple" name="casemanagementImport">
            <property name="user"></property>
            <property name="password">********</property>
            <property name="">imap</property>
            <property name=""></property>
            <property name="mail.imap.starttls.enable">true</property>
            <property name="mail.imap.ssl.protocols">SSL</property>
            <property name="mail.imap.socketFactory.class"></property>
            <property name="mail.imap.port">993</property>
            <property name="mail.imap.socketFactory.port">993</property>
            <property name="mail.imap.socketFactory.fallback">false</property>