Package org.jboss.seam.jms

Examples of org.jboss.seam.jms.MessageManager


    private List<Object> evtCache = new ArrayList<Object>();

    private MessageManager getMessageBuilder() {
        Set<Bean<?>> beans = bm.getBeans(MessageManager.class);
        Bean<?> bean = bm.resolve(beans);
        MessageManager mb = (MessageManager) bm.getReference(bean, MessageManager.class, bm.createCreationalContext(bean));
        return mb;
    }
View Full Code Here


    }

    private void forwardEvent(Object event) {
        if (!this.route.isEgressEnabled())
            return;
        MessageManager msgBuilder = this.getMessageBuilder();
        if (event instanceof String) {
            msgBuilder.sendTextToDestinations(event.toString(), route.getDestinations().toArray(new Destination[]{}));
        } else {
            msgBuilder.sendObjectToDestinations(event, route.getDestinations().toArray(new Destination[]{}));
        }

    }
View Full Code Here

TOP

Related Classes of org.jboss.seam.jms.MessageManager

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.