Package org.apache.stanbol.ontologymanager.servicesapi.session

Examples of org.apache.stanbol.ontologymanager.servicesapi.session.Session.open()


        Set<Session> sessions = new HashSet<Session>();
        // Create and open many sessions.
        synchronized (sessionManager) {
            for (int i = 0; i < size; i++) {
                Session ses = sessionManager.createSession();
                ses.open();
                sessions.add(ses);
            }
            // Check that 500 sessions have been created
            assertEquals(initialSize + size, sessionManager.getRegisteredSessionIDs().size());
        }
View Full Code Here


        assertTrue(zombi);
        // Try to resurrect them (hopefully failing)
        boolean resurrect = false;
        for (Session ses : sessions)
            try {
                ses.open();
                resurrect |= true;
            } catch (NonReferenceableSessionException e) {
                resurrect |= false;
                continue;
            }
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.