Sun Java System Messaging Server 6 2005Q4 MTA Developer's Reference

Example

The following code fragment obtains the name of the channel used as the source channel for the enqueue.


mta_nq_t *nq;
const char *channel;

mtaEnqueueStart(&nq, "sue@siroe.com", 0, 0);
mtaEnqueueInfo(nq, MTA_CHANNEL, &channel, NULL, 0);
printf("Source channel = %s\n", channel);