[rabbitmq-discuss] erlang client API: transactions

Valentino Volonghi dialtone at gmail.com
Tue Sep 23 15:57:03 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Sep 23, 2008, at 5:00 AM, Ben Hood wrote:

> This duplicates the ack/2 function in lib_amqp.

Yes, that's where I copied it from in fact :).

>>
>> tx_select({_Connection, Channel, _Ticket}) ->
>>    ok = amqp_channel:cast(Channel, #'tx.select'{}).
>>
>> tx_commit({_Connection, Channel, _Ticket}) ->
>>    ok = amqp_channel:cast(Channel, #'tx.commit'{}).
>
> tx.select/tx.commit are synchronous commands, so you have to use
> amqp_channel:call/2 instead of amqp_channel:cast/2
>
> This should really go into lib_amqp - I'll add this as an improvement.

Ok, I see good.

> Also, tickets/realms are deprecated and have been removed from the
> mainline client code.

Oh, that's why they are not in lib_amqp then. I guess now I'll add  
some stuff
to the client code API like a different username/password than guest/ 
guest
and some other small stuff (like amqp_util:basic_properties/0 that  
allows
to set different values for the 3 basic ones). and I'll send a patch  
here.

thanks!

> Please see the fix for this in my repsonse to Edwin's mail.


Nice, thanks for the fast response.

- --
Valentino Volonghi aka Dialtone
Now running MacOS X 10.5
Home Page: http://www.twisted.it
http://www.adroll.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iEUEARECAAYFAkjZA8AACgkQ9Llz28widGWD4QCVFBKUA3dFfwnMFrIwE6Ag70dq
ZgCgl5Lg/86ZIyBkSE3k3F6x3oSoJuc=
=++9G
-----END PGP SIGNATURE-----




More information about the rabbitmq-discuss mailing list