Platform Explorer / Nuxeo Platform 2021.52

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


No known contributions.