Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Pentaho 5.0 Reporting by Example: Beginner's Guide

You're reading from  Pentaho 5.0 Reporting by Example: Beginner's Guide

Product type Book
Published in Aug 2013
Publisher Packt
ISBN-13 9781782162247
Pages 342 pages
Edition 1st Edition
Languages
Author (1):
Mariano, GARCIA MATTIO Mariano, GARCIA MATTIO
Profile icon Mariano, GARCIA MATTIO

Table of Contents (23) Chapters

Pentaho 5.0 Reporting by Example
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. What is Pentaho Report Designer? 2. Installation and Configuration 3. Start PRD and the User Interface (UI) Layout 4. Instant Gratification – Creating Your First Report with PRD 5. Adding a Relational Data Source 6. Adding Groups 7. Adding Parameters 8. Using Formulas in Our Reports 9. Adding Charts 10. Adding Subreports 11. Publishing and Running Reports in Pentaho BA Server 12. Making a Difference – Reports with Hyperlinks and Sparklines 13. Environment Variables, Stylesheets, and Crosstabs 14. PRD Reports Embedded in Web Applications Sakila DB Data Dictionary Pop Quiz Answers Index

Time for action – setting a JNDI/JDBC connection pool


We will now create a JDBC connection pool, which will be available via JNDI. Within our project, we will create an XML file and edit it to contain information about the previously mentioned pool. Finally, we will copy MySQL's JDBC driver into our project.

  1. We will head to the Project Explorer panel, which is located on the left of the UI, and navigate through prd5ch14 | WebContent | META-INF; once there, we will go to New | Other... and lastly select XML | XML File. We will then click on Next >, save the file with the name context.xml, and click on Finish to continue.

  2. Once the XML file is created, we will automatically be presented with an XML editor in the central part of the UI. We will click on the Source tab to edit our code as shown in the following screenshot:

  3. We will now enter the following XML code into our file:

    <?xml version="1.0" encoding="UTF-8"?>
    <Context>
      <Resource auth="Container" description="Sakila DB Connection...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}