Hi,

I have an application which runs on JBoss and connects to Jackrabbit
repository through RMI(We have also deployed jackrabbit - webapp war inside
same instance of JBoss, ie. on local machine). Now my problem starts when I
unplug the network cable and after 5-6 seconds plug it back to the network
my application Session gets destroyed. This is because i am registering
Node_Added and Node_Deleted events by implementing
javax.jcr.observation.EventListener in my application. 

I can access the repository through DAVExplorer aswell as our customised
GUI. Now when i create a new node it gets added to the repository and but my
Class which is implementing EventListener interface is not able to  listen
to any of these events. 

The likely reason seems to me is that, the session it used before unplugging
is no longer available and thus there are no listeners registered after
unplug. And these behavior does not improve after re-plugging it back.
Meaning the session object is still null and thus cannot listen to any
events registered before.

I am using org.springmodules.jcr.JcrSessionFactory to get my session. Now
can somebody help me in resolving this problem or point me if i am doing
something wrong.

thanks for your support.

Sudhan
-- 
View this message in context: 
http://www.nabble.com/Problem-with-RMI%2C-JBOSS-reconnect-issues%2C-application-session-getting-null-tf4319183.html#a12299402
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Reply via email to