}
public void start() throws JMSException {
if (demand) {
advisor = new ProducerDemandAdvisor(connection, topic);
advisor.setDemandListener(new ProducerDemandListener() {
public void onEvent(ProducerDemandEvent event) {
try {
fireDemandChangeEvent(event.isInDemand());
}
catch (Exception e) {