Package org.apache.commons.messenger

Examples of org.apache.commons.messenger.Messenger


    public void doTag(XMLOutput output) throws Exception {       
        ConnectionContext messengerTag = (ConnectionContext) findAncestorWithClass( ConnectionContext.class );
        if ( messengerTag == null ) {
            throw new JellyException("<jms:destination> tag must be within a <jms:connection> or <jms:send> or <jms:receive> tag");
        }
        Messenger messenger = messengerTag.getConnection();
        String subject = (name != null) ? name : getBodyText();
        Destination destination = messenger.getDestination( subject );
        if ( var != null ) {
            context.setVariable( var, destination );
        }
        else {
            MessageOperationTag tag = (MessageOperationTag) findAncestorWithClass( MessageOperationTag.class );
View Full Code Here

TOP

Related Classes of org.apache.commons.messenger.Messenger

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.