Java: what are the best methods for communicating with a server server?

I have a WEB application (with a clean Java servlet) that has heavy computational work with access to the database, which can be performed in asynchronous mode. I plan to use a dedicated server to perform such batch jobs, and I wonder what tools / methods / protocols to use for communication between servlets on the WEB server and batch jobs on a new dedicated server. I am looking at JMS. Is this the right choice? Are there industry standards and / or commonly used methods? I also need to manage the queue and priority for multiple simultaneous jobs.

+3
source share
5 answers

JMS - . (, Sun JCAPS) JMS -.

JMS- Sun ( IBM Microsoft). -, , , . . -, .

- JMS () .

- JMS, , . .

+3

- .

, .

, /, , . . , . , .

+2

JMS . , , .

, -, , , , , ( JMS ). , - , - . JMS. , , , (, ) - AJAX.

, .

+1

, - . ( Java), .

, .

+1

JMS -:

  • -
  • JMS- ID, ( "" ). .
  • ( ) JMS, ""
  • While the calculation continues, the client polls the server to determine the status using another web service (together with the identifier). The server returns the status that is retrieved from the database. As soon as the server’s calculation is completed, the client will see the status “Completed” and find out that the calculation is completed.
0
source

Source: https://habr.com/ru/post/1698632/


All Articles