Changeset 47 for trunk/src/main/java/omq/client/proxy
- Timestamp:
- 06/18/13 16:51:22 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/omq/client/proxy/Proxymq.java
r44 r47 47 47 48 48 private String uid; 49 private transient String serializerType; 49 50 private transient ResponseListener rListener; 50 51 private transient EventDispatcher dispatcher; … … 89 90 // this.channel = Broker.getChannel(); 90 91 this.env = env; 92 93 // set the serializer type 94 serializerType = env.getProperty(ParameterQueue.SERIALIZER_NAME, Serializer.java); 91 95 92 96 listeners = new HashMap<String, EventListener<?>>(); … … 150 154 151 155 // Add the correlation ID and create a replyTo property 152 BasicProperties props = new BasicProperties.Builder().appId(uid).correlationId(corrId).replyTo(replyQueueName). build();156 BasicProperties props = new BasicProperties.Builder().appId(uid).correlationId(corrId).replyTo(replyQueueName).type(serializerType).build(); 153 157 154 158 // Publish the message 155 byte[] bytesRequest = Serializer.serialize( request);159 byte[] bytesRequest = Serializer.serialize(serializerType, request); 156 160 // TODO See this 157 161 // channel.basicPublish(exchange, routingkey, props, bytesRequest); … … 306 310 } 307 311 312 public static void stopProxy() { 313 proxies = new HashMap<String, Object>(); 314 } 315 316 public static Map<String, Object> getProxies() { 317 return proxies; 318 } 319 320 public static void setProxies(Map<String, Object> proxies) { 321 Proxymq.proxies = proxies; 322 } 323 308 324 @Override 309 325 public String getRef() {
Note: See TracChangeset
for help on using the changeset viewer.