Java EE Submit a form and leave the background process to work?

I need to generate a report with java (exporting data from oracle), which can take several minutes, by the amount of data, so when I submit my form, the screen freezes until it finishes.

How to create a report in the background so that the user can continue viewing?

Jms How can I do this using JMS? (Any example or explanation is appreciated)

Is there another way? What would be the best option according to the Java EE specification?

+3
source share
1 answer

, JMS . , Message Driven Bean - EJB - . . JMS Message Driven Bean, .

EJB 3.1, EJB.

, , -. , / ServletContextListener, , , , .

, , , , , , .. . , (JMS , , async EJB 3.1., , - JDBC UserTransaction).

, .

+1

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


All Articles