I have very simple app that publishes to a specific queue. everything works
fine but the app after completing everything wont exit because of lingering
ActiveMQ threads. It comes out of main() method but still is running.
I used YourKit profile to check and I see quite a few threads spawned by Q.
dkfn wrote:
>
> It fails at:
>
>assertNotNull(message1);
>
> btw.
>
I think your example exhibits a threading issue. I modified it so the
consumer is in a separate thread like this:
private class Consumer implements Runnable {
Consumer() {