Regarding Java clients using the AMFConnection to connect to AMF based BlazeDS services:
How can I login and logout?
I have a Flex client example of how to do this from the spring-flex integration example. You need to create a channel like this:
var channel:AMFChannel = new AMFChannel("my-amf", "http://localhost:8080/messagebroker/amf");
var channelSet:ChannelSet = new ChannelSet();
remoteObject.channelSet = channelSet;
and then the remote object can be logged in/out of:
How can I do this same thing from the Java AMFConnection client?
Is this an impossible task?
I think you need to mimic what the client ChannelSet.login method does...
i.e. you need to construct a CommandMessage with an operation flag of 8 (see CommandMessage.LOGIN_OPERATION) and create the credentials as a Base64 encoded "username:password" String.
To support credentials in non-latin locales, consider using the UTF-8 representation of the bytes before Base64 encoding the data and set a "DSCredentialsCharset" header on the CommandMessage with a value of "UTF-8".