Package com.sun.messaging.ums.provider.openmq

Examples of com.sun.messaging.ums.provider.openmq.ProviderDestinationService


    private static ProviderDestinationService service = null;
   
    public static void init (Properties props) throws JMSException {
        //props = props;
       
        service = new ProviderDestinationService();
        service.init(props);
    }
View Full Code Here


                } else if (isAdmin) {

                    String user = req.getParameter(Constants.USER);
                    String pass = req.getParameter(Constants.PASSWORD);
                    ProviderDestinationService pds = DestinationService.getProviderDestinationService(null);

                    pds.authenticate(user, pass);

                    String flag = req.getParameter(ADMIN_DEBUG);

                    boolean debug = Boolean.valueOf(flag).booleanValue();
View Full Code Here

     * @return  The service implementation must construct a proper formatted
     * java string object and return as the request response.
     */
     public ReadOnlyResponseMessage request (ReadOnlyRequestMessage request) {
        
        ProviderDestinationService pds = DestinationService.getProviderDestinationService(null);
                  
        String user = request.getMessageProperty (Constants.USER);
       
        String pass = request.getMessageProperty (Constants.PASSWORD);
       
        String respMsg = pds.listDestinations(user, pass);
       
        ReadOnlyResponseMessage rorm = ReadOnlyMessageFactory.createResponseMessage();
       
        rorm.setResponseMessage (respMsg);
       
View Full Code Here

    public ReadOnlyResponseMessage request(ReadOnlyRequestMessage request) {

        try {
         
          // authenticate by trying to create a JMX connection to the broker
            ProviderDestinationService pds = DestinationService.getProviderDestinationService(null);
            String user = request.getMessageProperty(Constants.USER);
            String pass = request.getMessageProperty(Constants.PASSWORD);
            pds.authenticate(user, pass);

            String respMsg = null;

            //create a new instance of ums xml document.
            Document doc = XMLDataBuilder.newUMSDocument();
View Full Code Here

        boolean debug = false;

        try {
          // authenticate by trying to create a JMX connection to the broker
            ProviderDestinationService pds = DestinationService.getProviderDestinationService(null);
            String user = request.getMessageProperty(Constants.USER);
            String pass = request.getMessageProperty(Constants.PASSWORD);
            pds.authenticate(user, pass);

            String flag = request.getMessageProperty("debug");

            debug = Boolean.valueOf(flag).booleanValue();
View Full Code Here

     * @param props
     * @return  The service implementation must construct a proper formatted
     * java string object and return as the request response.
     */
    public ReadOnlyResponseMessage request (ReadOnlyRequestMessage request) {
         ProviderDestinationService pds = DestinationService.getProviderDestinationService(null);
           
        String destname = request.getMessageProperty (Constants.DESTINATION_NAME);
           
        String domain = request.getMessageProperty (Constants.DOMAIN);
           
        String user = request.getMessageProperty (Constants.USER);
       
        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);
View Full Code Here

TOP

Related Classes of com.sun.messaging.ums.provider.openmq.ProviderDestinationService

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.