use of org.apache.jackrabbit.jca.JCASessionHandle in project jackrabbit by apache.
the class ConnectionFactoryTest method testAllocation.
/**
* Test the connection factory allocation.
*/
public void testAllocation() throws Exception {
// Create the connection factory
Object cf = mcf.createConnectionFactory();
assertTrue(cf instanceof JCARepositoryHandle);
Repository repository = (Repository) cf;
// Open a new session
Session session = repository.login(JCR_SUPERUSER);
assertTrue(session != null);
assertTrue(session instanceof JCASessionHandle);
// Logout session
session.logout();
}
Aggregations