I'm reopening this issue to investigate further whether it might have been premature to remove the complete configuration of the identity store. What probably should have been removed was only the template call, but I think we still want the jpaStore. If this is not specified then the default will be a file-based identity store.

As an alternative we could be explicit about this and use the original code, with the addition of having the EntityManager injected and set on the jpaTemplate:

    @Inject
    private JPATemplate jpaTemplate;
    
    @PersistenceContext(unitName = "picketbox-default" , type = PersistenceContextType.EXTENDED)
    private EntityManager entityManager;

    @Produces
    public ConfigurationBuilder produceConfiguration() {
        jpaTemplate.setEntityManager(entityManager);
    
Change By: Daniel Bevenius (15/Dec/12 6:25 AM)
Resolution: Done
Status: Resolved Reopened
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira