title: Java - trying to prebind converse.js using bosh but not able to get the sid and rid...using the smack bosh
body: <p>I am trying to connect to the open fire using the smack bosh and trying to prebind the converse.js in the web page. My bosh code </p>
  
  <pre><code>BOSHConfiguration config = new BOSHConfiguration(false, "host", 7070, "/http-bind/", "&lt;host&gt;", "xmpp:127.0.0.1:5222");
  BOSHConnection connection = new BOSHConnection(config);
  try {
  connection.connect();
  connection.login("un", "pw");
  String sss = connection.getConnectionID();
  String bosh = connection.BOSH_URI;
  } catch (Exception e) {
  }
  </code></pre>
  
  <p>Can some one help me how to establish a bosh connection and get the required sid, rid and jid from the session....</p>
  
  <p>Any help is much appreciated.</p>