Hello Jukka, Yes i am using Jackrabbit remotely over the RMI layer.
My scenario is that, I am already setting some custom property on all the jcr:content node during initialization. Now this property is useful when there are any new updates on the node aswell as when the node is removed from the repository. So when i get an event for NODE_REMOVED, I need to pull out the property set on jcr:content node of the deleted node. I had a notion that the version history still remains eventhough you remove the node from the repository. Now my problem is to get a handle to jcr:content node and do some processing after getting the property. Do you think this can be achieved under present environment. thanks, Sudhan Jukka Zitting wrote: > > Hi, > > On 4/10/07, Sudhan <[EMAIL PROTECTED]> wrote: >> When i tried this, i am getting : >> >> Error : java.lang.ClassCastException: >> org.apache.jackrabbit.rmi.observation.ClientEventPoll$JCREvent >> >> when performing casting operation as >> (org.apache.jackrabbit.core.observation.EventImpl)event >> >> is there any thing i am doing wrong here. let me know. > > Casting the event to EventImpl only works when you're using a local > Jackrabbit instance, not when using Jackrabbit remotely over the RMI > layer. > > What's your use case for wanting to get the version history of a removed > node? > > BR, > > Jukka Zitting > > -- View this message in context: http://www.nabble.com/Getting-Version-History-after-the-node-is-deleted-tf3549983.html#a9927524 Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
