Changeset 66


Ignore:
Timestamp:
06/26/13 16:14:45 (11 years ago)
Author:
stoda
Message:

startEventTrigger added

Location:
trunk/src
Files:
5 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/main/java/omq/common/broker/Broker.java

    r59 r66  
    150150                try {
    151151                        remote.startRemoteObject(reference, this);
     152                        remoteObjs.put(reference, remote);
     153                } catch (Exception e) {
     154                        throw new RemoteException(e);
     155                }
     156        }
     157       
     158        public void startTriggerEvent(String reference, RemoteObject remote) throws RemoteException {
     159                try {
     160                        remote.startTriggerEvent(reference, this);
    152161                        remoteObjs.put(reference, remote);
    153162                } catch (Exception e) {
  • trunk/src/main/java/omq/server/RemoteObject.java

    r58 r66  
    9090        }
    9191
     92        public void startTriggerEvent(String reference, Broker broker) throws Exception {
     93                this.broker = broker;
     94                UID = reference;
     95                if (channel == null || !channel.isOpen()) {
     96                        channel = broker.getChannel();
     97                }
     98        }
     99
    92100        @Override
    93101        public void run() {
Note: See TracChangeset for help on using the changeset viewer.