Unable to connect to openfin runtime using openfin java adapter

354 Views Asked by At

I have been trying to connect to the openfin runtime using openfin java adapter. I am not specifying any port to connect to. I am also providing my own implementation of DesktopStateListener with the methods onReady, onClose, onError, onMessage, onOutgoingMessage. But when I call connect method for some reason the connection is not established and none of these methods are being called as well. It doesn't show any stacktrace about any possible exception as well. I am stuck in this scenario and not sure how to proceed further. Can someone tell me how I can figure this out.

I have been following the below openfin document

https://developer.openfin.co/docs/java/latest/

Any pointers would be much appreciated. Thanks in advance. Cheers!

1

There are 1 best solutions below

3
Adam Saland On

Are you providing an instance of the RuntimeConfiguration object as seen in the documentation here? To launch and connect to a runtime, I believe this needs to be passed into the connect method in order to resolve download and launch runtime to be connected to.