Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>On server-side, you can either:</p> <ul> <li>extend the <code>RemoteEventServiceServlet</code> (if you can/you are allowed to);</li> <li>use an in-process <code>EventExecutorService</code>.</li> </ul> <p>In the first case you already have an <code>addEvent()</code> method available right in the servlet, in the second case, you need to instantiate the executor service via:</p> <pre><code>EventExecutorServiceFactory factory = EventExecutorServiceFactory.getInstance(); EventExecutorService service = factory.getEventExecutorService(httpServletRequest) </code></pre> <p>Where <code>httpServletRequest</code> is the current http request (e.g., retrieve it using <code>getThreadLocalRequest()</code> in a RPC-based servlet).</p> <p>The point is that you need to define your <em>domain(s)</em> in which events will be published. Then you can freely use <code>addEvent(yourDomain, yourEvent)</code> (from your servlet, or from the executor) to send your event to all available clients that are listening to such event.</p> <p>In other words events are always broadcasted to all available clients registered on a specific <em>domain</em>. If you want to send an event to a specific client, then use <code>DomainFactory.USER_SPECIFIC_DOMAIN</code> as domain.</p> <p>P.S. You will probably have more visibility if you ask directly to the <a href="https://groups.google.com/forum/#!forum/gwteventservice" rel="nofollow">group</a> or the <a href="http://gwteventservice.freeforums.org/" rel="nofollow">forum</a>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload