- Timestamp:
- 10/18/13 16:09:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/supervisor/src/main/java/omq/server/InvocationThread.java
r105 r106 36 36 private RemoteObject obj; 37 37 private String reference; 38 private String UID; 38 39 private Properties env; 39 40 private boolean idle; … … 54 55 public InvocationThread(RemoteObject obj) throws Exception { 55 56 this.obj = obj; 57 this.UID = obj.getUID(); 56 58 this.reference = obj.getRef(); 57 59 this.env = obj.getEnv(); … … 87 89 String serializerType = delivery.getProperties().getType(); 88 90 89 // Deserialize the json91 // Deserialize the request 90 92 Request request = serializer.deserializeRequest(serializerType, delivery.getBody(), obj); 91 93 String methodName = request.getMethod(); … … 196 198 197 199 /* 200 * UID queue 201 */ 202 203 if (UID != null) { 204 205 boolean uidDurable = false; 206 boolean uidExclusive = true; 207 boolean uidAutoDelete = true; 208 209 channel.queueDeclare(UID, uidDurable, uidExclusive, uidAutoDelete, null); 210 if (!exchange.equalsIgnoreCase("")) { // Default exchange case 211 channel.queueBind(UID, exchange, UID); 212 } 213 } 214 215 /* 198 216 * Multi queue, exclusive per each instance 199 217 */ … … 233 251 channel.basicConsume(queue, autoAck, consumer); 234 252 channel.basicConsume(multiQueue, autoAck, consumer); 253 if (UID != null) { 254 channel.basicConsume(UID, autoAck, consumer); 255 } 235 256 } 236 257
Note: See TracChangeset
for help on using the changeset viewer.