Changeset 77
- Timestamp:
- 07/04/13 16:45:14 (11 years ago)
- Location:
- trunk/src
- Files:
-
- 1 deleted
- 17 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 -
trunk/src/main/java/omq/common/util/OmqConnectionFactory.java
r51 r77 56 56 57 57 // Get host info of rabbimq (where it is) 58 String host = env.getProperty(ParameterQueue. SERVER_HOST);59 int port = Integer.parseInt(env.getProperty(ParameterQueue. SERVER_PORT));58 String host = env.getProperty(ParameterQueue.RABBIT_HOST); 59 int port = Integer.parseInt(env.getProperty(ParameterQueue.RABBIT_PORT)); 60 60 61 61 boolean ssl = Boolean.parseBoolean(env.getProperty(ParameterQueue.ENABLE_SSL)); -
trunk/src/main/java/omq/common/util/ParameterQueue.java
r44 r77 12 12 */ 13 13 14 public static String SERIALIZER_NAME = "omq.serializer"; 14 /** 15 * Set the proxy's serializer method 16 */ 17 public static String PROXY_SERIALIZER = "omq.serializer"; 15 18 16 19 /** 17 20 * Set whether the messages must be compressed or not 18 21 */ 19 public static String ENABLE COMPRESSION = "omq.compression";22 public static String ENABLE_COMPRESSION = "omq.compression"; 20 23 21 24 /** 22 25 * Set the ip where the rabbitmq server is. 23 26 */ 24 public static String SERVER_HOST = "omq.host";27 public static String RABBIT_HOST = "omq.host"; 25 28 26 29 /** 27 30 * Set the port that rabbitmq uses. 28 31 */ 29 public static String SERVER_PORT = "omq.port";32 public static String RABBIT_PORT = "omq.port"; 30 33 31 34 /** … … 51 54 52 55 /** 53 * Set the clients event queue. Every client must have a different queue54 * name.55 */56 public static String EVENT_REPLY_QUEUE = "omq.reply_queue_event";57 58 /**59 56 * Set if the queues must be durable. The queues won't be lost when rabbitmq 60 57 * crashes if DURABLE_QUEUES is set trues. … … 72 69 public static String MESSAGE_TTL_IN_QUEUES = "omq.message_ttl_queue"; 73 70 74 // TODO persisten messages? the messages will be saved in the disk if this71 // TODO persistent messages? the messages will be saved in the disk if this 75 72 // flag is set true 76 73 74 /** 75 * Set if the system will use ssl 76 */ 77 77 public static String ENABLE_SSL = "omq.enable_ssl"; 78 public static String DEBUGFILE = "omq.debug_file";79 78 79 /** 80 * Set how many time we have to wait to retry the connection with the server 81 * when this goes down 82 */ 80 83 public static String RETRY_TIME_CONNECTION = "omq.retry_connection"; 81 84 82 /* 83 * Values85 /** 86 * Set how many threads will be created to invoke remote methods 84 87 */ 85 86 // Change this!!!87 public static String RPC_TYPE = "direct";88 89 88 public static String NUM_THREADS = "omq.num_threads"; 90 89 91 public static String REGISTRY_NAME = "REGISTRY"; 90 /** 91 * Set the specific name of a multi queue in a specific object 92 */ 93 public static String MULTI_QUEUE_NAME = "omq.multi_queue_name"; 94 95 /** 96 * Set if server will delete a queue when is no longer in use 97 */ 98 public static String AUTO_DELETE_QUEUE = "omq.auto_delete"; 99 100 /** 101 * Set if we are declaring an exclusive queue (restricted to this 102 * connection) 103 */ 104 public static String EXCLUSIVE_QUEUE = "omq.exclusive_queue"; 105 106 /** 107 * Set 1 to indicate the message will be nonpersistent and 2 to indicate it 108 * will be persistent 109 */ 110 public static String DELIVERY_MODE = "omq.delivery_mode"; 92 111 93 112 /** -
trunk/src/main/java/omq/common/util/Serializer.java
r72 r77 40 40 41 41 private Boolean getEnableCompression() { 42 return Boolean.valueOf(env.getProperty(ParameterQueue.ENABLE COMPRESSION, "false"));42 return Boolean.valueOf(env.getProperty(ParameterQueue.ENABLE_COMPRESSION, "false")); 43 43 } 44 44 … … 46 46 if (serializer == null) { 47 47 try { 48 String className = env.getProperty(ParameterQueue. SERIALIZER_NAME, Serializer.JAVA);48 String className = env.getProperty(ParameterQueue.PROXY_SERIALIZER, Serializer.JAVA); 49 49 50 50 if (className == null || className.isEmpty()) { … … 98 98 } 99 99 100 // TODO: remove this function and think about the event serialization101 100 public byte[] serialize(Object obj) throws SerializerException { 102 101 ISerializer instance = getInstance(); -
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 -
trunk/src/test/java/omq/test/calculator/CalculatorTest.java
r73 r77 31 31 32 32 // Set host info of rabbimq (where it is) 33 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");34 env.setProperty(ParameterQueue. SERVER_PORT, "5672");33 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 34 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 35 35 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 36 env.setProperty(ParameterQueue. SERIALIZER_NAME, type);37 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");36 env.setProperty(ParameterQueue.PROXY_SERIALIZER, type); 37 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 38 38 39 39 // Set info about where the message will be sent … … 62 62 63 63 // Get host info of rabbimq (where it is) 64 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");65 env.setProperty(ParameterQueue. SERVER_PORT, "5672");64 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 65 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 66 66 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 67 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");67 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 68 68 69 69 // Set info about where the message will be sent -
trunk/src/test/java/omq/test/event/MessageTest.java
r73 r77 33 33 34 34 // Set host info of rabbimq (where it is) 35 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");36 env.setProperty(ParameterQueue. SERVER_PORT, "5672");35 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 36 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 37 37 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 38 env.setProperty(ParameterQueue. SERIALIZER_NAME, type);39 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");38 env.setProperty(ParameterQueue.PROXY_SERIALIZER, type); 39 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 40 40 41 41 // Set info about where the message will be sent … … 63 63 64 64 // Get host info of rabbimq (where it is) 65 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");66 env.setProperty(ParameterQueue. SERVER_PORT, "5672");65 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 66 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 67 67 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 68 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");68 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 69 69 70 70 // Set info about where the message will be sent … … 89 89 public void test() throws Exception { 90 90 String expected = "Hello"; 91 92 91 serverProxy.setMessage(expected); 93 92 Thread.sleep(200); -
trunk/src/test/java/omq/test/exception/ExceptionTest.java
r73 r77 30 30 31 31 // Set host info of rabbimq (where it is) 32 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");33 env.setProperty(ParameterQueue. SERVER_PORT, "5672");32 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 33 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 34 34 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 35 env.setProperty(ParameterQueue. SERIALIZER_NAME, type);36 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");35 env.setProperty(ParameterQueue.PROXY_SERIALIZER, type); 36 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 37 37 38 38 // Set info about where the message will be sent … … 60 60 61 61 // Get host info of rabbimq (where it is) 62 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");63 env.setProperty(ParameterQueue. SERVER_PORT, "5672");62 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 63 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 64 64 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 65 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");65 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 66 66 67 67 // Set info about where the message will be sent -
trunk/src/test/java/omq/test/faultTolerance/FaultToleranceTest.java
r73 r77 31 31 32 32 // Set host info of rabbimq (where it is) 33 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");34 env.setProperty(ParameterQueue. SERVER_PORT, "5672");33 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 34 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 35 35 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 36 env.setProperty(ParameterQueue. SERIALIZER_NAME, type);37 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");36 env.setProperty(ParameterQueue.PROXY_SERIALIZER, type); 37 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 38 38 39 39 // Set info about where the message will be sent … … 68 68 69 69 // Get host info of rabbimq (where it is) 70 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");71 env.setProperty(ParameterQueue. SERVER_PORT, "5672");70 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 71 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 72 72 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 73 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");73 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 74 74 75 75 // Set info about where the message will be sent -
trunk/src/test/java/omq/test/multiProcess/MultiProcessTest.java
r73 r77 29 29 30 30 // Set host info of rabbimq (where it is) 31 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");32 env.setProperty(ParameterQueue. SERVER_PORT, "5672");31 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 32 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 33 33 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 34 env.setProperty(ParameterQueue. SERIALIZER_NAME, type);35 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");34 env.setProperty(ParameterQueue.PROXY_SERIALIZER, type); 35 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 36 36 37 37 // Set info about where the message will be sent … … 59 59 60 60 // Get host info of rabbimq (where it is) 61 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");62 env.setProperty(ParameterQueue. SERVER_PORT, "5672");61 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 62 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 63 63 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 64 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");64 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 65 65 66 66 // Set info about where the message will be sent -
trunk/src/test/java/omq/test/observer/ObserverTest.java
r73 r77 32 32 33 33 // Set host info of rabbimq (where it is) 34 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");35 env.setProperty(ParameterQueue. SERVER_PORT, "5672");34 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 35 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 36 36 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 37 env.setProperty(ParameterQueue. SERIALIZER_NAME, type);38 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");37 env.setProperty(ParameterQueue.PROXY_SERIALIZER, type); 38 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 39 39 40 40 // Set info about where the message will be sent … … 62 62 63 63 // Get host info of rabbimq (where it is) 64 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");65 env.setProperty(ParameterQueue. SERVER_PORT, "5672");64 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 65 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 66 66 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 67 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");67 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 68 68 69 69 // Set info about where the message will be sent -
trunk/src/test/java/omq/test/serializer/CalculatorTest.java
r73 r77 24 24 25 25 // Set host info of rabbimq (where it is) 26 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");27 env.setProperty(ParameterQueue. SERVER_PORT, "5672");26 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 27 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 28 28 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 29 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");29 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 30 30 31 31 // Set info about where the message will be sent … … 48 48 49 49 // Get host info of rabbimq (where it is) 50 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");51 env.setProperty(ParameterQueue. SERVER_PORT, "5672");50 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 51 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 52 52 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 53 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");53 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 54 54 55 55 // Set info about where the message will be sent -
trunk/src/test/java/omq/test/stopBroker/StopBrokerTest.java
r73 r77 28 28 29 29 // Set host info of rabbimq (where it is) 30 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");31 env.setProperty(ParameterQueue. SERVER_PORT, "5672");30 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 31 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 32 32 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 33 env.setProperty(ParameterQueue. SERIALIZER_NAME, type);34 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");33 env.setProperty(ParameterQueue.PROXY_SERIALIZER, type); 34 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 35 35 36 36 // Set info about where the message will be sent … … 60 60 61 61 // Get host info of rabbimq (where it is) 62 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");63 env.setProperty(ParameterQueue. SERVER_PORT, "5672");62 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 63 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 64 64 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 65 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");65 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 66 66 67 67 // Set info about where the message will be sent -
trunk/src/test/java/omq/test/stopBroker/UnbindTest.java
r54 r77 18 18 19 19 // Get host info of rabbimq (where it is) 20 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");21 env.setProperty(ParameterQueue. SERVER_PORT, "5672");20 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 21 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 22 22 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 23 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");23 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 24 24 25 25 // Set info about where the message will be sent -
trunk/src/test/java/omq/test/temporal/ProvaTest.java
r73 r77 30 30 31 31 // Get host info of rabbimq (where it is) 32 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");33 env.setProperty(ParameterQueue. SERVER_PORT, "5672");32 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 33 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 34 34 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 35 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");35 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 36 36 37 37 // Set info about where the message will be sent … … 56 56 57 57 // Set host info of rabbimq (where it is) 58 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");59 env.setProperty(ParameterQueue. SERVER_PORT, "5672");58 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 59 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 60 60 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 61 env.setProperty(ParameterQueue. SERIALIZER_NAME, type);62 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");61 env.setProperty(ParameterQueue.PROXY_SERIALIZER, type); 62 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 63 63 64 64 // Set info about where the message will be sent -
trunk/src/test/java/omq/test/workspace/WorkspaceTest.java
r75 r77 39 39 40 40 // Set host info of rabbimq (where it is) 41 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");42 env.setProperty(ParameterQueue. SERVER_PORT, "5672");41 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 42 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 43 43 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 44 env.setProperty(ParameterQueue. SERIALIZER_NAME, type);45 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");44 env.setProperty(ParameterQueue.PROXY_SERIALIZER, type); 45 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 46 46 47 47 // Set info about where the message will be sent … … 69 69 70 70 // Get host info of rabbimq (where it is) 71 env.setProperty(ParameterQueue. SERVER_HOST, "127.0.0.1");72 env.setProperty(ParameterQueue. SERVER_PORT, "5672");71 env.setProperty(ParameterQueue.RABBIT_HOST, "127.0.0.1"); 72 env.setProperty(ParameterQueue.RABBIT_PORT, "5672"); 73 73 env.setProperty(ParameterQueue.DURABLE_QUEUES, "false"); 74 env.setProperty(ParameterQueue.ENABLE COMPRESSION, "false");74 env.setProperty(ParameterQueue.ENABLE_COMPRESSION, "false"); 75 75 76 76 // Set info about where the message will be sent
Note: See TracChangeset
for help on using the changeset viewer.