[Twisted-Python] Running a client within a thread... do I need to rewrite?
I have an existing twisted client connecting to a jabber server in order to send notifications for our web app. I'd like to fold in a STOMP message client into the my existing code, so I can do something like this: web app --> STOMP queue --> STOMP client --> jabber client --> jabber server Problem is, the STOMP client library I'm using creates a socket, spawns a thread, and listens, calling a callback method when it gets information. 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? Best, Andrew -- -------- Tap the collective. http://www.fluther.com
On Sat, Nov 08, 2008 at 12:27:27AM -0800, Andrew McClain wrote:
[..]
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?
Maybe you can use txStomp, a Twisted implementation of Stomp. -- Groetjes, ralphm
participants (2)
-
Andrew McClain -
Ralph Meijer