Results 1 to 3 of 3

Thread: Integration with Jasper engine

  1. #1
    Join Date
    Oct 2005
    Posts
    17

    Default Integration with Jasper engine

    I have been trying to integrate with the Jasper type view.
    I have successfully passed my own List as the model and the reports render fine.

    Going through the code I realized I could use the embeded query and then it will use the configured DataSource but if I were using a 3 tiered architecture, would not be feasible (I am not but don;t want to preclude it for the future).

    I started thinking and figued what I really want to do is access the query defined in the report, run that myself (in case the web server is not directly talking to the database) and then pass the model to the view.

    I am looking up the viewResolver and getting the jasper view. I will sub class the View class to allow me getting access to the Jasper Report object so I can access the query string. I can then run that and create a JRDataSource from the resultset or use the tools to do that (not really investigated that part yet).

    Does it sound resonable and is there a better way of doing that?

    While I am there, thanks to whomever for openning the BindTag.

    Yann

  2. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Why do you want to run the query yourself? You can simply the configure the JDBC data source as a property on the View class in your configuration and then let the report engine execute the query. This seems to be a perfectly acceptable approach to me - no real need to get domain objects or a business tier involved for reporting.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

  3. #3
    Join Date
    Oct 2005
    Posts
    17

    Default

    Well if the web server is talking to EJBs I don't really want the web server to talk directly to the database.

    Otherwise I agree.

    Thanks for answering

    Yann

Similar Threads

  1. Spring-driven Jasper compilation fails?
    By garyshea in forum Web
    Replies: 3
    Last Post: Nov 29th, 2005, 01:20 AM
  2. Integration with platonos plugin engine
    By darabi in forum Swing
    Replies: 18
    Last Post: Oct 4th, 2005, 01:53 PM
  3. Problem with jasper reports integration
    By rodney.gallart in forum Web
    Replies: 0
    Last Post: Sep 19th, 2005, 02:03 PM
  4. Separation of integration and unit test source
    By eliot in forum Architecture
    Replies: 4
    Last Post: Jan 30th, 2005, 01:27 PM
  5. Jasper Reports Thread Interruption
    By bhaarathm in forum EJB
    Replies: 4
    Last Post: Oct 5th, 2004, 12:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •