Changeset 67 for trunk/src/main/java/omq/server/RemoteObject.java
- Timestamp:
- 06/27/13 11:44:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/omq/server/RemoteObject.java
r66 r67 93 93 this.broker = broker; 94 94 UID = reference; 95 serializer = broker.getSerializer(); 95 96 if (channel == null || !channel.isOpen()) { 96 97 channel = broker.getChannel(); … … 142 143 @Override 143 144 public void notifyEvent(Event event) throws IOException, SerializerException { 145 String corrID = java.util.UUID.randomUUID().toString(); 144 146 event.setTopic(UID); 147 event.setCorrId(corrID); 145 148 EventWrapper wrapper = new EventWrapper(event); 146 149 channel.exchangeDeclare(UID, "fanout"); 147 150 channel.basicPublish(UID, "", null, serializer.serialize(wrapper)); 151 logger.debug("Sending event-> topic: " + UID + ", corrID: " + corrID); 148 152 } 149 153
Note: See TracChangeset
for help on using the changeset viewer.