Conection to database

Hello, can anybody tell me, how can i connect to jabber database? I found that i need to connect host, port, scheme, user, password. How can i get host port and scheme? It must go by some getFunction which is described in smack api. am i right that i need connection to database for list of users? searching and adding new user etc…? thank you very much :slight_smile:

Hi,

did you miss the “Getting Started” guide? http://www.igniterealtime.org/builds/smack/docs/latest/documentation/gettingstar ted.html

You’ll connect to an XMPP server, not to a database.

LG

hello, no i didn’t. ok, but how can i get list of my friends? thx

RTFM, there’s a link to TOC and there’s a link to “Roster and Presence” with an example:

Collection<RosterEntry> entries = roster.getEntries();
for (RosterEntry entry : entries) {
    System.out.println(entry);
}