public static Collection getHostedRooms(XMPPConnection connection,
String serviceName)
throws XMPPException
pls, what goes under “serviceName”? name of server, it would seem to me, but this isn’‘t working… since it doesn’‘t say ‘‘name of server’’ I assume it’'s not name of server but sthg else…
I may have syntax wrong… they’'re a bit vague in the docs, as to syntax…
under ‘‘service’’ in docs for this method it says: “the service that is hosting the rooms to discover.”
does ‘‘service’’ include name of server or not? (I assume this can only be done if already connected to a a server and can only search for rooms in that server? or do you still have to specify name of server?)
what is “conference”?? all servers have GroupChatRooms in a separate “sub-domain”?
yes, all servers have muchats in a seperate sub-domain which is why you are specifying it as “conference.jabber.org” The error you are having looks like a class-path issue make sure the smackx package is on your class path.
yes, you’‘re absolutely right… and the reason I was getting errors on that ‘‘rooms’’ var (system.out.println(rooms)) is that this var was decl’'d inside try-block… thank you and everyone else very much…