- Timestamp:
- 10/16/13 16:19:02 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/supervisor/src/main/java/omq/client/proxy/MultiProxymq.java
r99 r105 25 25 private static final String multi = "multi#"; 26 26 27 private String uid;27 private String reference; 28 28 private Broker broker; 29 29 private Serializer serializer; … … 33 33 private transient String serializerType; 34 34 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; 37 37 this.broker = broker; 38 38 serializer = broker.getSerializer(); 39 39 40 40 Properties env = broker.getEnvironment(); 41 exchange = multi + uid;41 exchange = multi + reference; 42 42 serializerType = env.getProperty(ParameterQueue.PROXY_SERIALIZER, Serializer.JAVA); 43 43 } … … 52 52 53 53 // 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(); 55 55 56 56 byte[] bytesRequest = serializer.serialize(serializerType, request); 57 57 broker.publishMessge(exchange, routingkey, props, bytesRequest); 58 58 59 logger.debug("Proxymq: " + uid+ " invokes " + methodName + ", corrID" + corrId + ", exchange: " + exchange + ", replyQueue: " + replyQueueName59 logger.debug("Proxymq: " + reference + " invokes " + methodName + ", corrID" + corrId + ", exchange: " + exchange + ", replyQueue: " + replyQueueName 60 60 + ", serializerType: " + serializerType + ", multi call: " + request.isMulti() + ", async call: " + request.isAsync()); 61 61
Note: See TracChangeset
for help on using the changeset viewer.