How to listen for conversation timeout in weld/seam

1.1k Views Asked by At

Currently working on an application which contains multiple tabbed conversations. When a conversation times out I want to close the tab associated with that conversation.

Is there a way to listen for a conversation timeout or do I just have to keep polling and checking to see if the conversation has timed out?

2

There are 2 best solutions below

0
Sully On
@Destroy @Remove
public void destroy() {
  //Close tabs
}
0
RoshanKumar Mutha On

Use Destroy annotation for the conversion scoped bean method where you want to know that the conversation is time out or ended.