Examples of SyncServeurMessageJms


Examples of org.hoteia.qalingo.core.jms.syncserveur.producer.SyncServeurMessageJms

            if (message instanceof TextMessage) {
                TextMessage tm = (TextMessage) message;
                String valueJMSMessage = tm.getText();
               
                if(StringUtils.isNotEmpty(valueJMSMessage)){
                    final SyncServeurMessageJms syncServeurMessageJms = xmlMapper.getXmlMapper().readValue(valueJMSMessage, SyncServeurMessageJms.class);
                   
                    ServerStatus serverStatus = new ServerStatus();
                    serverStatus.setLastCheckReceived(new Date());
                    serverStatus.setServerName(syncServeurMessageJms.getServerName());
                    serverStatus.setServerIp(syncServeurMessageJms.getServerIp());
                   
                    serverService.saveOrUpdateServerStatus(serverStatus, valueJMSMessage);
                   
                    if (logger.isDebugEnabled()) {
                        logger.debug("Processed message, value: " + valueJMSMessage);
View Full Code Here

Examples of org.hoteia.qalingo.core.jms.syncserveur.producer.SyncServeurMessageJms

        if(logger.isDebugEnabled()){
            logger.debug("Begin, sync status");
        }

        try {
            final SyncServeurMessageJms syncServeurMessageJms = new SyncServeurMessageJms();
            syncServeurMessageJms.setEnvironmentName(environmentName);
            syncServeurMessageJms.setEnvironmentId(environmentId);
            syncServeurMessageJms.setApplicationName(applicationName);
            syncServeurMessageJms.setServerName(InetAddress.getLocalHost().getHostName());
            syncServeurMessageJms.setServerIp(InetAddress.getLocalHost().getHostAddress());
           
            // Generate and send the JMS message
            syncServeurStatusQueueProducer.generateAndSendMessages(syncServeurMessageJms);
           
        } catch (UnknownHostException 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.