From 3c67ad1d03e3edb68cd3482b5b6a489c175eea6a Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Tue, 27 Apr 2010 22:20:25 +0000 Subject: Load client side plugins just before creating the first Connection. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@938701 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/ConnectionImpl.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid/client/ConnectionImpl.cpp') diff --git a/cpp/src/qpid/client/ConnectionImpl.cpp b/cpp/src/qpid/client/ConnectionImpl.cpp index 23e312ad72..63a21c1205 100644 --- a/cpp/src/qpid/client/ConnectionImpl.cpp +++ b/cpp/src/qpid/client/ConnectionImpl.cpp @@ -21,6 +21,7 @@ #include "qpid/client/ConnectionImpl.h" +#include "qpid/client/LoadPlugins.h" #include "qpid/client/Connector.h" #include "qpid/client/ConnectionSettings.h" #include "qpid/client/SessionImpl.h" @@ -162,10 +163,14 @@ public: } -// Ensure the IO threads exist: -// This needs to be called in the Connection constructor -// so that they will still exist at last connection destruction void ConnectionImpl::init() { + // Ensure that the plugin modules have been loaded + // This will make sure that any plugin protocols are available + theModuleLoader(); + + // Ensure the IO threads exist: + // This needs to be called in the Connection constructor + // so that they will still exist at last connection destruction (void) theIO(); } -- cgit v1.2.1