I’'m trying to comunicate with Wildfire with a poll politic, you know, an user logins in the Wildfire Server and after he/she ask for new messages and post new messages.
¿Anybody knows if is there any API like Smack, but not oriented to the events politic?
do you want to use Wildfire as a pubsub chat? So the clients can decide when they get messages?
Or how do you want to be online without receiving messages? Would it be fine if the client API caches the received messages and you can query them whenever you want to?
I want to independize the connection and the user because I will have too many users in the same machine (too many sockets).
I’'d be happy in a world where clients can decide when they get their messages.
It’'s not only the messages, I need Wildfire to save the information about rooms and the people who is in.
In fact, I’‘m building a webapp where the client information is shown in a webbrowser which pick it up via AJAX from its servlet. So that the servlet needs to ask the Wildfire for the messages and presences of a set of users and it’'s too inefficient keeping alive all that XMPP connections in a single servlet.
So, I wonder if can I poll the wildfire every time I need information about an user.
Maybe you could use the XMPP-over-HTTP protocol? JWChat is an AJAX jabber chat application and uses that.
I’'m not sure if that solves the socket issue, though.
btw, if you have that many connections open at the same time, you should use a cluster and Wildfire’'s connection manager. That would help with the socket count per machine.