subscribed = true;
}
}
}else {
ChannelImpl ch = (ChannelImpl)getTomcatBayeux().getChannel(subscription,true);
ch.subscribe(client);
subscribed = true;
}
response.put(Bayeux.SUCCESSFUL_FIELD, Boolean.valueOf(subscribed));
response.put(Bayeux.SUBSCRIPTION_FIELD,subscription);
((HashMap) response.get(Bayeux.ADVICE_FIELD)).put("reconnect", "retry");