ID channelID = IDFactory.getDefault().createID(channelContainer.getChannelNamespace(), "channel1");
IChannelListener channelListener = new IChannelListener() {
public void handleChannelEvent(IChannelEvent event) {
System.out.println("handleChannelEvent("+event+")");
}};
return channelContainer.createChannel(channelID, channelListener, new HashMap());
}
public void createAndConnect() throws ECFException {
// create container instance from ECF ContainerFactory
container = ContainerFactory.getDefault().createContainer(CONTAINER_TYPE);