Using an observer pattern with EJB and AJAX

I want to create an Ajax gui that is notified of any state changes occurring in my ejb application. To achieve this, it seemed to me that I was creating a stateful ejb (3.0) that implements the Observable interface, to which the Ajax client is added as an observer. First, is this possible with Ajax. If so, is this a good design idea or is there a better way to do this?

Thanks in advance!

Greetings

Andreas

+3
source share
2 answers

, "Reverse-Ajax", , . Ajax, - . Ajax , , , , - DWR.

http://directwebremoting.org/dwr/reverse-ajax

, webapp .., , .

, . , , - Flex , , . , , , , , .

+2
0

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


All Articles