Skip to main content

Posts

Showing posts with the label ejb

EJB - GWT. Notificate GWT(javaScript) client about some events happened

I want to make document printing service using GWT(javascript+servlet) and EJB. What is the best way to cause EJB to notificate GWT client about some event is happened? Of course, I can make it with using Timer (send request to EJB with some interval), but may be exist some more elegant way? (for example with callback, but I dont understand how to release it). P.S.: I will use multitier architectur: JavaScript(GWT)+Servlet(GWT RPC)+EJB. And i working on document printing service (i want to notificate client that some file(s) is printed (also will be good if you give me advice of making progress bar)). Thanks!