public void addChannelOpenListener(final String channelName) throws ServiceRegistrationException {
addChannelOpenListener(channelName, null);
}
public void addChannelOpenListener(final String channelName, final OpenListener openListener) throws ServiceRegistrationException {
endpoint.registerService(channelName, new OpenListener() {
public void channelOpened(final Channel channel) {
if (openListener != null) {
openListener.channelOpened(channel);
}
}