Subject Re: [Firebird-Java] Re: FBUserManager
Author Steven Jardine
>Why do we need database here? Users are not related to the database. Is this
>code needed?
>
>
Nope. I just grabbed some code from some other location. :-) Thanks
for the clarification. Here is the revised example:

try {

UserManager userManager = new
FBUserManager(GDSType.getType("PURE_JAVA"));
userManager.setHost("localhost");
userManager.setUser("sysdba");
userManager.setPassword("masterkey");

Map users = userManager.getUsers();

Iterator iterator = users.values().iterator();

while (iterator.hasNext())
System.out.println(iterator.next());

} catch (Exception e) {

e.printStackTrace();

}