better solution? I feel a bid lost in
terms of documentation. I had a look at "ActiveMQ in Action" and Oreillys
JMS in general, but this does no seem to help me that much for my use case.
Best regards !
--
View this message in context:
http://activemq.2283324.n4.nabble.com/Close-messag
m.out.println("Please try again
> >>> with
> >>> a valid topic name.");
> >>>
> >>> return;
> >>>
> >>> }
> >>>
> >>>
> >>>
> >
MessageListener listner = new MessageListener()
>>> {
>>>
>>> @Override
>>> public void onMessage(Message message)
>>> {
>>> try {
>>> if (m
try {
System.in.read();
} catch (IOException e) {
}
} catch (JMSException ex) {
// Logger.getLogger(Consumer.class.getName()).log(Level.
SEVERE,
null, ex);
}
}
--
View this message in context: http://ac
}
> } catch (JMSException e) {
> System.out.println("Caught:" + e);
> }
> }
> };
> consumer.setMessageListener(listner);
>
> try {
>
ad();
} catch (IOException e) {
}
} catch (JMSException ex) {
// Logger.getLogger(Consumer.class.getName()).log(Level.SEVERE,
null, ex);
}
}
--
View this message in context:
htt
adress
> the
> ceated session and close it within my java class?
>
> Can somebody help me?
>
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/Close-message-listener-decoupled-tp4729814.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
test); and
when it does not want to receiver messages anymore, call
unsubscribe(parameter necessary?) to close the session. How can I adress the
ceated session and close it within my java class?
Can somebody help me?
--
View this message in context:
http://activemq.2283324.n4.nabble.com/Clo