code: private void makeReadOnly(final Session session, final String tracingId)
  	{
  		Tracing.logOngoing(tracingId, "TX:makeReadonly Set Default ReadOnly");
  
  		session.setDefaultReadOnly(true);
  
  		Tracing.logOngoing(tracingId, "TX:makeReadonly Set Hibernate Flush Mode to MANUAL");
  
  		session.setHibernateFlushMode(FlushMode.MANUAL);
  
  		Tracing.logOngoing(tracingId, "TX:makeReadonly Make Connection Read Only");
  
  		// Make the Connection read only
  		session.doWork(SetJDBCConnectionReadOnlyWork.READ_ONLY);
  
  		Tracing.logOngoing(tracingId, "TX:makeReadonly Complete");
  	}
docs: Make the session (and the underlying {@link java.sql.Connection} read only
  
  @param session
  @param tracingId