Jump to content

SubReport - Threading causes problem in Hibernate


raffimd

Recommended Posts

Hi,

I have 2 subreports in a report.

Jasper Engine creates seperate threads for each subreport.

Because of the thread, I face some problem in Hibernate session. I am implementing the JRDatasource interface for the subreport and making many calls to spring service layer which calls the DB through Hibernate. Looks like the Hibernate session is gettign closed between the service layer calls.

Based on the analysis, I beleive that the spawned thread will cause this kind of Hibernate session issue.

 

Is there a way to control the spawning of threading and instruct the JasperEngine to run the subreports in the same thread of the main report?

 

Your help is really appreciated,

Thanks in Advance,

Raffi

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...