java - Where to fit in Jasper Reports - front end or business? -


I'm trying to use Jesper reports (v3.5.2) Web app This webpage already uses JSF (woodstock) for front-end and a MySQL db with EJB3 (with JApa and as a hibernate provider firm).

My question is - Where to beat the code for the creation of Jasper based reports? I'm completely confused about it. Should I put it in JSF Front End? Or should it be a "report" module in business logic as the session's beans?

I would think that the right place for this is the business level as a separate module. I will call a business method with the name of the input method map and report format as the parameters of the business method. And in return, I can get PDF / html generated, after which I can send it to the browser. Am I on the right track with it?

Can you suggest ways to do this?

In addition to this, I would like to use EJBUL because I already have JpA

Thank you.

If you are going to embed jsper as part of your ear, then I would say that it should be flat in a class as you suggest. I am not sure that I will make a separate EJB for it, unless you are clustering or otherwise going to offload the report generation on any other JVM, or you need some special transaction.

Another common option is completely a separate report server that you will call from far away, and it will interact with the user.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -