Server part of flex-java connection