I had to do a login from one ejb on one server to another ejb on another server. The servers runs the same software, both on JBoss. The first one is client for the second one. First I planned to make a private/public key authentification between the servers, but now I would be glad, if I become a simple user/password authentification working. Indeed I've no idea how to set a login-context on the first server (in the one ejb) to login into the second server.