I have received a couple of emails about Jappix MiniChat not working properly with Openfire BOSH. The main issue seems to be that the Openfire BOSH is not handling the reconnection properly as the user browses from page to page.
I’ll be surprised if it did as the implementation was a few years ago and the BOSH specification has moved on since. More importantly was that it was designed to work with SparkWeb which was always resident on the web page until the user logged off. In this mode, Openfire BOSH works very well.
A possible solution for using Jappix MiniChat with Openfire is to use this same approach and keep Jappix resident on the web page as the user browses from page to page. My way of doing this is to use a main top page container with the Jappix MiniChat which puts the content web page in an
Of course, this does not always work especially if the content page promotes itself to be the top main page for security purposes like Goole Mail for example. In practice, I use Jappix MiniChat with my own web applications and even if my web page is hijacked, cross domain security will stop malicious JavaScript controlling my application.
If this solution will work for you, then use the attached HTML file and adapt it to your needs. minichat.html.zip (946 Bytes)
It is a cross domain problem. To solve cross domain problems, I use Openfire as my HTTP, PHP, BOSH and XMPP server. Everything is in the same place. I suggest you do the same and put your PHP web application inside the Jappix Plugin, otherwise go to the jappix Web site to learn how to configure for different servers. You could read the comments on this blog http://community.igniterealtime.org/blogs/ignite/2011/06/26/jappix-for-openfire- plugin to modify the read-main.php and read-hosts.php files.
I am not sure why you have a cache problem. I modify my PHP, HTML, JS files directly without restarting Openfire and I can see the changes. Check you browser settings.
I appreciate your hard work & inputs on Jappix mini with openfire. Keep it up. Not sure whether I can be of any help to you.
I need one input on you. Currenlty whenever a new user visit my website, I add them in Openfire DB via direct DB access instead of user service plugin. This new users is not getting reflected immediately in Jappix mini. Unless I do not restart the Openfire, this new users are not reflecting in Jappix Mini. I am not in position to use user service plugin, because I have added one extra column in ofUser to take of their membership ( GOLD or PREMIUM Or FREE )
I am not sure how to handle this situation without restarting the openfire server. Restarting the Openfire server everytime for every new user is not feasible at all.
How can I remove the cache time, or refresh the cache so that new user reflect in Jappix minilist of online users. Please help or advice as this openfire issue not jappix mini.
Clearing the jappix mini /store/cache also do NOT help in reflecting the new Users. I can see that this new Users are online ( Green ) when I check their status in Openfire admin.
I have added the cache.userCache.maxLifetim as value of 60000 in system properties however it did NOT work. When a new is getting added via DB, It is not reflecting for even 10 minutes however I see them online ( Green ) in openfire. I am not sure whether the below property is causing the problem.
I work in windows enviroment and try to embed jappix mini in my web site done in java.
My openfire work very well via spark. And even when I connect via jappix admin connection, I have the large jappix page whitch work very well. Like I say now I try to embed jappix mini without succes. This is what I did for that:
I am completely new to Openfire… Planning to use it for our intranet… but some how cant load jappix mini. my chat bar shows error…i have used minichat.html for testing… Please help… I need to use this chat bar with our intranet.
Forget jappix mini… Worst thing and worst issues i ever saw… From network engineer we have to become programmer… Better use Ijab… I have successfully configured it on windows enviroment… loo at my other post for the same.
Thanks Dele for the new version of pluggin. I configurated it without problems.
When I launch jappix and minichat.html(from openfire) it’s ok.
But now I have my java web site running on a tomcat 7 server, I embbed my mini jappix on a page like this:
jQuery(document).ready(function() {
launchMini(false, false, "afreetech","test2@afreetech","test2");
});
I have this error on my web console when I try to conect:
-- [12:30:33,249] POST [http://afreetech:8080/http-bind/](http://afreetech:8080/http-bind/) [HTTP/1.1 404 Introuvable 78ms]
And I don't know how to send the post to [http://afreetech:7070/http-bind/](http://afreetech:7070/http-bind/)
How to allows cross domain? Thanks once again