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
jvx:communication:connections [2018/02/01 10:37]
admin
jvx:communication:connections [2020/06/08 15:57] (current)
cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation)
Line 1: Line 1:
 ~~Title: HttpConnection vs. VMConnection vs. DirectServerConnection~~ ~~Title: HttpConnection vs. VMConnection vs. DirectServerConnection~~
  
-JVx is generally used to develop multi-tier applicationswith an emphasis on databases. To facilitate data exchange between client and enterprise tier, a transport layer is required. This transport layer not only has a very abstract definition in JVx, but an implementation based on http(s) ​also already exists.+JVx is generally used to develop multi-tier applications with an emphasis on databases. To facilitate data exchange between client and enterprise tier, a transport layer is required. This transport layer not only has a very abstract definition in JVx, but an implementation based on http(s) already exists.
  
-The transport or communication layer was designed protocol-independent. It is therefore possible to use the communication classes for different protocol implementations without adaption.+The transport or communication layer was designed protocol-independent. It isthereforepossible to use the communication classes for different protocol implementations without adaption.
  
 The following is an example of protocol-independent use: The following is an example of protocol-independent use:
Line 17: Line 17:
 </​file>​ </​file>​
  
-The http protocol defines that a web or application server has to be used. This makes development more difficult, since an application server always has to be launched before the actual business logic can be tested.  +The http protocol defines that a web or application server has to be used. This makes development more difficult ​as an application server always has to be launched before the actual business logic can be tested.  
-Of course lightweight application servers are availablesuch as Jetty or the Eclipse WTP with integrated Tomcat support. Nonetheless relationships have to be considered and configurations have to be made. +Of courselightweight application servers are available such as Jetty or the Eclipse WTP with integrated Tomcat support. Nonethelessrelationships have to be considered and configurations have to be made. 
 This is something we would rather live without, especially the search for communication errors. The fewer components have to be considered, the easier the search will be. This is something we would rather live without, especially the search for communication errors. The fewer components have to be considered, the easier the search will be.
  
 To support the developer as much as possible, JVx includes the VMConnection and the DirectServerConnection in addition to the HttpConnection. To support the developer as much as possible, JVx includes the VMConnection and the DirectServerConnection in addition to the HttpConnection.
  
-The VMConnection can be seen as equivalent to the HttpConnection with the only difference that the communication happens without an application server and without http protocol. The server is automatically started in the current VM and, just as with the HttpConnection is accessed via streams. The transferred objects are always serialized.+The VMConnection can be seen as equivalent to the HttpConnection with the only difference that the communication happens without an application server and without http protocol. The server is automatically started in the current VM and, just as with the HttpConnectionis accessed via streams. The transferred objects are always serialized.
  
 This type of communication makes the developer´s work much easier, but there is an even better way. This type of communication makes the developer´s work much easier, but there is an even better way.
Line 29: Line 29:
 Both the VMConnection and the HttpConnection serialize and de-serialize the objects. However, if the server is running on the same VM as the client, serialization would not be necessary. ​ Both the VMConnection and the HttpConnection serialize and de-serialize the objects. However, if the server is running on the same VM as the client, serialization would not be necessary. ​
  
-In this case the DirectServerConnection is used, which means that server functions are called directly via the server class and objects are passed on to methods directly. There is no serialization,​ which positively affects performance.+In this casethe DirectServerConnection is used, which means that server functions are called directly via the server class and objects are passed on to methods directly. There is no serialization,​ which positively affects performance.
  
-<fs 20px>​Note</​fs>​+\\  
 +**<fs 20px>​Note</​fs>​**
  
-At no point the developer ​has to take the communication protocol into account, since it is encapsulated by JVx. However, we have to be aware of the difference in operation between DirectServerConnection and VMConnection or HttpConnection, since the object serialization has to be considered during troubleshooting. +At no point does the developer ​have to take the communication protocol into account ​as it is encapsulated by JVx. However, we have to be aware of the difference in operation between DirectServerConnection and VMConnection or HttpConnection ​as the object serialization has to be considered during troubleshooting. 
-In addition, during a VMConnection or a DirectServerConnectionwith implicitly started server, the server is stopped when the application is stopped.+In addition, during a VMConnection or a DirectServerConnection with implicitly started server, the server is stopped when the application is stopped.
  
-During the development process we recommend the use of the DirectServerConnection. If special serializers have to be implemented or serialization errors have to be debugged there is no way around the VMConnection.+During the development processwe recommend the use of the DirectServerConnection. If special serializers have to be implementedor serialization errors have to be debuggedthere is no way around the VMConnection.
  
 During productive operation, the HttpConnection or a special IConnection implementation is required. During productive operation, the HttpConnection or a special IConnection implementation is required.
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information