code: public boolean getTransacted() throws IllegalStateException {
  
          if (_sessionClosed) {
              throw new IllegalStateException(NLS.getFormattedMessage(
                      ("ILLEGAL_STATE_CWSJR1131"),
                      new Object[] { "getTransacted"}, null));
          }
          if (_sessionInvalidated) {
              throw new IllegalStateException(NLS.getFormattedMessage(
                      ("ILLEGAL_STATE_CWSJR1135"),
                      new Object[] { "getTransacted"}, null));
          }
  
          return _transacted;
      }
docs: Returns the transacted flag. This will be set before the object is
  returned from <code>createSession</code> which may, in the case of the
  first session, be some time after the construction of the session. This
  flag indicates whether, in the absence of a global or container local
  transaction, work should be performed inside an application local
  transaction.
  
  @return the transacted flag
  @throws javax.resource.spi.IllegalStateException
  if this session has been closed or invalidated