Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Swap and keep a backup as follows
Rename entityengine.xml to entityengine.xml.bak
Rename entityengine-jboss.xml to entityengine.xml
Now open entityengine.xml file and modify the content accordingly.
Here basically we are setting jndi datasource names and connection manager
Comment the geronimo transaction manager
<!--transaction-factory class="org.ofbiz.geronimo.GeronimoTransactionFactory"/-->

Uncomment the following and modify it as given below

<transaction-factory class="org.ofbiz.entity.transaction.JNDIFactory">
    <user-transaction-jndi jndi-server-name="default" jndi-name="UserTransaction"/>
    <transaction-manager-jndi jndi-server-name="default" jndi-name="java:/TransactionManager"/>
</transaction-factory>

Navigate down and find the tag <datasource name=�localderby� and then comment the following
<!--
<inline-jdbc
    jdbc-driver="org.apache.derby.jdbc.EmbeddedDriver"
jdbc-uri="jdbc:derby:ofbiz;create=true"
jdbc-username="ofbiz"
jdbc-password="ofbiz"
isolation-level="ReadCommitted"
pool-minsize="2"
pool-maxsize="250"/>
-->

...