[openamq-dev] Help required on Send/Receive Messages with Direct Exchange type
Malinga
malingajava at yahoo.com
Thu Aug 23 13:20:04 CEST 2007
Hi,
have came accorss the same situation, with that code. Server stops by complying segmentation fault, and also the client. and i just because your client and server programs both having following code lines which is not required i thing. I just removed it from one of the programs and run it so it did work.
amq_client_session_exchange_declare(
session,
0,
"amq.direct",
"direct",
FALSE,
TRUE,
FALSE,
FALSE,
NULL);
amq_client_session_queue_declare (
session, // session
0, // ticket
cdestination, // queue name
FALSE, // passive
TRUE, // durable
FALSE, // exclusive
FALSE, // auto-delete
NULL); // arguments
// Bind the queue to the exchange
amq_client_session_queue_bind (
session, // session
0, // ticket
cdestination, // queue
"amq.direct", // exchange
cdestination, // routing-key
NULL); // arguments
-Malinga
____________________________________________________________________________________
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openamq.org/pipermail/openamq-dev/attachments/20070823/12e91c56/attachment-0001.htm
More information about the openamq-dev
mailing list