Hi, > I think this way is suitable for standalone instances, but for an embedded > jackrabbit (jackrabbit inside a web app) perhaps this is a better method
There are two problem: - Casting to an implementation class is bad for compatibility. You are not using an interface, you are using concrete classes. This will break in future versions of Jackrabbit. - Security: (only admin sessions should be able to run data store garbage collection). In future versions of Jackrabbit this feature may be removed for this reason. Regards, Thomas
