jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "parag.kamat" <parag.ka...@loudcloudsystems.com>
Subject Running GC on Remote Jackrabbit server
Date Wed, 16 Jul 2014 12:28:28 GMT
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.

Mime
View raw message