BIRT spring Integration - spring

New to BIRT, started 3 days back.
Requirement
Will have REPORTING menu in the existing web application, which will give option to choose the type of report(pdf and chart(drilled down also))
and generate the selected chart with the mentioned date.
What I had done so far
Tried stand-alone report application using sample database.
created a birt rest service, but not sure how to feed data to that.
Calrification required
Do I need to create a template using report design eclipse plugin and an application which is a spring boot where I can connect to
database using hibernate and feed the template with data or is there any better approach in this?
My application consists of REST API and the client will consume it. So what will be the return type of the birt web service? Is it a byte stream?
To run BIRT on existing tomcat server, Do I need any other libraries.
Has been referred a lot of articles regarding BIRT, really stuck at integrating with an existing application. Thanks in advance

Related

Make BIRT report using data from Gemfire cache

I am relatively new to both, BIRT and gemfire but I know the basics. Thought I wasn't able to find how BIRT can fetch data from gemfire cache.
Can someone please help me on the procedure or whether it is possible or not?
It looks like BIRT uses JDBC (amongst other means) to talk to a backend datasource. Unfortunately GemFire does not provide a JDBC driver. You would need to develop a custom ODA Data Source as described here: https://wiki.eclipse.org/Use_Case_-_Create_a_Custom_ODA_Data_Source

How to automatically create DynamoDB table on application startup using Spring Data DynamoDB?

I am using spring-data-dynamodb Spring Data extension to integrate AWS DynamDB with Spring Boot 2.0. I was able to make it work.
My question is, is there a way that the table is automatically created on application startup if it doesn't already exists, similar to what Hiberate offers via hibernate.hbm2ddl.auto ?. Right now, I have to create the table manually or in the application using the AWS DynamoDB sdk. Many Thanks.
Right now there is no such feature but there is an open feature request: https://github.com/derjust/spring-data-dynamodb/issues/17 (which I'm actually working on these days)
Note: I'm the maintainer of this GitHub project.

Does Spring have any solution for Web Scraping?

I need to build a web application which is going to scrape and crawl some websites and extract data and crawlers will have scheduler. I know there are plenty of tools for parsing and extracting data like Jsoup, but I just want to know whether I can implement this with Spring Tools or not?
There is no one single template project available from Spring which fits your case. But you can definitely achieve what you want through Spring. Spring provides many template projects to develop different kind of applications. There is Spring Boot project to quickly get started with a web application. There is Spring Scheduler project for scheduling tasks. I would suggest combine these two and develop your application.
For crawling and Scraping, I believe there are no templates available from Spring. But you can do it using jSpider and jSoup.

need to use jhipster generated entities, etc from standalone application

Using Jhipster I have successfully configured and running angularjs application fine from front end. I have created many custom entities also successfully. Now, in the project I want to have a load.java file and make use of those created entities to load the data from csv files to those entity tables. I mean with out using front end (Angulars), I should be able to use to all the created entities and crud operations from load.java, is it possible to do it? If yes, any sample code reference would be helpful, i did not find any documentation on this part on the website.
CSV loading in JHipster is done through Liquibase at database initialisation.
if you want to load CSV at any time you'll have to code it yourself using the repositories generated by JHipster and this is pure Spring data/JPA question not JHipster specific.

CRUD generator for Struts 2 application

I have an already existing application built on Java 5 & Struts2 MVC framework having Oracle 11g DB.
Application has large number of tables which are often updated using insert queries or update statements
and I am looking to develop a CRUD application and avoid any manual script execution.
Number of tables are very large with dependency over each other, so I was looking for a java framework which can directly generate the code based on existing table structure, with the flexibility to allow upload excel with data and provide a bulk update features.
Tried with Spring Roo but want to know if there are more framework which can be used with existing Struts 2 MVC.
If you want to use CRUD application with Struts2 then you should look into Struts 2 CRUD Tutorial .
The application example from Struts Struts 2 CRUD Example
This example was created to be as simple as possible and as such, it does not use all of the advanced (integration) features such as Spring IoC, Hibernate Open-session-in-view, OS Sitemesh, annotations, etc .
You can also look at other Examples at GitHub.
About java code generation you can use Jboss Tools.
Hibernate Tools provides easy generation, testing and prototyping of your Hibernate or JPA mapped projects. Use it to Run queries, browse mappings and generate code for your data projects.
Consider Reverse Engineering section if you work on generating Java code.
Put Hibernate Tools Reference Guide to the desktop to read and help with any aspects of code-generation with Hibernate.
References:
Struts2 Builder Project
Easy CRUD with Struts 2 video
Basically what you want is :
Given an existing database, avoid coding manually the queries and the Java classes, and let instead {SMART_SOFTWARE} generates them for you.
Struts2 is a front-end MVC framework, it doesn't know anything specific about CRUD; while using Struts2, you are free to choose any persistence technology you like (JDBC, Hibernate, JPA, etc...).
Since the question involves Java EE, the standard is JPA.
If you're ok with using the Java Persistence API, then you're lucky! The software you're looking for is
Eclipse JPA Tools
It's able to map the DB and create the Java classes (JPA Entities) by reverse-engineering the tables.
Note: there are equivalent tools for NetBeans and other IDE, if you're into them.

Resources