#include <JmsCommon.h>
#include <JmsBrowser.h>
#include <JmsConsumer.h>
#include <JmsDestination.h>
#include <JmsProducer.h>
#include <JmsQueue.h>
#include <JmsTopic.h>
#include <JmsTypes.h>
Go to the source code of this file.
Defines | |
#define | SESSION_TRANSACTED 0 |
#define | AUTO_ACKNOWLEDGE 1 |
#define | CLIENT_ACKNOWLEDGE 2 |
#define | DUPS_OK_ACKNOWLEDGE 3 |
Typedefs | |
typedef JmsSession | JmsSession |
Functions | |
int JMSENTRY | JmsSessionGetTransacted (JmsSession *session, int *transacted, JMS64I flags) |
int JMSENTRY | JmsSessionGetAcknowledgeMode (JmsSession *session, int *acknowledgeMode, JMS64I flags) |
int JMSENTRY | JmsSessionCommit (JmsSession *session, JMS64I flags) |
int JMSENTRY | JmsSessionRollback (JmsSession *session, JMS64I flags) |
int JMSENTRY | JmsSessionClose (JmsSession *session, JMS64I flags) |
int JMSENTRY | JmsSessionRecover (JmsSession *session, JMS64I flags) |
int JMSENTRY | JmsSessionCreateProducer (JmsSession *session, JmsDestination *destination, JmsProducer **producer, JMS64I flags) |
int JMSENTRY | JmsSessionCreateConsumer (JmsSession *session, JmsDestination *destination, JmsString *selector, int noLocal, JmsConsumer **consumer, JMS64I flags) |
int JMSENTRY | JmsSessionCreateDurableSubscriber (JmsSession *session, JmsTopic *topic, JmsString *name, JmsString *selector, int noLocal, JmsConsumer **consumer, JMS64I flags) |
int JMSENTRY | JmsSessionCreateBrowser (JmsSession *session, JmsQueue *queue, JmsString *selector, JmsBrowser **browser, JMS64I flags) |
int JMSENTRY | JmsSessionUnsubscribe (JmsSession *session, JmsString *name, JMS64I flags) |
int JMSENTRY | JmsSessionCreateTemporaryQueue (JmsSession *connection, JmsQueue **queue, JMS64I flags) |
int JMSENTRY | JmsSessionCreateTemporaryTopic (JmsSession *connection, JmsTopic **topic, JMS64I flags) |
This file describes the functions that can be performed on a JmsSession handle A JmsSession handle corresponds to javax.jms.Session
|
The session's acknowledge mode is auto-acknowledge |
|
The session's acknowledge mode is client controlled |
|
The session's acknowledge mode is duplicates ok |
|
The session's acknowledge mode is transacted |
|
A session handle that represents the class javax.jms.Session |
|
Closes the session. Since a provider may allocate some resources on behalf of a session outside the JVM, clients should close the resources when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough. Unlike in java, the producers and consumers of a closed session must be explicitly closed. This call will block until a receive call or message listener in progress has completed. A blocked message consumer receive call returns null when this session is closed. Closing a transacted session must roll back the transaction in progress. This method is the only Session method that can be called concurrently. Invoking any other Session method on a closed session has undefined behaviour. Closing a closed session also has undefined behaviour. This behaviour is different from the Java behavior. After a call to this function the session handle is no longer valid and should not be referenced
|
|
Commits all messages done in this transaction and releases any locks currently held
|
|
Creates a valid browser handle for the given queue from the given session handle
|
|
Creates a valid consumer handle for the given destination from the given session handle
|
|
Creates a valid consumer handle for the given topic from the given session handle. The subscription created is durable
|
|
Creates a valid producer handle for the given destination from the given session handle
|
|
Creates a temporary queue from the given session
|
|
Creates a temporary topic from the given session
|
|
Returns the acknowledge mode of the session
|
|
Tells whether or not a session handle is transacted
|
|
Stops message delivery in this session, and restarts message delivery with the oldest unacknowledged message. All consumers deliver messages in a serial order. Acknowledging a received message automatically acknowledges all messages that have been delivered to the client. Restarting a session causes it to take the following actions:
|
|
Rolls back any messages done in this transaction and releases any locks currently held
|
|
Destroys a durable subscription with the given name
|
Oracle Fusion Middleware
JMS C API Reference for Oracle WebLogic Server
12c (12.2.1.4.0)
Part Number E90603-01