Examples of UMSServiceImpl


Examples of com.sun.messaging.ums.service.UMSServiceImpl

    public void init (ServiceContext context) throws SOAPException {
       
      super.init(context);
       
        //should we pass SerViceContext instead?
        MQService = new UMSServiceImpl (this.props);
       
        MQService.init();
       
    }
View Full Code Here

Examples of com.sun.messaging.ums.service.UMSServiceImpl

            Map map = request.getMessageProperties();
           
            String destName = "PING_"+  nextSequence() + "_" + System.currentTimeMillis();
            String msg = destName;
           
            UMSServiceImpl service = (UMSServiceImpl) this.initParams.get(DefaultReadOnlyService.JMSSERVICE);
           
            long start = System.currentTimeMillis();
           
            service.sendText(null, false, destName, msg, map);
           
            String msg2 = service.receiveText(null, destName, false, 30000, map);
           
            long end = System.currentTimeMillis();
           
            if (msg2 != null) {
                respMsg = "Broker is alive, round trip = " + (end - start) + " milli secs.";
View Full Code Here

Examples of com.sun.messaging.ums.service.UMSServiceImpl

            String domain = request.getMessageProperty(Constants.DOMAIN);
            boolean isTopic = Constants.TOPIC_DOMAIN.equals(domain);
           
            String domainName = (isTopic? "Topic":"Queue");
           
            UMSServiceImpl service = (UMSServiceImpl) this.initParams.get(DefaultReadOnlyService.JMSSERVICE);
             
            service.sendText(null, isTopic, destName, msg, map);
           
            respMsg = "Message sent: " + msg + ", destination = " + destName + ", domain=" + domainName;
           
            ReadOnlyResponseMessage response = ReadOnlyMessageFactory.createResponseMessage();
           
View Full Code Here

Examples of com.sun.messaging.ums.service.UMSServiceImpl

            }
           
            long timeout = Long.parseLong(stimeout);
            String domainName = (isTopic? "Topic":"Queue");
           
            UMSServiceImpl service = (UMSServiceImpl) this.initParams.get(DefaultReadOnlyService.JMSSERVICE);
             
            String msg2 = service.receiveText(null, destName, isTopic, timeout, map);
            if (msg2 == null) {
                msg2 = "receive timeout, destination=" + destName + ", timeout=" + timeout + ", domain=" + domainName;
            }
           
            respMsg = msg2;
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.