Hi folks,

In my application, I'm defining within .server package in file UserManager.java once I validate user on server an object "User", which I would like to store it into register - so it could be called later.

Code:
public class UserManager implements ConnectionProperties{
    
    public static final String USER = "user";
    public User user;
    
    //This method returns true if the username and password in the database
    //matches the given username and password
    public boolean isActiveUser(String username, String password) {
        try {
            Class.forName(driver);
        } catch (ClassNotFoundException e1) {
            e1.printStackTrace();
        }
        try {
            Connection conn = DriverManager.getConnection(databaseUrl, dbUsername, dbPassword);
            String query ="";             
            try {
                
                query = "SELECT * FROM UZIVATEL WHERE  UPPER(login) = upper('"+username+"') AND pwd='"+password+"' and aktivny = 'T'";
                Statement select = conn.createStatement();
                ResultSet result = select.executeQuery(query);
                while (result.next()) {
                    int found = result.getInt(1);
                    user = new User(result.getInt("object_id"),
                                                           result.getString("first_name"),
                                                           result.getString("last_name"));
                    Registry.register(USER, user);
                    
                    if(found>0){return true;}
                }
                select.close();
                result.close();
                conn.close();
            } catch(SQLException e) {
                System.err.println("Firebird Statement Error: " + query);
                e.printStackTrace();
            }
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return false;
    }    
    
}
Then later, when application invokes Logon Widget after successfull user verification I'm displaying main page, where I would like to obtain User details from register, so I'm using:
Code:
User user = (User) Registry.get(UserManager.USER);
Label labUser = new Label("User:" + user.getUserFirstName());
This bit is called from "client" type of package and raise below error:
Code:
No source code is available for type com.agtransport.agdoprava.server.UserManager; did you forget to inherit a required module?
Thanks,
Tomas