Ignore:
Timestamp:
10/16/13 16:19:02 (11 years ago)
Author:
stoda
Message:

UID changed to reference
TODO: add UID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/supervisor/src/main/java/omq/client/proxy/MultiProxymq.java

    r99 r105  
    2525        private static final String multi = "multi#";
    2626
    27         private String uid;
     27        private String reference;
    2828        private Broker broker;
    2929        private Serializer serializer;
     
    3333        private transient String serializerType;
    3434
    35         public MultiProxymq(String uid, Class<?> clazz, Broker broker) throws Exception {
    36                 this.uid = uid;
     35        public MultiProxymq(String reference, Class<?> clazz, Broker broker) throws Exception {
     36                this.reference = reference;
    3737                this.broker = broker;
    3838                serializer = broker.getSerializer();
    3939
    4040                Properties env = broker.getEnvironment();
    41                 exchange = multi + uid;
     41                exchange = multi + reference;
    4242                serializerType = env.getProperty(ParameterQueue.PROXY_SERIALIZER, Serializer.JAVA);
    4343        }
     
    5252
    5353                // Add the correlation ID and create a replyTo property
    54                 BasicProperties props = new BasicProperties.Builder().appId(uid).correlationId(corrId).type(serializerType).build();
     54                BasicProperties props = new BasicProperties.Builder().appId(reference).correlationId(corrId).type(serializerType).build();
    5555
    5656                byte[] bytesRequest = serializer.serialize(serializerType, request);
    5757                broker.publishMessge(exchange, routingkey, props, bytesRequest);
    5858
    59                 logger.debug("Proxymq: " + uid + " invokes " + methodName + ", corrID" + corrId + ", exchange: " + exchange + ", replyQueue: " + replyQueueName
     59                logger.debug("Proxymq: " + reference + " invokes " + methodName + ", corrID" + corrId + ", exchange: " + exchange + ", replyQueue: " + replyQueueName
    6060                                + ", serializerType: " + serializerType + ", multi call: " + request.isMulti() + ", async call: " + request.isAsync());
    6161
Note: See TracChangeset for help on using the changeset viewer.