-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECF connection lost between two bundle. #170
Comments
Hi @bicikbico
I don't immediately know, but I can tell you that there is nothing intentionally in the remote services impl that would account for this behavior. My immediate guess is either something about the policies of your network, or something having to do with anti-virus software. I am going to ask you some questions about your environment and what you are seeing so that I can attempt to reproduce myself and get to the bottom of it (and fix it if it's a bug with ECF). Questions about your environment
Let's go from there. Thanks. |
First of all, thank you for your response. My answers to your questions are as follows;
We also implemented RemoteServiceEventListener to analyze what happens exactly at the moment of disconnection. At the exact time when the service gets unbind, we receive the messages "import_unregistration" and "export_unregistration". any help would be appreciated, thank you.
|
Is the operating system windows 64-bit or something else?
One thing about the above: you should not need any service properties for the client side...that is, you only need these service properties
on the host (the remote service exporter). The client typically discovers the remote service (via a data structure called the EndpointDescription) via some networked or xml-file based discovery mechanism. I believe that for those examples the discovery mechanism were set to be the jmdns discovery (which implements zeroconf protocol on a LAN). Could you try removing those service properties and the client and give it a try? Would it be possible for me to run/test your code? If you have a public repo available I can get that...or if you like you can just export the relevant projects to a zip file and send it to me at scottslewis at gmail.com. When we get things working I may ask you if I can use it to enhance the timeservice example, but if you don't agree I won't share it at all.
This is interesting, and makes me think it might be something about the client-side service properties. Reason is that your client-side service properties would...under normal conditions, export a second instance of the TimeService, so it might be that you are running two exported instances of the TimeService and that somehow the are getting confused.
When you do this, is there any error message to the log on the failed connect? Actually, it would be helpful to have both of the console logs (client and host). Or if you are able to provide me with the code I'll generate it myself.
Are these import and export unregistration messages both on client side? or import on client side, export on host side? Or something else?
Sure. If you are able to share your code (on public repo or via zip) I think that would be easiest, but if you aren't able to do that I understand. Just let me know. FWIW, I give you my word that I will keep everything confidential. |
I'm using the timeService.consumer and timeService.host examples from your repository, but no matter how I run it on any computer, exactly after one hour the connection between the two services gets disconnected, and the host stops providing service. What could be the reason for this?
The text was updated successfully, but these errors were encountered: