Community
Participate
Working Groups
Posted to forum I have two applications which communicate with OSGi remote services on the same system. But always after exactly one hour, the service consumer loses the remote services, although the host application still detects the consumer one in the remote registry. If I restart the consumer application, it doesn't find the remote services anymore and the host application doesn't detect any connection. I need to restart the host application to go back to normal. Does anyone have a solution to not lose the connection after this timeout?
This is strange. There is no timeout in the ECF generic server/client that would force such a disconnection after one hour. Why it's disconnecting for you after one hour is a bit of a mystery right now. First some questions that will help narrow things down: 1) What version of ECF are you using? 2) By same system to you mean the same host/localhost? 3) Are you able to reproduce this on some other system? 4) What OS is on this system? 5) What is your code doing during that hour? i.e. are some/all of the remote services being called/used? Or are they all idle? Would it be possible for me to run your app(s) locally to see if I can reproduce?