Examples of OpenJPAMailboxManager


Examples of org.apache.james.mailbox.jpa.openjpa.OpenJPAMailboxManager

      
        entityManagerFactory = OpenJPAPersistence.getEntityManagerFactory(properties);
        JVMMailboxPathLocker locker = new JVMMailboxPathLocker();
        JPAMailboxSessionMapperFactory mf = new JPAMailboxSessionMapperFactory(entityManagerFactory, new JPAUidProvider(locker, entityManagerFactory), new JPAModSeqProvider(locker, entityManagerFactory));

        JPAMailboxManager mailboxManager = new OpenJPAMailboxManager(mf, null);
        mailboxManager.init();

        setMailboxManager(mailboxManager);
       
        deleteAllMailboxes();
       
View Full Code Here

Examples of org.apache.james.mailbox.jpa.openjpa.OpenJPAMailboxManager

      
        entityManagerFactory = OpenJPAPersistence.getEntityManagerFactory(properties);
        JVMMailboxPathLocker locker = new JVMMailboxPathLocker();
        JPAMailboxSessionMapperFactory mf = new JPAMailboxSessionMapperFactory(entityManagerFactory, new JPAUidProvider(locker, entityManagerFactory), new JPAModSeqProvider(locker, entityManagerFactory));

        mailboxManager = new OpenJPAMailboxManager(mf, null);
        mailboxManager.init();

        // Set the lock timeout via SQL because of a bug in openJPA
        // https://issues.apache.org/jira/browse/OPENJPA-1656
        setH2LockTimeout();
View Full Code Here

Examples of org.apache.james.mailbox.jpa.openjpa.OpenJPAMailboxManager

      
        entityManagerFactory = OpenJPAPersistence.getEntityManagerFactory(properties);
        JPACachingUidProvider uidProvider = new JPACachingUidProvider(entityManagerFactory);
        JPAMailboxSessionMapperFactory mf = new JPAMailboxSessionMapperFactory(entityManagerFactory);

        JPAMailboxManager mailboxManager = new OpenJPAMailboxManager(mf, null, uidProvider);
        mailboxManager.init();

        setMailboxManager(mailboxManager);
       
        deleteAllMailboxes();
       
View Full Code Here

Examples of org.apache.james.mailbox.jpa.openjpa.OpenJPAMailboxManager

        properties.put("openjpa.LockTimeout", locktimeout + "");
      
        entityManagerFactory = OpenJPAPersistence.getEntityManagerFactory(properties);
        JPACachingUidProvider uidProvider = new JPACachingUidProvider(entityManagerFactory);
        JPAMailboxSessionMapperFactory mf = new JPAMailboxSessionMapperFactory(entityManagerFactory);
        mailboxManager = new OpenJPAMailboxManager(mf, null, uidProvider);
        mailboxManager.init();

        // Set the lock timeout via SQL because of a bug in openJPA
        // https://issues.apache.org/jira/browse/OPENJPA-1656
        setH2LockTimeout();
View Full Code Here

Examples of org.apache.james.mailbox.jpa.openjpa.OpenJPAMailboxManager

        JPAMailboxSessionMapperFactory mf = new JPAMailboxSessionMapperFactory(entityManagerFactory, new JPAUidProvider(locker, entityManagerFactory), new JPAModSeqProvider(locker, entityManagerFactory));

        MailboxACLResolver aclResolver = new UnionMailboxACLResolver();
        GroupMembershipResolver groupMembershipResolver = new SimpleGroupMembershipResolver();

        JPAMailboxManager mailboxManager = new OpenJPAMailboxManager(mf, null, aclResolver, groupMembershipResolver);
        mailboxManager.init();

        setMailboxManager(mailboxManager);
       
        deleteAllMailboxes();
       
View Full Code Here

Examples of org.apache.james.mailbox.jpa.openjpa.OpenJPAMailboxManager

        JPAMailboxSessionMapperFactory mf = new JPAMailboxSessionMapperFactory(entityManagerFactory, new JPAUidProvider(locker, entityManagerFactory), new JPAModSeqProvider(locker, entityManagerFactory));

        MailboxACLResolver aclResolver = new UnionMailboxACLResolver();
        GroupMembershipResolver groupMembershipResolver = new SimpleGroupMembershipResolver();

        mailboxManager = new OpenJPAMailboxManager(mf, null, aclResolver, groupMembershipResolver);
        mailboxManager.init();

        // Set the lock timeout via SQL because of a bug in openJPA
        // https://issues.apache.org/jira/browse/OPENJPA-1656
        setH2LockTimeout();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.