Either you misunderstood what it said, or it is incorrect.
You should not have to explicitly set the transaction type to RESOURCE_LOCAL when using JPA in non-managed mode (outside a container).
That is the default. In fact, you are better off not setting the transaction type so that if you move to running in a container then
you will automatically be transitioned to use the container default transaction type of JTA without having to change the setting.