Package com.sun.enterprise.ee.cms.core

Examples of com.sun.enterprise.ee.cms.core.MessageSignal


    public void consumeSignal(Signal signal) throws ActionException {
        if (logger.isLoggable(Level.FINER)) {
            logger.finer("MessageReceiver Consumed: " + signal);
        }
        if (signal instanceof MessageSignal) {
            MessageSignal ms = MessageSignal.class.cast(signal);
            if (ms.getTargetComponent().equalsIgnoreCase(componentName)) {
                 if (this.serverName == null ||
                         this.serverName.equalsIgnoreCase(serverName)) {
                     if (logger.isLoggable(Level.FINER)) {
                        logger.finer("MessageReceiver Processing.... "
                        + ms.getMessage());
                     }
                     processMessage(ms.getMessage(), signal.getMemberToken());
                 }
            }
        }
    }
View Full Code Here


    public Action produceAction() {
        return new MessageAction() {
            public void consumeSignal(Signal signal) {
                try {
                    signal.acquire();
                    MessageSignal messageSignal = (MessageSignal) signal;
                    byte[] payload = messageSignal.getMessage();
                    int size = payload.length;
                    long ejbID = bytesToLong(payload, 0);
                    if (size == 8) {
                        _logger.log(Level.WARNING, "ReadOnlyBeanMessageActionFactoryImpl: "
                                + " Got message for ejbID: " + ejbID);
View Full Code Here

        }
    }

    public void processNotification(Signal signal) {
        try {
            MessageSignal messageSignal = (MessageSignal) signal;
            byte[] payload = messageSignal.getMessage();
            int size = payload.length;
            long ejbID = bytesToLong(payload, 0);
            if (size == 8) {
                _logger.log(Level.WARNING, "ReadOnlyBeanMessageCallBack: " + " Got message for ejbID: " + ejbID);
                _readOnlyBeanService.handleRefreshAllRequest(ejbID);
View Full Code Here

    }

    public void processNotification(Signal signal) {
        Logger _logger = ejbContainerUtil.getLogger();
        try {
            MessageSignal messageSignal = (MessageSignal) signal;
            byte[] payload = messageSignal.getMessage();
            int size = payload.length;
            long ejbID = bytesToLong(payload, 0);
            if (size == 8) {
                _logger.log(Level.WARNING, "ReadOnlyBeanMessageCallBack: " + " Got message for ejbID: " + ejbID);
                _readOnlyBeanService.handleRefreshAllRequest(ejbID);
View Full Code Here

TOP

Related Classes of com.sun.enterprise.ee.cms.core.MessageSignal

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.