high-performance reading using non-jta datasource

Description

can we optimize reading performance by using non-jta-data-source along with jta-data-source, ex:
<persistence-unit name="myPU">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:TxDS</jta-data-source>
<non-jta-data-source>java:NoTxDS</non-jta-data-source>
...
</persistence-unit>

when a method with no transaction context it will use NoTxDS else TxDS.

thanks

Environment

JBoss AS 6, Hibernate 4.0 Final

Status

Assignee

Unassigned

Reporter

Ibrahim Abu Ghosh

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Priority

Minor
Configure