Commit Graph

689 Commits

Author SHA1 Message Date
Oliver Drotbohm
b189dbc725 GH-806 - Polish Neo4j archiving mode.
We now explicitly set the completion date property of newly created event publications to null. The copying data manipulation statements now properly copy all properties of the publication notes into the archive.
2024-10-25 22:03:25 +02:00
Cora Iberkleid
4132ad3a38 GH-806 - Add archive support for Neo4j.
Co-authored-by: Oliver Drotbohm <oliver.drotbohm@broadcom.com>
2024-10-25 22:03:25 +02:00
Oliver Drotbohm
d302ad1937 GH-806 - Revamp JPA archive support.
We now use two separate entity types for archived and non-archived event publications to rpevent hibernate hickups when inserting an instance of a subtype with he same id.
2024-10-25 22:03:24 +02:00
Cora Iberkleid
6a85fb3350 GH-806 - Add archive support for JPA.
Co-authored-by: Oliver Drotbohm <oliver.drotbohm@broadcom.com>
2024-10-25 22:03:24 +02:00
Oliver Drotbohm
dc1148624b GH-806 - MongoDB archive mode now uses aggregation to mark event publications completed. 2024-10-25 22:03:24 +02:00
Cora Iberkleid
a7e4a798f0 GH-806 - Add archive support for MongoDB.
Co-authored-by: Oliver Drotbohm <oliver.drotbohm@broadcom.com>
2024-10-25 22:03:24 +02:00
Cora Iberkleid
2cb0db7f42 GH-806 - Add archive support for JDBC.
Co-authored-by: Oliver Drotbohm <oliver.drotbohm@broadcom.com>
2024-10-25 22:03:24 +02:00
Cora Iberkleid
179e4acf86 GH-806 - Add archiving completion mode.
We now support an archiving completion mode that copies the entry to be completed into a dedicated archive to retain the completed event publications but also keep the main publication store small for more efficient data access.

Co-authored-by: Oliver Drotbohm <oliver.drotbohm@broadcom.com>
2024-10-25 22:03:23 +02:00
Cora Iberkleid
80f6086034 GH-806 - Remove use of Lombok.
Co-authored-by: Oliver Drotbohm <oliver.drotbohm@broadcom.com>
2024-10-25 22:03:23 +02:00
Oliver Drotbohm
d3de9578f8 GH-909 - Fix icons and coloring in fundamentals section of reference docs. 2024-10-25 20:11:07 +02:00
Oliver Drotbohm
9d7bda9cd8 GH-908 - Upgrade to latest Antora dependencies. 2024-10-25 17:48:53 +02:00
Oliver Drotbohm
fe688cec1f GH-907 - Upgrade to Spring Boot 3.4 snapshots.
Tweak test containers setup for dynamic properties to adapt to Boot 3.4's new behavior [0].

[0] https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.4.0-RC1-Release-Notes#dynamic-properties-with-testcontainers
2024-10-25 13:13:08 +02:00
Oliver Drotbohm
cdd86a4ba1 GH-855 - Enable Kafka JSON rendering with default ObjectMapper.
In case no ObjectMapper bean instance is present, we now fall back to creating a default one to render a JSON byte array. This is useful in case Jackson is on the class path but not necessarily the JacksonObjectMapperBuilder, which is located in spring-web.
2024-10-25 08:45:05 +02:00
Oliver Drotbohm
2c9fc4b761 GH-904 - Upgrade to jMolecules 2023.1.7. 2024-10-24 23:53:09 +02:00
Oliver Drotbohm
cefe84bc60 GH-902 - Upgrade to jGit 7. 2024-10-24 21:48:29 +02:00
Oliver Drotbohm
46b955e661 GH-901 - Upgrade to Spring Framework 6.3 RC1. 2024-10-24 21:46:03 +02:00
Oliver Drotbohm
29bc84cd0b GH-891 - DefaultEventPublicationRegistry now properly unregisters in-progress publication on failed resubmission.
DefaultEventPublicationRegistry.processIncompletePublications(…) now actively unregisters the publication from being considered in progress after completion (either successful or failed). While CompletionRegisteringAdvisor should take care of that on the target listeners we now leave the publications in progress in consistent state independent of the actual target being invoked. Decrease log level of the failed listener invocation as it's not unusual for the listener to fail.

Improved PublicationsInProgress by switching to a concurrent map internally to avoid ConcurrentModificationExceptions in case of multiple threads.
2024-10-21 13:49:29 +02:00
Oliver Drotbohm
d5477d1423 GH-881 - Support for SpEL expression in routing targets.
We now support SpEL expressions in routing targets for events to be externalized. Introduced a BrokerRouting.getTarget(Object) overload to allow access to the event object in the SpEL expression. To support those, event externalizers will have to call that method where they previously called ….getTarget().
2024-10-18 21:01:28 +02:00
Andreas Ahlenstorf
8d067e8107 GH-885 - Update docs to reflect renaming of property. 2024-10-18 16:59:35 +02:00
Andreas Ahlenstorf
2ba1785bfb GH-884 - Fix typo in package name in configuration metadata. 2024-10-18 16:56:32 +02:00
Andrey Antipov
1acc5aa888 GH-882 - Fix Kotlin example in fundamentals section. 2024-10-18 16:46:42 +02:00
Oliver Drotbohm
6da5d1dafb GH-874 - Add LICENSE and NOTICE files to binaries. 2024-10-14 22:14:51 +02:00
Oliver Drotbohm
cbcd1dac28 GH-850 - Mention test starter in testing reference documentation chapter. 2024-10-14 17:32:09 +02:00
Oliver Drotbohm
84e9f38b07 GH-855 - Support to add headers in event externalization.
EventExternalizationConfiguration now exposes a ….headers(Class<T>, Function<T, Map<String, Object>) to allow to define a function that extracts headers from the event that are supposed to added to the message to be sent out. The Kafka and AMQP implementations have been augmented to consider those configurations.

Furthermore, if the mapping step prior to the externalization creates a Spring Message<?>, we add routing information as fallback and send it out as is.
2024-10-13 20:17:12 +02:00
Oliver Drotbohm
747834754e GH-873 - Upgrade to embedded MongoDB 4.16.1. 2024-10-13 19:43:50 +02:00
Oliver Drotbohm
a8835b211b GH-869 - Polishing.
Tweak header population to use the raw routing target. Expand test case to make sure it's retained as message header.
2024-10-13 19:43:50 +02:00
Josh Long
41aad245d4 GH-869 - Support for externalizing events into a Spring Messaging MessageChannel. 2024-10-13 19:43:49 +02:00
Oliver Drotbohm
413e2f50b6 GH-846 - Fix module identifier lookup for jMolecules @Module(id = …).
We now properly translate jMolecules' @Module declaration configuring the id attribute explicitly into the identifier used for an application module.

Introduce @ApplicationModule(id = …) for Spring Modulith-native identifier customization.
2024-10-13 19:42:43 +02:00
Oliver Drotbohm
de4668319c GH-872 - Switch test execution log output to use ApplicationModuleIdentifiers. 2024-10-13 19:41:51 +02:00
Oliver Drotbohm
f8b88dcf98 GH-872 - Move JUnit integration to ApplicationModuleIdentifiers. 2024-10-13 19:41:51 +02:00
Oliver Drotbohm
68185a7aef GH-872 - Introduce proper identifiers for ApplicationModules.
Introduced ApplicationModuleIdentifier that ensures that identifiers chosen for application modules do not contain a double colon (::) as we need those as separator characters for manual dependency declarations referring to named interfaces.
2024-10-13 19:41:49 +02:00
Oliver Drotbohm
5733a27ff4 GH-866 - Polishing.
Switch Oracle schema definition to make the serialized event column non null. Adapt test cases to always contain some content for the serialized event.

Original pull request: GH-868.
2024-10-11 11:10:32 +02:00
DSX
5dee1bd9cf GH-866 - JDBC event publication support for Oracle database.
We now support Oracle as database backend for the JDBC-based EventPublicationRegistry.

Original pull request: GH-868.
2024-10-11 11:10:04 +02:00
Oliver Drotbohm
5f1d3903b0 GH-861 - Polishing. 2024-10-08 22:00:18 +02:00
Oliver Drotbohm
4be1862075 GH-865 - Aggregating documentation now renders PlantUML files as SVG. 2024-10-08 20:32:11 +02:00
Oliver Drotbohm
9464e83ea4 GH-854 - Polish rendering of events listened to in Application Module Canvases. 2024-10-08 20:18:52 +02:00
Oliver Drotbohm
5b2301584d GH-864 - Upgrade to Develocity conventions 0.0.22. 2024-10-08 17:29:32 +02:00
Oliver Drotbohm
6ac2b786eb GH-854 - Automatically include Spring Boot configuration processor in APT module. 2024-10-08 17:28:39 +02:00
Oliver Drotbohm
d7d2a2750f GH-860 - Switch to managed plugin dependencies in APT module. 2024-10-08 17:27:52 +02:00
Oliver Drotbohm
42a9c48e80 GH-863 - Add convenience method for creating a default EventExternalizationConfiguration. 2024-10-08 15:09:12 +02:00
Oliver Drotbohm
e3077a7abd GH-862 - Trigger jMolecules architecture verifications if present on the classpath. 2024-10-08 11:14:06 +02:00
Oliver Drotbohm
9b11606425 GH-861 - JUnit change detection now properly detects changes in current working directory.
Added a decorating FileModificationDetector implementation that filters changes to only return those that affect the current working directory, so that the detection works properly if executed from a nested folder in multi-module projects.
2024-10-08 11:10:21 +02:00
Oliver Drotbohm
963ac173e9 GH-860 - Use <pluginManagement /> section to manage build plugin versions. 2024-10-06 13:13:45 +02:00
Oliver Drotbohm
db40cd3da3 GH-854 - Polishing.
Fix invalid @see tag.
2024-10-06 12:59:12 +02:00
Oliver Drotbohm
9d249961c3 GH-859 - Avoid creating a transaction for event externalization.
We now use the ability to override transaction propagation introduce for GH-858 to tweak the application module listener declaration on DelegatingEventListener so that we do not create a transaction by default. This avoids a database connection being acquired as the listener is very likely to interact with a non-transactional resource anyway.
2024-10-06 12:54:17 +02:00
Oliver Drotbohm
f00e5dc0eb GH-858 - Polishing. 2024-10-06 12:44:10 +02:00
Oliver Drotbohm
d510697afa GH-858 - Allow customizing transaction propagation on @ApplicationModuleListener. 2024-10-06 12:44:01 +02:00
Roland Weisleder
d6feb70752 GH-853 - Update quickstart section in readme to current version. 2024-10-06 12:10:31 +02:00
Oliver Drotbohm
f1c318b1d3 GH-857 - Add Microsoft SQL Server schema to reference documentation. 2024-10-05 00:07:20 +02:00
Oliver Drotbohm
2d3a7026a9 GH-856 - Upgrade to jMolecules 2023.1.5. 2024-10-05 00:02:16 +02:00