I have an existing twisted client connecting to a jabber server in order to send notifications for our web app.<div><br></div><div>I&#39;d like to fold in a STOMP message client into the my existing code, so I can do something like this:</div>
<div><br></div><div>web app --&gt; STOMP queue --&gt; STOMP client --&gt; jabber client --&gt; jabber server</div><div><br></div><div>Problem is, the STOMP client library I&#39;m using creates a socket, spawns a thread, and listens, calling a callback method when it gets information.</div>
<div><br></div><div>In order to integrate this with my twisted jabber client, do I need to rewrite the whole client using deferreds? Or could I use something like defertothread to encapsulate the STOMP client?<br clear="all">
<br></div><div>Best, Andrew<br>-- <br>--------<br>Tap the collective.<br><a href="http://www.fluther.com">http://www.fluther.com</a><br>
</div>