diff --git a/docs/modules/ROOT/pages/index.adoc b/docs/modules/ROOT/pages/index.adoc index 5008092..aeef058 100644 --- a/docs/modules/ROOT/pages/index.adoc +++ b/docs/modules/ROOT/pages/index.adoc @@ -41,13 +41,13 @@ Caused by: java.sql.SQLException: Enlisted connection used without active transa ---- -IMPORTANT: In your service you must use `@Transactional(Transactional.TxType.NEVER)` above the method that is filling your report. +IMPORTANT: In your service you must use `@Transactional(Transactional.TxType.NOT_SUPPORTED)` above the method that is filling your report. [source,java] ---- @Inject DataSource datasource; -@Transactional(Transactional.TxType.NEVER) +@Transactional(Transactional.TxType.NOT_SUPPORTED) public byte[] text() throws JRException, SQLException { JasperPrint jasperPrint = null; try (final Connection connection = datasource.getConnection()) { @@ -112,4 +112,4 @@ CAUTION: Make sure `.dockerignore` does not exclude `.so` files! [[extension-configuration-reference]] == Extension Configuration Reference -include::includes/quarkus-jasperreports.adoc[leveloffset=+1, opts=optional] +include::includes/quarkus-jasperreports.adoc[leveloffset=+1, opts=optional] \ No newline at end of file diff --git a/integration-tests/src/main/java/io/quarkiverse/jasperreports/it/DatabaseReportService.java b/integration-tests/src/main/java/io/quarkiverse/jasperreports/it/DatabaseReportService.java index 6192af0..2c26477 100644 --- a/integration-tests/src/main/java/io/quarkiverse/jasperreports/it/DatabaseReportService.java +++ b/integration-tests/src/main/java/io/quarkiverse/jasperreports/it/DatabaseReportService.java @@ -27,7 +27,7 @@ import net.sf.jasperreports.pdf.JRPdfExporter; @ApplicationScoped -@Transactional(Transactional.TxType.NEVER) +@Transactional(Transactional.TxType.NOT_SUPPORTED) public class DatabaseReportService extends AbstractJasperResource { @Inject @@ -68,4 +68,4 @@ private JasperPrint fill(final String reportName) throws JRException, SQLExcepti } } -} +} \ No newline at end of file