Changeset 77 for trunk/src/main/java/omq/server/RemoteObject.java
- Timestamp:
- 07/04/13 16:45:14 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/omq/server/RemoteObject.java
r75 r77 218 218 String queue = UID; 219 219 String routingKey = UID; 220 220 221 // Multi info 221 222 String multiExchange = multi + UID; 223 if (env.getProperty(ParameterQueue.MULTI_QUEUE_NAME) != null) { 224 multiQueue = env.getProperty(ParameterQueue.MULTI_QUEUE_NAME); 225 } 222 226 223 227 boolean durable = Boolean.parseBoolean(env.getProperty(ParameterQueue.DURABLE_QUEUES, "false")); 228 boolean exclusive = Boolean.parseBoolean(env.getProperty(ParameterQueue.EXCLUSIVE_QUEUE, "false")); 229 boolean autoDelete = Boolean.parseBoolean(env.getProperty(ParameterQueue.AUTO_DELETE_QUEUE, "false")); 224 230 225 231 // Start channel … … 227 233 228 234 // Declares and bindings 229 logger.info("RemoteObject: " + UID + " declaring direct exchange: " + exchange + ", Queue: " + queue + ", Durable: " + durable); 235 logger.info("RemoteObject: " + UID + " declaring direct exchange: " + exchange + ", Queue: " + queue + ", Durable: " + durable + ", Exclusive: " 236 + exclusive + ", AutoDelete: " + autoDelete); 230 237 channel.exchangeDeclare(exchange, "direct"); 231 channel.queueDeclare(queue, durable, false, false, null);238 channel.queueDeclare(queue, durable, exclusive, autoDelete, null); 232 239 channel.queueBind(queue, exchange, routingKey); 233 240 234 logger.info("RemoteObject: " + UID + " declaring fanout exchange: " + multiExchange + ", Queue: " + multiQueue + ", Durable: " + durable); 241 logger.info("RemoteObject: " + UID + " declaring fanout exchange: " + multiExchange + ", Queue: " + multiQueue + ", Durable: " + durable 242 + ", Exclusive: " + exclusive + ", AutoDelete: " + autoDelete); 235 243 channel.exchangeDeclare(multiExchange, "fanout"); 236 channel.queueDeclare(multiQueue, durable, false, false, null);244 channel.queueDeclare(multiQueue, durable, exclusive, autoDelete, null); 237 245 channel.queueBind(multiQueue, multiExchange, ""); 238 246
Note: See TracChangeset
for help on using the changeset viewer.