title: Need a working example on Cometd 2 + Dojo 1.8 + Chat
body: <p>I'm looking for an example on Cometd 2 with Dojo 1.8 on Chat, </p>
  
  <p>Can anybody help me out in this??</p>
  
  <p>I have referred cometd.org site, and I understood the concept of cometd. But, I'm unable apply it in practically. </p>
  
  <p>I just confused when to create a channel, how to publish a message from javascript to java? </p>
  
  <p>I am using Eclipse Indigo IDE, Jboss 7.x server</p>