What is the best/recommended way to start and stop FlowReceiver in J2EE/JEE application?

132 Views Asked by At

What is the best place to start/stop Solace listener which subscribes to a topic. Is it ok to create/initialize connection in PostConstruct and close it in PreDestroy methods? In all the examples I see CountDownLatch is used to read just 'n' message, whereas I need to listen for all the messages .

0

There are 0 best solutions below