Hi all,

I would like to contribute Spring Integration channel adapters for Apache
Pulsar to apache/pulsar-spring, as a new module.

Background: I proposed them to Spring Integration first
(https://github.com/spring-projects/spring-integration/pull/11520). Since
Spring for Apache Pulsar has moved here, the Spring Integration team declined
the module there and asked me to bring it to this project, because it builds
directly on pulsar-spring.

What it adds:
- PulsarMessageHandler, an outbound channel adapter that sends through
  PulsarOperations: topic, key and payload expressions, schema, producer
  customizer, sync or async sending with success and failure channels.
- PulsarMessageProducer, a message-driven channel adapter that wraps a
  PulsarMessageListenerContainer, with manual acknowledgement through a header.
- A Java DSL factory: Pulsar.outboundAdapter(...) and
  Pulsar.messageDrivenChannelAdapter(...).
- A reference page, unit tests and tests against a real broker.

It is about 1,050 lines of main code. It depends only on pulsar-spring and
spring-integration-core 7.1.2, the version that Spring Boot 4.1 manages.

I have ported it to the current main, with the Pulsar 5.0.1 client:
https://github.com/sharanggupta/pulsar-spring/tree/spring-integration-channel-adapters
The project build passes with it, including Checkstyle, the format check,
RAT and the documentation.

Questions:
1. Is the project open to hosting this module?
2. Naming: I used pulsar-spring-integration and the package
   org.apache.pulsar.spring.integration. The name is close to the existing
   pulsar-spring-integration-tests module, so I am happy to rename it.
3. Timing: should it wait until after 3.0.0?

I used an AI coding assistant for the port. I have reviewed and tested the
result and I am responsible for it.

Thanks,
Sharang Gupta

Reply via email to