title: Paho MQTT vs MQTT paho spring integration
body: <p>While I was fixing some issues in my client within an application using paho and spring framework, I discovered the spring MQTT integration. I'm not sure if this fix my problems, and I not even sure what is this. </p>
  
  <p>Could someone explain what is the difference of using this together?</p>
  
  <p>Do spring framework bring errors into paho that the integration solve? </p>
  
  <p>or is save enough use this two technologies separate?</p>
  
  <p>The dependencies used by me are:</p>
  
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
              &lt;version&gt;1.2.5.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;!-- Import dependency management from Spring Boot --&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-dependencies&lt;/artifactId&gt;
              &lt;version&gt;1.2.5.RELEASE&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>and :</p>
  
  <pre><code>&lt;dependency&gt;
              &lt;artifactId&gt;org.eclipse.paho.client.mqttv3&lt;/artifactId&gt;
              &lt;groupId&gt;org.eclipse.paho&lt;/groupId&gt;
              &lt;version&gt;1.0.2&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>The integration of the dependency below it will be quite painful. I want to know if there is any advantage on doing this.</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.integration&lt;/groupId&gt;
      &lt;artifactId&gt;spring-integration-mqtt&lt;/artifactId&gt;
      &lt;version&gt;4.0.4.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Thank you all!</p>