immediately following the publish is failing. Is it possible that you are publishing to a non-existent exchange (testexchange)? What does the broker logfile say? The solution in this case is to make sure that the exchange you publish to exists. -Emile