Open hossam-houssien opened 2 years ago
Interesting.
This use case was never intended. The main use case is to use an Oracle database connection. But you can also connect to any JNDI data source, here you can connect to other (mostly) sql databases. You configure that directly in Tomcat.
In your case I would probably:
select null from dual
or something similar. Something along those lines.
The use case is interesting, I like the idea of passing the data via xml or json directly to the report engine.
some times we need to have json or xml data source into jasper report, which we can do, however we can't find a way to call such report from JasperReportsIntegration
here is an example report
in above example there is variable
$P{jsonSource}
which have a default value for a path of a.json
file liketest.json
the data in json file (for the example) is
when we run this example in jasperdoft studio v6.1.1, it works fine.
we can't find a way to deploy it to JasperReportsIntegration (in reports dir) , each time we try to call it from the test page (removing the datasource name value) it gives:-
Could not connect via JDBC: IO Error: The Network Adapter could not establish the connection
Is there any way to bypass the name of the data source, so it pick up the provided in report? or is there a way to configure and use another data source type?
we are using JasperReportsIntegration v 2.4.0.0