Changeset 77 for trunk/src/main/java/omq/client/proxy
- Timestamp:
- 07/04/13 16:45:14 (11 years ago)
- Location:
- trunk/src/main/java/omq/client/proxy
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/omq/client/proxy/MultiProxymq.java
r75 r77 41 41 replyQueueName = env.getProperty(ParameterQueue.RPC_REPLY_QUEUE); 42 42 exchange = multi + uid; 43 serializerType = env.getProperty(ParameterQueue. SERIALIZER_NAME, Serializer.JAVA);43 serializerType = env.getProperty(ParameterQueue.PROXY_SERIALIZER, Serializer.JAVA); 44 44 } 45 45 -
trunk/src/main/java/omq/client/proxy/Proxymq.java
r76 r77 51 51 private transient Serializer serializer; 52 52 private transient Properties env; 53 private transient Integer deliveryMode = null; 53 54 private transient Map<String, byte[]> results; 54 55 … … 94 95 95 96 // set the serializer type 96 serializerType = env.getProperty(ParameterQueue.SERIALIZER_NAME, Serializer.JAVA); 97 serializerType = env.getProperty(ParameterQueue.PROXY_SERIALIZER, Serializer.JAVA); 98 if (env.getProperty(ParameterQueue.DELIVERY_MODE) != null) { 99 deliveryMode = Integer.parseInt(env.getProperty(ParameterQueue.DELIVERY_MODE)); 100 } 97 101 98 102 // Create a new hashmap and registry it in rListener … … 143 147 144 148 // Add the correlation ID and create a replyTo property 145 BasicProperties props = new BasicProperties.Builder().appId(uid).correlationId(corrId).replyTo(replyQueueName).type(serializerType).build(); 149 BasicProperties props = new BasicProperties.Builder().appId(uid).correlationId(corrId).replyTo(replyQueueName).type(serializerType) 150 .deliveryMode(deliveryMode).build(); 146 151 147 152 // Publish the message 148 153 byte[] bytesRequest = serializer.serialize(serializerType, request); 149 154 broker.getChannel().basicPublish(exchange, routingkey, props, bytesRequest); 150 logger.debug("Proxymq: " + uid + " invokes " + request.getMethod() + ", corrID" + corrId + ", exchange: " + exchange + ", replyQueue: " 151 + replyQueueName + ", serializerType: " + serializerType + ", multi call: " + request.isMulti() + ", async call: " + request.isAsync()); 155 logger.debug("Proxymq: " + uid + " invokes '" + request.getMethod() + "' , corrID: " + corrId + ", exchange: " + exchange + ", replyQueue: " 156 + replyQueueName + ", serializerType: " + serializerType + ", multi call: " + request.isMulti() + ", async call: " + request.isAsync() 157 + ", delivery mode: " + deliveryMode); 152 158 } 153 159
Note: See TracChangeset
for help on using the changeset viewer.