Skip navigation.
Downloads | Product Documentation | Support

# JmsProducer.h

Go to the documentation of this file.

    00001
    00010 #ifndef _JMS_PRODUCER_H
    00011 #define _JMS_PRODUCER_H 1
    00012
    00013 #include <JmsCommon.h>
    00014 #include <JmsDestination.h>
    00015 #include <JmsMessage.h>
    00016 #include <JmsTypes.h>
    00017
    00021 typedef struct JmsProducer JmsProducer;
    00022
    00026 typedef struct {
    00031   JMS32I           flags;
    00035   JmsDestination * destination;
    00039   int              deliveryMode;
    00043   int              priority;
    00047   JMS64I           timeToLive;
    00048 } JmsProducerOptions;
    00049
    00053 #define JMS_PO_NOMESSAGEID   (1 << 0)
    00054
    00057 #define JMS_PO_NOTIMESTAMP   (1 << 1)
    00058
    00061 #define JMS_PO_DESTINATION   (1 << 2)
    00062
    00065 #define JMS_PO_DELIVERY_MODE (1 << 3)
    00066
    00069 #define JMS_PO_PRIORITY      (1 << 4)
    00070
    00073 #define JMS_PO_TIMETOLIVE    (1 << 5)
    00074
    00075 #ifdef __cplusplus
    00076 extern "C" {
    00077 #endif /* __cplusplus */
    00078
    00098 extern int JMSENTRY JmsProducerClose(
    00099   JmsProducer * producer,
    00100   JMS64I              flags
    00101 );
    00102
    00118 extern int JMSENTRY JmsProducerSend(
    00119   JmsProducer        * producer,
    00120   JmsProducerOptions * options,
    00121   JmsMessage         * message,
    00122   JMS64I              flags
    00123 );
    00124
    00125 #ifdef __cplusplus
    00126 }
    00127 #endif /* __cplusplus */
    00128 #endif /* _JMS_PRODUCER_H */
    00129

Copyright 1996,2008, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.