Where I can define the timeout for queries within hibernate in WildFly environment, is it the persistence.xml? And what is the default value?
<persistence>
<persistence-unit name="my-pu">
<properties>
<property name="javax.persistence.lock.timeout" value="2000"/>
<property name="javax.persistence.query.timeout" value="2000"/>
</properties>
</persistence-unit>
</persistence>