public class BatchingService extends BayeuxService
{
public void processBatch(Client remote, Message message)
{
remote.startBatch();
Map<String, Object> externalData = new HashMap<String, Object>();
// Fill the external data
remote.deliver(getClient(), "/external", externalData, null);
Map<String, Object> emailData = new HashMap<String, Object>();
// Fill the email data
remote.deliver(getClient(), "/email", emailData, null);
remote.endBatch();
}
}
http://cometd.org/node/70