In absence of any reply. I went on and checked the source code myself.
I found that the connection url had been =
http://localhost:5280/xmpp-httpbind .
On changing it with the url given in earlier chapters (
http://bosh.metajack.im:5280/xmpp-httpbind ) , the code works. Hence two changes were required for the code to work
1) MUC_ SERVICE =' conference.jabber.org'
2) Connection url to
http://bosh.metajack.im:5280/xmpp-httpbind
Was there any specific reason for changing the connection url?
Also I have configured Openfire with Apache , I have also enabled the BOSH Http-Binding . On using the connection url as
http://localhost:7070/http-bind/ , I didnt get any response.. The error console of the browser shows nothing.
I have made the following rule in Apache conf =
ProxyPass /http-bind
http://myserv:7070/http-bind/
ProxyPassReverse /http-bind
http://myserv:7070/http-bind/
Please advice.