jbossdemocentral / jboss-fuse-mqgateway-failoverdemo

Failover Camel client using fabric discovery look up brokers
6 stars 4 forks source link

When you try to stop and start testcon (to do the demo again), you get an error #5

Open alberttwong opened 9 years ago

alberttwong commented 9 years ago

For fun, I tried to demo this again. When I ran the testcon a second time (stop and then start again), I got the following error.

Failed to add Connection ID:Alberts-MacBook-Pro.local-62685-1437674142273-1:1 due to javax.jms.InvalidClientIDException: Broker: failoverMS - Client: failoverdemoClient already connected from tcp://10.0.1.5:62650

alberttwong commented 9 years ago

What is the correct way to reset the demo?

sabre1041 commented 9 years ago

The best method to make the demos reproducible is to run them in a Docker container where the container and execution is ephemeral. I have created #7 for the creation of this for this particular demo. Many of the other demos include this option to fit exactly this use case