"Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

15
© Copyright 2000-2015 TIBCO Software Inc. Analytics inside your Java Application Veaceslav Chicu [email protected]

Transcript of "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

Page 1: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

© Copyright 2000-2015 TIBCO Software Inc.

Analytics inside your Java Application

Veaceslav [email protected]

Page 2: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

© Copyright 2000-2015 TIBCO Software Inc.

Overview

JasperReports Library

Teodor Danciu started library in 2001, he needed to show data from his application and export this data to different formats. He made it open source and published on sourceforge.net and it become popular.

Page 3: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

© Copyright 2000-2015 TIBCO Software Inc.

Overview

What interactive reports are?

• Static reports just show data

• Interactive reports allow user to sort data, change column order, change chart type, change formatting.

• Interactivity is possible in HTML format, standard for UI today

Page 4: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

© Copyright 2000-2015 TIBCO Software Inc.

Overview

What analytics are?

Users always want more. They don’t want to create templates, they want to explore data and find answers from their data in an easy and fast way. To do this we have AdHoc reporting “analytics”, a web server application with web ui where you can build a report while exploring and discovering your data.

Page 5: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

© Copyright 2000-2015 TIBCO Software Inc.

Overview

What tools we provide?

JasperReports library we’ll help you with static reporting and interactive reports. We have a tool called Jaspersoft Studio that will help you write report templates. Jaspersoft Server will organise work of multiple users, will give them possibility to share reports, to run reports on a regular bases, to build adhoc reports and dashboards. Jaspersoft Server provide a REST and JavaScript APIs for developers, so it’s easy to use it from other applications or embed directly into a webpage. We provide also documentation, tutorials, forum, bugzilla, issue tracker and support.

Page 6: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

© Copyright 2000-2015 TIBCO Software Inc.

Overview

Agenda

I’ll explain you how to: use JasperReports in a java application how to use Jaspersoft Studio how to create AdHoc reports with Jaspersoft Server

Page 7: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

© Copyright 2000-2015 TIBCO Software Inc.

Jasper Reports Library

Let’s look at Jasper Reports LibraryBig Overview

Page 8: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

© Copyright 2000-2015 TIBCO Software Inc.

Jasper Reports Library

Architecture

template.jrxml

REPORT pdf

excel html xml csv text

JasperReports Library

DATA jdbc csv

hibernate mongodb cassandra

json xml

Page 9: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

© Copyright 2000-2015 TIBCO Software Inc.

Jasper Reports Library

How to use it? Basic example

Connection c = … ;// create SQL Connection

JasperDesign jasperDesign = JRXmlLoader.load(“/home/template.jrxml”);

JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);

JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap(), c);

JasperExportManager.exportReportToPdfFile(jasperPrint, “/home/report.pdf");

Page 10: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

© Copyright 2000-2015 TIBCO Software Inc.

Jasper Reports Library

What is Jaspersoft StudioBig Overview

Page 11: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

© Copyright 2000-2015 TIBCO Software Inc.

Jaspersoft Studio

DemoBetter is to see how it works …

Page 12: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

© Copyright 2000-2015 TIBCO Software Inc.

Jasper Reports Library

And JasperReports ServerBig Overview

Page 13: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

© Copyright 2000-2015 TIBCO Software Inc.

JasperReports Server

What is it? Why I need it?

Help organise work of multiple users. A central repository for reporting objects, scheduling, security, simplify report management (deployment). Provide user interfaces for fast report creation. Allows embedding visualisations, reports into the webpages. Provides REST api for third party applications.

And it’s not a server, it’s a webapp.

Page 14: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

© Copyright 2000-2015 TIBCO Software Inc.

Jaspersoft Studio

DemoBetter is to see how it works …

Page 15: "Analytics inside your Java application", Part 2, jDays 2015 Speaker: "Veaceslav Chicu"

15

Questions & Answers

Thank you!

© Copyright 2000-2015 TIBCO Software Inc.

Veaceslav Chicu [email protected]