Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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:20]
admin
jvx:firstapp_step-by-step [2018/01/30 10:34]
admin
Line 54: Line 54:
  
   * **File / New / Java Project**   * **File / New / Java Project**
-  * Note that the project has to be set up in the application folder firstapp \\ {{:​jvx:​newproject.png?​nolink|}} +  * Note that the project has to be set up in the application folder ​''​firstapp'' ​\\ {{:​jvx:​newproject.png?​nolink|}} 
-  * **Remove** the src folder from the **Source Folders** \\ **Set** the folders ''​src.client'',​ ''​src.server''​ and ''​test''​ as **Source Folder** \\ {{:​jvx:​newproject_folders.png?​nolink|}}+  * **Remove** the ''​src'' ​folder from the **Source Folders** \\ **Set** the folders ''​src.client'',​ ''​src.server''​ and ''​test''​ as **Source Folder** \\ {{:​jvx:​newproject_folders.png?​nolink|}}
   * **Add** the ''​jvx.jar''​ library, from the project directory ''​JVxFirstApp/​libs/​server''​ \\ {{:​jvx:​newproject_libs.png?​nolink|}}   * **Add** the ''​jvx.jar''​ library, from the project directory ''​JVxFirstApp/​libs/​server''​ \\ {{:​jvx:​newproject_libs.png?​nolink|}}
   * The project can now be created   * The project can now be created
Line 62: Line 62:
  
 {{:​jvx:​project_eclipse.png?​nolink|}} {{:​jvx:​project_eclipse.png?​nolink|}}
 +
 +The ''​src''​ folder can be deleted for consistency,​ as it is not needed in our application.
  
 == Application development == == Application development ==
Line 112: Line 114:
 </​server>​ </​server>​
 </​file>​ </​file>​
-\\  +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 173: 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:​
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information