Package org.apache.openmeetings.data.chat

Examples of org.apache.openmeetings.data.chat.ChatDao.update()


        ChatDao dao = Application.getBean(ChatDao.class);
        ChatMessage m = new ChatMessage();
        m.setMessage(message);
        m.setSent(new Date());
        m.setFromUser(Application.getBean(UsersDao.class).get(WebSession.getUserId()));
        dao.update(m);
        IWebSocketConnectionRegistry reg = IWebSocketSettings.Holder.get(getApplication()).getConnectionRegistry();
        for (IWebSocketConnection c : reg.getConnections(getApplication())) {
          try {
            c.sendMessage(getMessage(m).toString());
          } catch(Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.