You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/06/08 20:26:38 UTC
[GitHub] [camel-quarkus] ppalaga commented on a change in pull request #2748: Sql aggregator does not work in native mode.
ppalaga commented on a change in pull request #2748:
URL: https://github.com/apache/camel-quarkus/pull/2748#discussion_r647766729
##########
File path: docs/modules/ROOT/pages/reference/extensions/sql.adoc
##########
@@ -67,6 +67,25 @@ Note that URI schemes such as `file` or `http` do not need to be listed.
quarkus.camel.sql.script-files = queries.sql, classpath:sql/insert.sql
----
+=== SQL Aggregator ===
+
+If your exchanges in native mode contain objects other than:
+
+* `java.util.LinkedHashMap`
+* `java.util.HashMap`
+* `java.lang.String`
+* `java.lang.Number`
+* `java.lang.Integer`
+
+You have to register all those classes for serialization.
+
+There is a serialization support in GraalVM 21.0. Developers can configure classes
+for serialization via the serialization configuration file
+`-H:SerializationConfigurationResources=/path/to-serialization-config.json` option. For more
+information see https://github.com/oracle/graal/pull/2730[PR with feature].
Review comment:
```suggestion
information see the https://github.com/oracle/graal/pull/2730[pull request implementing the feature].
The way how classes are registered for serialization may change with a future Quarkus version.
```
##########
File path: docs/modules/ROOT/pages/reference/extensions/sql.adoc
##########
@@ -67,6 +67,25 @@ Note that URI schemes such as `file` or `http` do not need to be listed.
quarkus.camel.sql.script-files = queries.sql, classpath:sql/insert.sql
----
+=== SQL Aggregator ===
+
+If your exchanges in native mode contain objects other than:
+
+* `java.util.LinkedHashMap`
+* `java.util.HashMap`
+* `java.lang.String`
+* `java.lang.Number`
+* `java.lang.Integer`
Review comment:
How about java.lang.Boolean, java.lang.Byte, java.lang.Character, java.lang.Long, java.lang.Float, Double and perhaps also BigInteger? Do all these require to be registered for serialization?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org