0

I wonder how to make an EJB Timer be able to reach my Vaadin UI to update a GUI component once the job in background is done.

Is there any way to get it? I tried to get the UI using UI.getCurrent() in my EJB method, but it returns null.

I noticed that getCurrent() method looks up in a InheritableThreadLocal map for all current instances, but my guess is the EJB thread is not associated to my UI Thread.

Let my any ideas.

Thanks!

Carlos Alberto
  • 7,761
  • 13
  • 52
  • 72

0 Answers0