Package org.bedework.util.jms
Class JmsConnectionHandler
java.lang.Object
org.bedework.util.jms.JmsConnectionHandler
- All Implemented Interfaces:
org.bedework.util.logging.Logged
This is a class to ease setting up of JMS connections..
- Author:
- Mike Douglass
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Field Details
-
ackMode
public static int ackMode -
useTransactions
public static final boolean useTransactions- See Also:
-
-
Constructor Details
-
JmsConnectionHandler
-
-
Method Details
-
open
Open a connection to the named queue ready to create a producer or consumer.- Parameters:
queueName- the queue- Throws:
NotificationException- on fatal error
-
close
public void close() -
getSession
public javax.jms.Session getSession()- Returns:
- jms session
-
getProducer
- Returns:
- a message producer
- Throws:
NotificationException- on fatal error
-
getConsumer
- Returns:
- a message consumer
- Throws:
NotificationException- on fatal error
-
receive
- Returns:
- next message
- Throws:
NotificationException- on fatal error
-
getLogger
public org.bedework.util.logging.BwLogger getLogger()- Specified by:
getLoggerin interfaceorg.bedework.util.logging.Logged
-