|
|||||||||
| Home >> All >> mobile >> [ jmsapi overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
mobile.jmsapi
Class Session

java.lang.Objectmobile.jmsapi.Id_class
mobile.jmsapi.Session
- All Implemented Interfaces:
- mobile.bearer.http.Protocol
- Direct Known Subclasses:
- QueueSession, TopicSession
- public abstract class Session
- extends Id_class
- implements mobile.bearer.http.Protocol
- extends Id_class
class representing session of connection with JMS provider
| Field Summary | |
static int |
AUTO_ACKNOWLEDGE
|
static int |
CLIENT_ACKNOWLEDGE
|
static int |
DUPS_OK_ACKNOWLEDGE
|
static int |
SESSION_TRANSACTED
|
private int |
transacted
determines if this session is transacted |
| Fields inherited from class mobile.jmsapi.Id_class |
id |
| Constructor Summary | |
Session()
|
|
| Method Summary | |
void |
commit()
Commits all messages done in this transaction and releases any locks currently held. |
BytesMessage |
createBytesMessage()
creates new BytesMessage to be filled and sent |
Consumer |
createConsumer(Destination _dest)
creates a new message consumer from specified source |
Producer |
createProducer(Destination _dest)
creates new message producer for specified destination |
TextMessage |
createTextMessage()
creates new TextMessage to be filled and sent |
protected abstract Consumer |
newConsumer()
A "subclass responsibility" method Creates new Consumer, apropriate to the subclass type (QueueReciever xor TopicSubscriber) |
protected abstract Producer |
newProducer()
A "subclass responsibility" method creates new Producer, apropriate to the subclass type (QueueSender xor TopicPublisher) |
void |
rollback()
Rolls back any messages done in this transaction and releases any locks currently held. |
| Methods inherited from class mobile.jmsapi.Id_class |
getObject, log, request, request, request, request, request, request, request, strToBool, strToLong, TYPE_MASK |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
AUTO_ACKNOWLEDGE
public static final int AUTO_ACKNOWLEDGE
- See Also:
- Constant Field Values
DUPS_OK_ACKNOWLEDGE
public static final int DUPS_OK_ACKNOWLEDGE
- See Also:
- Constant Field Values
CLIENT_ACKNOWLEDGE
public static final int CLIENT_ACKNOWLEDGE
- See Also:
- Constant Field Values
SESSION_TRANSACTED
public static final int SESSION_TRANSACTED
- See Also:
- Constant Field Values
transacted
private int transacted
determines if this session is transacted
| Constructor Detail |
Session
public Session()
| Method Detail |
newConsumer
protected abstract Consumer newConsumer()
A "subclass responsibility" method Creates new Consumer, apropriate to the subclass type (QueueReciever xor TopicSubscriber)
newProducer
protected abstract Producer newProducer()
A "subclass responsibility" method creates new Producer, apropriate to the subclass type (QueueSender xor TopicPublisher)
createTextMessage
public TextMessage createTextMessage()
creates new TextMessage to be filled and sent
createBytesMessage
public BytesMessage createBytesMessage()
creates new BytesMessage to be filled and sent
commit
public void commit()
throws JMSException
Commits all messages done in this transaction and releases any locks currently held.
rollback
public void rollback()
throws JMSException
Rolls back any messages done in this transaction and releases any locks currently held.
createConsumer
public Consumer createConsumer(Destination _dest) throws JMSException
creates a new message consumer from specified source
createProducer
public Producer createProducer(Destination _dest) throws JMSException
creates new message producer for specified destination
|
|||||||||
| Home >> All >> mobile >> [ jmsapi overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC