Closed glassfishrobot closed 14 years ago
@glassfishrobot Commented Reported by jfarcand@java.net
@glassfishrobot Commented jfarcand@java.net said: The following now works:
Map<String, Object> map = new HashMap<String, Object>(); map.put("chat", message); map.put("user", user); Data data = new Data(); data.setMapData(map); data.setChannel("/chat/demo");
DeliverResponse deliverResponse = new DeliverResponse(); deliverResponse.setChannel("/chat/demo"); deliverResponse.setClientId(""); deliverResponse.setData(data); deliverResponse.setLast(true); deliverResponse.setFollow(true); deliverResponse.setFinished(true);
context.notify(deliverResponse);
Sending cometd/src/main/java/com/sun/grizzly/cometd/DataHandler.java Transmitting file data . Committed revision 2587.
@glassfishrobot Commented Was assigned to jfarcand@java.net
@glassfishrobot Commented This issue was imported from java.net JIRA GRIZZLY-473
@glassfishrobot Commented Marked as fixed on Wednesday, December 16th 2009, 6:13:23 pm
The current Bayeux JAVA API is broken as we need to re-add support for DeleverRes.setFinished(true) to force the Cometd DataHandler to write the JSON trailer.
Environment
Operating System: All Platform: All
Affected Versions
[1.9.8]