title: How to detect the type of a transaction: JTA or Resource Local from java code?
body: <p>Is it possible to detect the type of a transaction (JTA or Resource Local) in Bean Managed Transaction using EclipseLink?
  If yes, how can this be done?</p>
  
  <p>Actually i need to detect the transaction type and the JNDI name aswell if possible in java class.</p>