« Return to Thread: Using ActiveMQ with "C" System

Re: Using ActiveMQ with "C" System

by Ron Koerner :: Rate this Message:

Reply to Author | View in Thread

Hi Dinesh,

the client just needs APR installed.
main.c is just an example, stomp.[ch] are the "library"

You can compile it with
gcc -pthread -D_GNU_SOURCE -o example -I /usr/local/apr/include/apr-1/ main.c stomp.c /usr/local/apr/lib/libapr-1.a

It works but unfortunately it suffers problems since ActiveMQ tends to hang when communicating with STOMP clients. It may not be an issue if you don't do frequent connects and disconnects.

Therefore I'm thinking of enhancing the OpenWire-C client (to a point where it works), since I need a small interface and activemq-cpp is 1.5MB if stripped and -O3'ed.

Regards,
Ron

 « Return to Thread: Using ActiveMQ with "C" System