Hello,
I am relatively new to Apache Jackrabbit. I want to run GC on a remote
jackrabbit server. I tried using SessionImpl after fetching session from
JCRUtils.
Repository rmiRepository =
JcrUtils.getRepository("http://myhost/jackrabbit/rmi");
Session session = null;
try {
session = rmiRepository.login(new SimpleCredentials("",
"".toCharArray()),
"content");
GarbageCollector gc;
SessionImpl si = (SessionImpl)session;
gc = si.createDataStoreGarbageCollector();
However it gives the ClassCastException.
java.lang.ClassCastException:
org.apache.jackrabbit.rmi.client.ClientXASession cannot be cast to
org.apache.jackrabbit.core.SessionImpl
I couldn't find a way to create the RepositoryManager on a Remote (rmi)
Repository.
Any help in this regard is highly appreciated.
Thanks,
Parag
--
View this message in context:
http://jackrabbit.510166.n4.nabble.com/Running-GC-on-Remote-Jackrabbit-server-tp4661093.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.