anchor.diff:          <artifactId>jboss-transaction-api_1.2_spec</artifactId>
       </dependency>
   
  -    <!-- JBoss Transactions dependency - this (or another implementation) is
  -         provided in a Java EE container -->
  -    <dependency>
  -        <groupId>org.jboss.jbossts</groupId>
  -        <artifactId>jbossjta</artifactId>
  +    <!-- Add the Narayana Transactions Manager
  +         an implementation would be provided in a Java EE container,
  +         but this works nicely in Java SE as well -->
  +    <dependency>
  +        <groupId>org.jboss.narayana.jta</groupId>
  +        <artifactId>narayana-jta</artifactId>
  +    </dependency>
  +    <dependency>
  +        <groupId>org.jboss</groupId>
  +        <artifactId>jboss-transaction-spi</artifactId>
       </dependency>
   </dependencies>
   ----
  
positive.code: [source, JAVA]
  ----
  //accessing JBoss's Transaction can be done differently but this one works nicely
  TransactionManager tm = getTransactionManager();
  
  //build the EntityManagerFactory as you would build in in Hibernate ORM
  EntityManagerFactory emf = Persistence.createEntityManagerFactory(
  
negative.code: 
  emf.close();
  
  ----
  
  A working example can be found in Hibernate OGM's distribution under
  [filename]`hibernate-ogm-documentation/examples/gettingstarted`.
  