Changeset 55 for trunk/src/main/java/omq/server/RemoteObject.java
- Timestamp:
- 06/21/13 16:55:58 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/omq/server/RemoteObject.java
r54 r55 223 223 String queue = UID; 224 224 String routingKey = UID; 225 // Multi info 226 String multiExchange = multi + exchange; 227 String multiQueue = UID + System.currentTimeMillis(); 228 225 229 boolean durable = Boolean.parseBoolean(env.getProperty(ParameterQueue.DURABLE_QUEUES, "false")); 226 230 … … 231 235 logger.info("RemoteObject: " + UID + " declaring direct exchange: " + exchange + ", Queue: " + queue); 232 236 channel.exchangeDeclare(exchange, "direct"); 233 channel.exchangeDeclare(multi + exchange, "fanout");234 237 channel.queueDeclare(queue, durable, false, false, null); 235 238 channel.queueBind(queue, exchange, routingKey); 236 channel.queueBind(queue, multi + exchange, routingKey); 239 240 channel.exchangeDeclare(multiExchange, "fanout"); 241 channel.queueDeclare(multiQueue, durable, false, false, null); 242 channel.queueBind(multiQueue, multiExchange, ""); 237 243 238 244 // Declare the event topic fanout … … 243 249 consumer = new QueueingConsumer(channel); 244 250 channel.basicConsume(queue, true, consumer); 251 channel.basicConsume(multiQueue, true, consumer); 245 252 } 246 253
Note: See TracChangeset
for help on using the changeset viewer.