client.isConnectedAndLoggedIn() is not working?

Have you guys experienced this:


BaseClient client = new BaseClient(new AnonymousTextClient());
if (client.connect(new InetSocketAddress(hostname, port), timeout)) {
String clientId = AS2ServerVersion.getFullProductName();
LoginState state = client.login(as2User, as2Password.toCharArray(), clientId);

System.err.println(AS2ServerVersion.getFullProductName() + " -> (" + state.getState() + ") " + state.toString() );
System.err.println("Client is connected and logged in: " + client.isConnectedAndLoggedIn() );
}

Results in:

Connection established to localhost/127.0.0.1:1235
mendelson opensource AS2 1.1 build 53 -> (99) Login state for user admin: SUCCESS
Client is connected and logged in: false

So, connect and logging in go fine. But client.isConnectedAndLoggedIn() returns false.

Forum
AS2

Comments