jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Quertyn <aurelien_couv...@yahoo.fr>
Subject Jackrabbit Webdav on Glassfish And Garbage Collector
Date Mon, 06 Jul 2009 10:22:09 GMT

I deploy jackrabbit on glassfish. I use web interface to upload edit and
remove file. But i need to implement garbage collector who's starting with
jackrabbit server. But when i trying to connect to repository i have an
error > org.apache.jackrabbit.rmi.client.ClientXASession cannot be cast to
org.apache.jackrabbit.core.SessionImpl. What can i do to implement garbage
collector ?

This is how i try to connect to repository :
Repository repository = new
URLRemoteRepository("http://127.0.0.1:8088/mybox/rmi");
Session session = repository.login(new 
SimpleCredentials("GarbageCollector","GarbageCollector".toCharArray()));
SessionImpl si = (SessionImpl) session;
GarbageCollector gc = si.createDataStoreGarbageCollector();
-- 
View this message in context: http://www.nabble.com/Jackrabbit-Webdav-on-Glassfish-And-Garbage-Collector-tp24353001p24353001.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message