Package com.sun.messaging.ums.readonly

Examples of com.sun.messaging.ums.readonly.ReadOnlyResponseMessage


       
        try {
           
          //respMsg = readOnlyService.request(map);
          ReadOnlyRequestMessage rom = ReadOnlyMessageFactory.createRequestMessage(map, req.getInputStream());
          ReadOnlyResponseMessage respm = readOnlyService.request(rom);
         
          respMsg = respm.getResponseMessage();
         
          //get status code from respm
          status = respm.getStatusCode();
         
          resp.setStatus(status);
 
          if (isHTML (respMsg)) {
              resp.setHeader(CONTENT_TYPE, HTML_CONTENT_TYPE);
View Full Code Here


       
        String pass = request.getMessageProperty (Constants.PASSWORD);
       
        String respMsg = bis.getBrokerInfo(request, user, pass);
       
        ReadOnlyResponseMessage rorm = ReadOnlyMessageFactory.createResponseMessage();
       
        rorm.setResponseMessage (respMsg);
       
        UMSServiceImpl.logger.info ("getBrokerInfo invoked ..." + ", user =" +  user);
       
        return rorm;
     }
View Full Code Here

                respMsg = "Broker is alive, round trip = " + (end - start) + " milli secs.";
            } else {
                respMsg = "Broker is not responding for more than 30 seconds.";
            }
           
            ReadOnlyResponseMessage response = ReadOnlyMessageFactory.createResponseMessage();
           
            response.setResponseMessage(respMsg);
           
            return response;
           
        } catch (Exception e) {
View Full Code Here

             
            service.sendText(null, isTopic, destName, msg, map);
           
            respMsg = "Message sent: " + msg + ", destination = " + destName + ", domain=" + domainName;
           
            ReadOnlyResponseMessage response = ReadOnlyMessageFactory.createResponseMessage();
           
            response.setResponseMessage(respMsg);
           
            return response;
           
        } catch (Exception e) {
View Full Code Here

                msg2 = "receive timeout, destination=" + destName + ", timeout=" + timeout + ", domain=" + domainName;
            }
           
            respMsg = msg2;
           
            ReadOnlyResponseMessage response = ReadOnlyMessageFactory.createResponseMessage();
           
            response.setResponseMessage(respMsg);
           
            return response;
           
        } catch (Exception e) {
View Full Code Here

       
        String pass = request.getMessageProperty (Constants.PASSWORD);
       
        String respMsg = pds.listDestinations(user, pass);
       
        ReadOnlyResponseMessage rorm = ReadOnlyMessageFactory.createResponseMessage();
       
        rorm.setResponseMessage (respMsg);
       
        UMSServiceImpl.logger.info ("listDestinations invoked ..." + ", user =" +  user);
       
        return rorm;
     }
View Full Code Here

            XMLDataBuilder.addChildElement(root, maxClient);

            //transform xml document to a string
            respMsg = XMLDataBuilder.domToString(doc);

            ReadOnlyResponseMessage response = ReadOnlyMessageFactory.createResponseMessage();

            response.setResponseMessage(respMsg);

            return response;

        } catch (Exception e) {
View Full Code Here

            UMSServiceImpl.setDebug(debug);

            String respMsg = "service=debug, debug=" + debug;
           
            ReadOnlyResponseMessage response = ReadOnlyMessageFactory.createResponseMessage();
            response.setResponseMessage(respMsg);
           
            return response;
           
        } catch (Exception e) {
View Full Code Here

        String pass = request.getMessageProperty (Constants.PASSWORD);
       
        String respMsg = pds.queryDestination (destname, domain, user, pass);
       
        //System.out.println ("***** query1 request., domain=" + domain + ", dest="+destname+", user=" + user);
        ReadOnlyResponseMessage rorm = ReadOnlyMessageFactory.createResponseMessage();
       
        rorm.setResponseMessage (respMsg);
       
        UMSServiceImpl.logger.info ("queryDestination invoked ..., domain=" + domain + ", dest="+destname+", user=" + user);
       
        return rorm;
     }
View Full Code Here

TOP

Related Classes of com.sun.messaging.ums.readonly.ReadOnlyResponseMessage

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.