Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
jvx:communication:push_publish [2019/03/14 13:07]
admin
jvx:communication:push_publish [2019/03/14 13:09]
admin
Line 35: Line 35:
 SessionContext.getCurrentInstance().getCallBackBroker().publish("​COUNT_ADD",​ Integer.valueOf(1));​ SessionContext.getCurrentInstance().getCallBackBroker().publish("​COUNT_ADD",​ Integer.valueOf(1));​
 </​code>​ </​code>​
-on the server-side. But be careful if you run in a Thread, because the broker won't be available outside the server execution thread. So, use a cached instance of the broker, e.g.:+on the server-side. ​ 
 + 
 +**But be careful** if you run in a Thread, because the broker won't be available outside the server execution thread. So, use a cached instance of the broker, e.g.:
  
 <code java> <code java>
Line 41: Line 43:
  
 Thread th = new Thread(new Runnable() Thread th = new Thread(new Runnable()
-{ +{    ​
-    private int i = pStart; +
-    +
     public void run()     public void run()
     {     {
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information