Package org.mom4j.messaging.select

Examples of org.mom4j.messaging.select.Element


        if(map.get(consumerId) != null) {
            String s = "consumer '" + consumerId + "' already registered " +
                       "for destination '" + destination + "'";
            throw new JMSException(s);
        }
        Element root = Element.NULL;
        if(messageSelector != null) {
            try {
                root = Query.parse(messageSelector);
            } catch(java.text.ParseException ex) {
                log.error("invalid Query: " + messageSelector, ex);
View Full Code Here


            if(map == null) {
                String s = "destination '" + destination + "' unknown";
                throw new InvalidDestinationException(s);
            }
        }
        Element e = (Element)map.get(consumerId);
        if(e == null) {
            throw new JMSException("unknown consumer '" + consumerId + "'");
        }
        if(e == Element.NULL) {
            return null;
View Full Code Here

                           String  consumerId,
                           boolean transacted)
        throws IOException,
               JMSException
    {
        Element e = this.console.getMessageSelector(destination, consumerId);

        Message ret = null;
        String dest = destination + "-" + consumerId;

        if(e != null) {
            while((ret =  this.console.receiveInternal(sessionId, dest)) != null) {
                if(e.match(ret)) {
                    break;
                }
            }
        } else {
            ret = this.console.receiveInternal(sessionId, dest);
View Full Code Here

                           String  destination,
                           String  consumerId,
                           boolean transacted)
        throws IOException, JMSException
    {
        Element e = this.console.getMessageSelector(destination, consumerId);

        Message ret = null;

        if(e != null) {
            PeekMessage pmsg = null;
            while((pmsg = this.console.peek(sessionId, destination)) != null) {
                if(e.match(pmsg.getMessage())) {
                    break;
                }
            }
            if(pmsg != null) {
                this.console.acknowledge(sessionId, pmsg);
View Full Code Here

TOP

Related Classes of org.mom4j.messaging.select.Element

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.