public class UserService {
public String getUserInfo(String userId) {
}
}
<service id="userService" class="com.example.UserService">
<remoting-destination />
</service>
actionscript
var remoteService:RemoteObject = new RemoteObject();
remoteService.destination = "userService";
remoteService.endpoint = "http://localhost:8080/blazeds/messagebroker/amf";
remoteService.getUserInfo.addEventListener(ResultEvent.RESULT, onGetUserInfoResult);
remoteService.getUserInfo("123");
function onGetUserInfoResult(event:ResultEvent):void {
var userInfo:String = event.result as String;
}