You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,26 @@ Source code for the example is located in /src/main/java/com/openfin/desktop/dem
105
105
106
106
3. dockToStartupApp and undockFromStartupApp show to dock and undock 2 windows.
107
107
108
+
## Source Code Review for JNLP Example
108
109
110
+
Source code for the example is located in /src/main/java/com/openfin/desktop/demo/JNLPExample.java. The followings overview of how it communicates with OpenFin Runtime with API calls supported by the Java adapter:
111
+
112
+
1. Create connection object:
113
+
114
+
this.desktopConnection = new DesktopConnection("WebStartExample");
115
+
116
+
This code just creates an instance and it does not try to connect to runtime.
listener is an instance of DesktopStateListener which provides callback on status of connections to runtime. connectToVersion connects to "stable" version of Runtime. If "stable" version is not running, this method will try to start it.
123
+
124
+
3. Once the Runtime is running, launchHTML5App method is called to start Hello OpenFin demo app.
125
+
126
+
4. To run the demo, please import webstart/OpenFinSigner.csr into Java Webstart as Signer CA first, and then load
127
+
[Demo JNLP](http://openfin.github.io/java-example/webstart/JNLPExample.jnlp) to start the demo.
0 commit comments