remotingService.registerAdapter(SeamAdapter.SEAM_ADAPTER_ID,SeamAdapter.class.getName());
}
}
private Destination createDestination(String destinationName, String componentName) {
RemotingService remotingService = findRemotingService();
if (remotingService==null) {
remotingService = createRemotingService();
}
RemotingDestination destination =
(RemotingDestination) remotingService.createDestination(destinationName);
destination.setFactory(new FlexSeamFactory(destinationName, componentName));
// configure adapter
registerSeamAdapter(remotingService);