Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
jvx:firstapp_step-by-step [2018/01/30 10:29] admin |
jvx:firstapp_step-by-step [2018/01/30 10:34] admin |
||
---|---|---|---|
Line 114: | Line 114: | ||
</server> | </server> | ||
</file> | </file> | ||
- | The server does not need any special parameters for our application. | + | The server does not need any special parameters for our application. \\ \\ For the client, we now need a class of type ''javax.rad.application.IApplication''. A standard implementation of JVx is implemented via ''com.sibvisions.rad.application.Application''. We then derive our client from it and thereby create a class, in the directory ''src.client'', with the following source code: |
- | \\ | + | |
- | For the client, we now need a class of type ''javax.rad.application.IApplication''. A standard implementation of JVx is implemented via ''com.sibvisions.rad.application.Application''. We then derive our client from it and thereby create a class, in the directory ''src.client'', with the following source code: | + | |
<file java FirstApplication.java> | <file java FirstApplication.java> | ||
Line 176: | Line 174: | ||
^Method^Description^ | ^Method^Description^ | ||
|Constructor|The standard constructor cannot be used, as each application is started with a technology-dependent launcher. This launcher is already passed to the application in the constructor.| | |Constructor|The standard constructor cannot be used, as each application is started with a technology-dependent launcher. This launcher is already passed to the application in the constructor.| | ||
- | |createConnection|The communication protocol is initialised. A DirectServerConnection is sufficient for our application, because both the client and the server are started in the same VM. However, if an application server is in use, a HttpConnection could also be used.| | + | |createConnection|The communication protocol is initialised. A ''DirectServerConnection'' is sufficient for our application, because both the client and the server are started in the same VM. However, if an application server is in use, a ''HttpConnection'' could also be used.| |
- | |getApplicationName|Sets the application name. This name is needed for the communication with the server, as the latter uses the appropriate application configuration depending on the application name. \\ In our case the application name must be firstapp, because the work directory is also called ''../JVxFirstApp/rad/firstapp/''. The application name MUST always match the directory name!| | + | |getApplicationName|Sets the application name. This name is needed for the communication with the server, as the latter uses the appropriate application configuration depending on the application name. \\ In our case the application name must be ''firstapp'', because the work directory is also called ''../JVxFirstApp/rad/**firstapp**/''. The application name MUST always match the directory name!| |
It is now time for the first start of the application. To do so, we set up a Runtime configuration: | It is now time for the first start of the application. To do so, we set up a Runtime configuration: |