Jms Administration - Red Hat APPLICATION SERVER - JONAS Manual

Jonas
Hide thumbs Also See for APPLICATION SERVER - JONAS:
Table of Contents

Advertisement

204
}
...
}
Programming EJB components with bean-managed transactions can result in complex code. Using
container-managed transactions can help avoid problems such as those previously described.

26.4. JMS Administration

Applications using messaging require some JMS-administered objects: connection factories and des-
tinations. These objects are created via the proprietary administration interface (not standardized) of
the JMS provider. For simple cases, it is possible to have either the
adapter, performing administration operations during startup.
As provided, the default JMS service and JORAM adapter configurations automatically create six
connection factories and two destination objects.
The six connection factories automatically created are described in the following table:
JNDI name
JMS type
CF
ConnectionFactory
QCF
QueueConnectionFactory
TCF
TopicConnectionFactory
JCF
ConnectionFactory
JQCF
QueueConnectionFactory
JTCF
TopicConnectionFactory
The CF, QCF and TCF connection factories are managed connection factories. The application com-
ponents should use only managed connection factories to allow JOnAS to manage the JMS resources
created via these connection factories (the JMS sessions). In contrast, JCF, JQCF and JTCF are non-
managed connection factories. They are used by Java components implementing a JMS client behav-
ior, but running outside the application server.
The two destinations automatically created are described in the following table:
JNDI name
JMS type
sampleQueue
Queue
sampleTopic
Topic
Chapter 26. JMS User's Guide
jms
Usage
To be used by an application component to create
a connection.
To be used by an application component to create
a QueueConnection.
To be used by an application component to create
a TopicConnection.
To be used by any other Java component (for
instance a client) to create a connection.
To be used by any other Java component (for
instance a client) to create a QueueConnection.
To be used by any other Java component (for
instance a client) to create a TopicConnection.
Usage
Can be equally used by an EJB component or a
Java component.
Can be equally used by an EJB component or a
Java component.
service, or the JMS resource

Advertisement

Table of Contents
loading

This manual is also suitable for:

Application server

Table of Contents