Example usage for org.springframework.jms.connection JmsResourceHolder getSession

List of usage examples for org.springframework.jms.connection JmsResourceHolder getSession

Introduction

In this page you can find the example usage for org.springframework.jms.connection JmsResourceHolder getSession.

Prototype

@Nullable
public Session getSession() 

Source Link

Document

Return this resource holder's default Session, or null if none.

Usage

From source file:com.ccc.ccm.client.JMSTemplateAutowired.java

/**
* Fetch an appropriate Session from the given JmsResourceHolder.
* <p>This implementation accepts any JMS 1.1 Session.
* @param holder the JmsResourceHolder//from   w  ww  .j  a  v  a  2  s.  c o m
* @return an appropriate Session fetched from the holder,
* or <code>null</code> if none found
*/
protected Session getSession(JmsResourceHolder holder) {
    return holder.getSession();
}