Examples of JMSDestinationInfo


Examples of com.sun.enterprise.admin.common.JMSDestinationInfo

    *                                      *     *         *   type and other attributes.
      */
    public JMSDestinationInfo[] listJMSDestinations(String destType, String tgtName)
                throws JMSAdminException
    {
        JMSDestinationInfo  destInfoArray[] = null;
        JMSAdmin jmsAdmin = null;
        boolean connected = false;

        sLogger.entering(getClass().getName(), "listJMSDestinations", destType);
       
View Full Code Here

Examples of com.sun.enterprise.admin.common.JMSDestinationInfo

        }
    }

    private JMSDestinationInfo[] listAllDestinations(String[][] s)
    {
        JMSDestinationInfo  destInfo;
        Vector  dests = new Vector();
        String  destName, destType;

        // Convert the array[1] from JMSAdminConstants.QUEUE/TOPIC
        // to a JMSConstants.QUEUE/TOPIC
        for (int i = 0; i < s[1].length; i++) {
            destName = s[0][i];
            if (s[1][i].equals(Integer.valueOf(JMSConstants.QUEUE).toString())) {
                destType = JMSAdminConstants.JMS_DEST_TYPE_QUEUE;
            } else if (s[1][i].equals(Integer.valueOf(JMSConstants.TOPIC).toString())) {
                destType = JMSAdminConstants.JMS_DEST_TYPE_TOPIC;
            } else {
                destType = "";
            }
            destInfo = new JMSDestinationInfo(destName, destType);
            dests.addElement(destInfo);
        }

        if (dests.size() > 0)  {
            Object objArray[] = dests.toArray();
            JMSDestinationInfo   jmsDestArray[];
            int  size = dests.size();

            jmsDestArray = new JMSDestinationInfo [size];

            for (int i = 0; i < size; ++i)  {
View Full Code Here

Examples of com.sun.enterprise.admin.common.JMSDestinationInfo

        return (null);
    }

    private JMSDestinationInfo[] listDestinationsByType(String destType, String[][] s)
    {
        JMSDestinationInfo  destInfo;
        Vector      dests = new Vector();
        String       destName, type;
        String       lookFor = null;

        if (destType.equals(JMSAdminConstants.JMS_DEST_TYPE_TOPIC))
            lookFor = Integer.valueOf(JMSConstants.TOPIC).toString();
        else
            lookFor = Integer.valueOf(JMSConstants.QUEUE).toString();

        // Convert the array[1] from JMSAdminConstants.QUEUE/TOPIC
        // to a JMSConstants.QUEUE/TOPIC
        int j = 0;
        for (int i = 0; i < s[1].length; i++) {
            if (s[1][i].equals(lookFor)) {
                destName = s[0][i];
                if (s[1][i].equals(Integer.valueOf(JMSConstants.QUEUE).toString())) {
                    type = JMSAdminConstants.JMS_DEST_TYPE_QUEUE;
                } else if (s[1][i].equals(Integer.valueOf(JMSConstants.TOPIC).toString())) {
                    type = JMSAdminConstants.JMS_DEST_TYPE_TOPIC;
                } else {
                    type = "";
                }
                destInfo = new JMSDestinationInfo(destName, type);
                dests.addElement(destInfo);
            }
        }

        if (dests.size() > 0)  {
            Object     objArray[] = dests.toArray();
            JMSDestinationInfo   jmsDestArray[];
            int      size = dests.size();

            jmsDestArray = new JMSDestinationInfo [size];

            for (int i = 0; i < size; ++i)  {
View Full Code Here

Examples of com.sun.enterprise.admin.common.JMSDestinationInfo

                  if (jdiName.lastIndexOf('"') == (jdiName.length() - 1)) {
                      jdiName = jdiName.substring(0, jdiName.lastIndexOf('"'));
                  }
          }

                    JMSDestinationInfo jdi = new JMSDestinationInfo(jdiName, jdiType);

                    if(destType == null) {
                        jmsdi.add(jdi);
                    } else if (destType.equals(JMSAdminConstants.JMS_DEST_TYPE_TOPIC)
                            || destType.equals(JMSAdminConstants.JMS_DEST_TYPE_QUEUE)) {
View Full Code Here

Examples of org.apache.geronimo.console.jmsmanager.JMSDestinationInfo

            throws PortletException, IOException {       
        String resourceAdapterModuleName = request.getParameter(RESOURCE_ADAPTER_MODULE_NAME);
        JMSMessageHelper helper = JMSMessageHelperFactory.getMessageHelper(request, resourceAdapterModuleName);
        JMSMessageInfo[] messages;
        try {
            JMSDestinationInfo jmsDestinationInfo = JMSDestinationInfo.create(request);
            messages = helper.getMessagesList(request, jmsDestinationInfo, null);
            request.setAttribute(MESSAGES, messages);
            request.getPortletSession(true).setAttribute(MESSAGES, messages);
        } catch (Exception e) {
            portlet.addErrorMessage(request, portlet.getLocalizedString(request, "activemq.errorMsg03"), e.getMessage());
View Full Code Here

Examples of org.apache.geronimo.console.jmsmanager.JMSDestinationInfo

                    String destType = admins[j].getAdminObjectInterface().indexOf("Queue") > -1 ? "Queue" : "Topic";
                    String vendorName = module.getVendorName();
                    DestinationStatistics destinationStat = null;
                    if (physicalName != null) {                       
                        try {
                            JMSDestinationInfo jmsDestinationInfo = new JMSDestinationInfo();
                            jmsDestinationInfo.setPhysicalName(physicalName);
                            jmsDestinationInfo.setType(destType);
                            jmsDestinationInfo.setResourceAdapterModuleAbName(PortletManager.getNameFor(renderRequest, module));
                            destinationStat = JMSMessageHelperFactory.getJMSMessageHelper(vendorName).getDestinationStatistics(renderRequest, jmsDestinationInfo);
                        } catch (JMSException e) {
                            destinationStat = new DestinationStatistics();
                        }
                    }
View Full Code Here

Examples of org.apache.geronimo.console.jmsmanager.JMSDestinationInfo

                    String destType = admins[j].getAdminObjectInterface().indexOf("Queue") > -1 ? "Queue" : "Topic";
                    String vendorName = module.getVendorName();
                    DestinationStatistics destinationStat = null;
                    if (physicalName != null) {                       
                        try {
                            JMSDestinationInfo jmsDestinationInfo = new JMSDestinationInfo();
                            jmsDestinationInfo.setPhysicalName(physicalName);
                            jmsDestinationInfo.setType(destType);
                            jmsDestinationInfo.setResourceAdapterModuleAbName(PortletManager.getNameFor(renderRequest, module));
                            destinationStat = JMSMessageHelperFactory.getJMSMessageHelper(vendorName).getDestinationStatistics(renderRequest, jmsDestinationInfo);
                        } catch (JMSException e) {
                            destinationStat = new DestinationStatistics();
                        }
                    }
View Full Code Here

Examples of org.apache.geronimo.console.jmsmanager.JMSDestinationInfo

            throws PortletException, IOException {       
        String resourceAdapterModuleName = request.getParameter(RESOURCE_ADAPTER_MODULE_NAME);
        JMSMessageHelper helper = JMSMessageHelperFactory.getMessageHelper(request, resourceAdapterModuleName);
        JMSMessageInfo[] messages;
        try {
            JMSDestinationInfo jmsDestinationInfo = JMSDestinationInfo.create(request);
            messages = helper.getMessagesList(request, jmsDestinationInfo, null);
            request.setAttribute(MESSAGES, messages);
            request.getPortletSession(true).setAttribute(MESSAGES, messages);
        } catch (Exception e) {
            portlet.addErrorMessage(request, portlet.getLocalizedString(request, "activemq.errorMsg03"), e.getMessage());
View Full Code Here

Examples of org.apache.geronimo.console.jmsmanager.JMSDestinationInfo

            throws PortletException, IOException {       
        String resourceAdapterModuleName = request.getParameter(RESOURCE_ADAPTER_MODULE_NAME);
        JMSMessageHelper helper = JMSMessageHelperFactory.getMessageHelper(request, resourceAdapterModuleName);
        JMSMessageInfo[] messages;
        try {
            JMSDestinationInfo jmsDestinationInfo = JMSDestinationInfo.create(request);
            messages = helper.getMessagesList(request, jmsDestinationInfo, null);
            request.setAttribute(MESSAGES, messages);
            request.getPortletSession(true).setAttribute(MESSAGES, messages);
        } catch (Exception e) {
            portlet.addErrorMessage(request, portlet.getLocalizedString(request, "activemq.errorMsg03"), e.getMessage());
View Full Code Here

Examples of org.apache.geronimo.console.jmsmanager.JMSDestinationInfo

                    String destType = admins[j].getAdminObjectInterface().indexOf("Queue") > -1 ? "Queue" : "Topic";
                    String vendorName = module.getVendorName();
                    DestinationStatistics destinationStat = null;
                    if (physicalName != null) {                       
                        try {
                            JMSDestinationInfo jmsDestinationInfo = new JMSDestinationInfo();
                            jmsDestinationInfo.setPhysicalName(physicalName);
                            jmsDestinationInfo.setType(destType);
                            jmsDestinationInfo.setResourceAdapterModuleAbName(PortletManager.getNameFor(renderRequest, module));
                            destinationStat = JMSMessageHelperFactory.getJMSMessageHelper(vendorName).getDestinationStatistics(renderRequest, jmsDestinationInfo);
                        } catch (JMSException e) {
                            destinationStat = new DestinationStatistics();
                        }
                    }
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.