mercredi 15 avril 2015

user verification using rmi on cloud

Can anyone please explain this code ?? and also help me make the server side program



try
{
String username=ClientLoginFrame_TextField_username.getText();
String passwrd=ClientLoginFrame_TextField_Password.getText();
String url="rmi://"+OWNER_ADDRESS+"/group";
RemoteMethods methods=(RemoteMethods)Naming.lookup(url);
String result=methods.verifyLogin(username,passwrd);

if(result.equals("Login Failed"))
{
JOptionPane.showMessageDialog(this,"Wrong Username or Password");
}




Aucun commentaire:

Enregistrer un commentaire