Package org.richfaces.application.push

Examples of org.richfaces.application.push.SessionTopicListener


       
        Topic topic = topicsContext.getOrCreateTopic(new TopicKey("inmobles"));
       
        topic.setMessageDataSerializer(DefaultMessageDataSerializer.instance());
       
        topic.addTopicListener(new SessionTopicListener() {
           
            public void processUnsubscriptionEvent(SessionUnsubscriptionEvent event) throws EventAbortedException {
                TopicKey topicKey = event.getTopicKey();
                Session session = event.getSession();
                System.out.println(MessageFormat.format("Session {0} disconnected from {1}", session.getId(), topicKey.getTopicAddress()));
View Full Code Here


       
        Topic topic = topicsContext.getOrCreateTopic(new TopicKey("inmobles"));
       
        topic.setMessageDataSerializer(DefaultMessageDataSerializer.instance());
       
        topic.addTopicListener(new SessionTopicListener() {
           
            public void processUnsubscriptionEvent(SessionUnsubscriptionEvent event) throws EventAbortedException {
                TopicKey topicKey = event.getTopicKey();
                Session session = event.getSession();
                System.out.println(MessageFormat.format("Session {0} disconnected from {1}", session.getId(), topicKey.getTopicAddress()));
View Full Code Here

TOP

Related Classes of org.richfaces.application.push.SessionTopicListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.