Allowing activemq to work with polyinstanciation