txamqp-user team mailing list archive
-
txamqp-user team
-
Mailing list archive
-
Message #00055
txthrift with multiple services
Hi all,
first of all, really congrats for txamqp and txthrift.
You're cool x3 :)
then...
I'm trying to expose different thrift services for doing
remote calls via txamp.
I've pretty understood the "tutorial" example with thrift and twisted,
and now I'm trying to add a second service to the same server.
the idea is to have a different queue/key for each service
and add <service>Handlers on the server side.
I was think to just add a createThriftServer call for each service,
but seems I'm plain wrong :)
The first call to createThriftServer is ok, the next one blocks because
the txamp lib is complaining on channel.channel_open in protocol.py ,
since the channel is already open.
But for sure I'm doing something wrong, mind that is my very first
project with twisted and thrift and amqp... so treat me as newbie :)
so, someone has some pointer to check on how to expose
more than one thrift service in txthrift+txamp ?
thanks really a lot,
mat