|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.util.JmsUtil
public final class JmsUtil
Collects some JMS utility functions.
| Method Summary | |
|---|---|
static void |
close(Connection connection)
Closes the jms connection (safe). |
static void |
close(MessageProducer producer)
Closes the jms message producer (safe). |
static void |
close(Session session)
Closes the jms session (safe). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void close(Session session)
JMSException occurs a message with the level Level.FINE is
logged. It's safe to pass a null reference for the argument.
session - The jms session that should be closed.public static void close(Connection connection)
JMSException occurs a message with the level Level.FINE is
logged. It's safe to pass a null reference for the argument.
connection - The connection to be closed.public static void close(MessageProducer producer)
JMSException occurs a message with the level Level.FINE is
logged. It's safe to pass a null reference for the argument.
producer - The message producer to be closed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||