powered by Jive Software

Is it possible to get the all online users' list who are logged on the server

public Message getMessage(XMPPConnection con, String receiveId){

PacketFilter filter = new AndFilter(new PacketTypeFilter(Message.class),

new ToContainsFilter(receiveId + “@localhost”));

PacketCollector myCollector = con.createPacketCollector(filter);

Packet packet = myCollector.nextResult();

return msg;


I made method like above.

this method sets the user on waiting mode, and can get a message if sent.

I have question.

  1. How can I stop the waiting mode?

I’m trying quiting the method and call it again

whenever I link it to another site cause I have some trouble making frame.

I’d like to know if there is some other way.

  1. How can I make a program which figures out whether specific user(who is not registered on the friend’s roster) is online or not?

  2. Is it possible to get the all online users’ list who are logged on the server?

If you are not subscribed then you are not allowed to see that users presence, that’s just how XMPP works.

Hi. Sabine Dinis Blochberger

Thank you for your replay!


How i can subscribe so that i can get the user presence whan he changes his presence .can u give any code example to describe that