protected SessionImpl(final ConnectionImpl connection, final AcknowledgeMode acknowledgeMode) throws JMSException
{
_connection = connection;
_acknowledgeMode = acknowledgeMode;
Connection clientConn = _connection.getClientConnection();
try
{
_session = clientConn.createSession();
}
catch (ConnectionException e)
{
final JMSException jmsException = new JMSException(e.getMessage());
jmsException.setLinkedException(e);