Make NatsMessageService work with Optional JetStream injection

Fixkamo-shared-library
Shipped
November 4, 2025 at 6:40 PM UTC
Author
snadjafinia
Commit
ed44d30

- Changed JetStream injection to Optional with @Autowired(required=false) to handle bean ordering issues - Removed @ConditionalOnBean to allow service creation even if JetStream isn't ready yet - Added runtime checks in publish, publishSync, and subscribe methods - This fixes NATS message delivery not working due to bean creation timing

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing