What is the lifecycle? I assumed it was per instantiation of each page or component of a page that it was attached to. To reduce this (OO has a very definitive cradle/grave overhead on instatiations) I made it a singleton and I assign it to a session variable which is then

apply="${_wdNewUserCompletion}"

I've verified that the afterCompose is always called on the singleton but I didn't know if I was redundantly adding to something that was already managed by ZK.

public void onClick$backup() { try { resultLabel.setValue("Starting..."); // All the components is available.

desktop.enableServerPush(true);

DBBkRestI dbBkRest = DBBkRestImpl.getInstance(); dbBkRest.backupDB(); Call JMS server method which will send message to consumers. The following method of onMessage() is the listener. It will accept and display all the messages.

} catch (Exception e) { e.printStackTrace(); } }

@Override public void onMessage(Message message) { This method is extends javax.jms.MessageListener. It will be invoked whenever there are messages send from JMS server.

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!