Skip to content

Commit d613771

Browse files
Fix minor type on OGM getting started guide
1 parent 7d62384 commit d613771

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ogm/documentation/getting-started.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Create a [filename]+META-INF/persistence.xml+ file.
148148
<?xml version="1.0"?>
149149
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
150150
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
151-
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun. com/xml/ns/persistence/persistence_2_0.xsd"
151+
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
152152
version="2.0">
153153
154154
<persistence-unit name="ogm-jpa-tutorial" transaction-type="JTA">
@@ -215,7 +215,9 @@ tm.commit();
215215
216216
emf.close();
217217
218-
public static TransactionManager getTransactionManager() throws Exception
218+
private static final String JBOSS_TM_CLASS_NAME = "com.arjuna.ats.jta.TransactionManager";
219+
220+
public static TransactionManager getTransactionManager() throws Exception {
219221
Class<?> tmClass = Main.class.getClassLoader().loadClass(JBOSS_TM_CLASS_NAME);
220222
return (TransactionManager) tmClass.getMethod("transactionManager").invoke(null);
221223
}

0 commit comments

Comments
 (0)