jpa - Transaction : Data retrieval needs transaction? -


  • wildfly 8.2
  • hibernate 4.3.7
  • jpa 2

hi,

i using ejb 3 , working on reporting requirement retrieves data db , hands on highcharts.

do need transaction when query database. aware having no transaction speeds things know inputs in terms of shortcomings.

thanks in advance, rakesh

update:

checkout pro jpa 2 book. discusses same thing , recommends use @transactionattribute(transactionattributetype.not_supported) on session bean methods. logical jpa provider has lot less when there no transaction.

took bit long squeeze-in time bit of performance testing. initial post states, question using no transaction @ ejb level. found searching @ http://www.javaperformancetuning.com/tips/j2ee_ejb.shtml. in order make sure comments, there in, relvant ejb 3.1, did testing , having no transaction (never or notsupported) speeds things extent of 30-40%. seems there no side effects of either. inputs.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -