• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

spring hibernate

 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using spring and hibernate .
I am injecting sessionFactory to each dao and in dao I m getting the session and doing my dao task.
Everything is ok.
But after sometime it becoming very later for server response.
Please let me know what may be reason.

Thanks
Miku
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Miku,

I am having a hard time understanding your question.
Are you asking why it takes so long for some hibernate and spring code to complete and send back an HTTP response?
If this is the case it is a difficult question to answer. Especially without a description of what you are trying to achieve or some example code.
Some hibernate operations can take a long time - especially non optimized insertion of new data into a database.
You can try running the hibernate code in another thread and return an HTML page that refreshes and displays the progress in the other thread.
This is not a simple undertaking though and covers a lot of different subjects (here is a selection):

TaskExecutor
PlatformTransactionManager
TransactionTemplates and callbacks.
HTML refresh meta data.
 
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic