MessageBroker msgBroker = MessageBroker.getMessageBroker(null);
MessageService service = (MessageService) msgBroker.getService( SERVICE );
MessageDestination msgDest = (MessageDestination)service.getDestination( DESTINATION );
MessageClient msgClient = msgDest.getSubscriptionManager().getSubscriber(clientId);
if (msgClient != null) {
msgDest.getSubscriptionManager().removeSubscriber(msgClient);
System.out.println("删除Flex客户端[" + clientId + "]" );
} else {
System.out.println("Flex客户端[" + clientId + "]已经注销!");
}
在别的地方看到的,还没测试,先留下。