Ignore:
Timestamp:
10/19/13 13:20:44 (11 years ago)
Author:
stoda
Message:

Error detected: there should be only one thread listening to the multiexchange queue.
TODO: change this. Make refactor in the invocationthread. Change remotethreadpool to achieve this behavior.
AInvocationThread <- InvocationTHread

<- MultiInvocationTHread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/supervisor/src/main/java/omq/common/broker/RemoteBrokerImpl.java

    r103 r107  
    5050        @Override
    5151        public HasObject hasObjectInfo(String reference) throws RetryException {
     52                System.out.println("Hola soc un broker"+ getRef() + ", "+getUID()+ ", fil: "+Thread.currentThread().getId());
    5253                if (getBroker().getRemoteObjs().containsKey(reference)) {
    5354                        RemoteObject r = getBroker().getRemoteObjs().get(reference);
    5455                        int numThreads = r.getPool().getWorkers().size();
    55                         return new HasObject(this.getRef(), reference, true, numThreads);
     56                        return new HasObject(this.getUID(), reference, true, numThreads);
    5657                }
    57                 return new HasObject(this.getRef(), reference, false, 0);
     58                return new HasObject(this.getUID(), reference, false, 0);
    5859        }
    5960
Note: See TracChangeset for help on using the changeset viewer.