Examples of removeMessage()


Examples of com.sun.messaging.jmq.jmsserver.core.Destination.removeMessage()

                Destination d= ref.getDestination();
                try {
                    if (ref.isDead()) {
                        d.removeDeadMessage(ref);
                    } else {
                        d.removeMessage(ref.getSysMessageID(),
                           RemoveReason.ACKNOWLEDGED);
                    }
                } catch (Exception ex) {
                    Object[] eparam = {(ref == null ? "null":ref.toString()),
                                       (d == null ? "null":d.getUniqueName()), ex.getMessage()};
View Full Code Here

Examples of org.apache.activemq.broker.jmx.QueueViewMBean.removeMessage()

    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        if (messageId != null) {
            QueueViewMBean queueView = getQueue();
            if (queueView != null) {
                System.out.println("#### removing message: " + messageId);
                queueView.removeMessage(messageId);
            } else {
                System.out.println("#### NO QUEUE!");
            }
        }
        return redirectToBrowseView();
View Full Code Here

Examples of org.apache.activemq.broker.jmx.QueueViewMBean.removeMessage()

    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        if (messageId != null) {
            QueueViewMBean queueView = getQueueView();
            if (queueView != null) {
                log.info("Removing message " + getJMSDestination() + "(" + messageId + ")");
                queueView.removeMessage(messageId);
            } else {
              log.warn("No queue named: " + getPhysicalDestinationName());
            }
        }
        return redirectToBrowseView();
View Full Code Here

Examples of org.apache.activemq.broker.jmx.QueueViewMBean.removeMessage()

        final CompositeData messages[] = queueView.browse();
        messageID = (String) messages[0].get("JMSMessageID");
        assertNotNull(messageID);
        assertNotNull(queueView.getMessage(messageID));
        LOG.debug("Attempting to remove message ID: " + messageID);
        queueView.removeMessage(messageID);
        assertNull(queueView.getMessage(messageID));
    }

    private QueueViewMBean getProxyToQueueViewMBean() throws MalformedObjectNameException, NullPointerException,
            JMSException {
View Full Code Here

Examples of org.apache.activemq.broker.jmx.QueueViewMBean.removeMessage()

    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        if (messageId != null) {
            QueueViewMBean queueView = getQueueView();
            if (queueView != null) {
                log.info("Removing message " + getJMSDestination() + "(" + messageId + ")");
                queueView.removeMessage(messageId);
            } else {
              log.warn("No queue named: " + getPhysicalDestinationName());
            }
        }
        return redirectToDestinationView();
View Full Code Here

Examples of org.apache.activemq.store.MessageStore.removeMessage()

        }
        for(int i=0;i<list.size();i++){
            TxCommand command=(TxCommand) list.get(i);
            MessageStore ms=transactionStore.getStoreById(command.getMessageStoreKey());
            if(command.isRemove()){
                ms.removeMessage(null,(MessageAck) command.getCommand());
            }
        }
    }
   
    List getList(){
View Full Code Here

Examples of org.apache.activemq.store.MessageStore.removeMessage()

        }
        for (int i = 0; i < list.size(); i++) {
            TxCommand command = list.get(i);
            MessageStore ms = transactionStore.getStoreById(command.getMessageStoreKey());
            if (command.isRemove()) {
                ms.removeMessage(null, (MessageAck)command.getCommand());
            } else if (command.isAck()) {
                ((TopicMessageStore)ms).acknowledge(null, command.getClientId(), command.getSubscriptionName(),
                        command.getMessageId(), (MessageAck)command.getCommand());
            }
        }
View Full Code Here

Examples of org.eclipse.ui.forms.IMessageManager.removeMessage()

    @Override
    protected void refreshFromModel() {
        lock.modifyOperation(new Runnable() {
            public void run() {
                IMessageManager messages = getManagedForm().getMessageManager();
                messages.removeMessage(MESSAGE_KEY, cmbFramework);
                try {
                    frameworkViewer.setInput(Central.getWorkspace());
                } catch (Exception e) {
                    messages.addMessage(MESSAGE_KEY, "Unable to load OSGi Framework list. " + e.getMessage(), null, IMessageProvider.ERROR, cmbFramework);
                }
View Full Code Here

Examples of org.eclipse.ui.forms.IMessageManager.removeMessage()

        }
    }

    private void reloadRepos() {
        final IMessageManager messages = getManagedForm().getMessageManager();
        messages.removeMessage(MESSAGE_KEY, viewer.getControl());
        allRepos.clear();

        try {
            allRepos.addAll(Central.getWorkspace().getPlugins(Repository.class));
        } catch (Exception e) {
View Full Code Here

Examples of org.eclipse.ui.forms.IMessageManager.removeMessage()

                public Void run(final Workspace ws) {
                    SWTConcurrencyUtil.execForControl(viewer.getControl(), true, new Runnable() {
                        public void run() {
                            allRepos.clear();
                            allRepos.addAll(ws.getPlugins(Repository.class));
                            messages.removeMessage(MESSAGE_KEY, viewer.getControl());
                        }
                    });
                    return null;
                }
            });
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.