Announcement Announcement Module
Collapse
No announcement yet.
Sending JMS messages on BeforeCreateEvent Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sending JMS messages on BeforeCreateEvent

    I would like to be able to wire up a JMS message on each BeforeCreateEvent. Wondering what is best practice for doing this in BeforeCreateEvent.

    One solution might be using a JmsTemplate and calling it in the BeforeCreateEvent method.

    Or I could use the Spring Integration ApplicationEvent adapter. How could I wire up the following to catch the BeforeCreateEvent.


    @Slf4j
    @RepositoryEventHandler(AppointmentVerification.cl ass)
    public class AppointmentVerificationEventHandler {

    @HandleBeforeCreate
    public void handleBeforeCreate(AppointmentVerification appointmentVerification) {

    log.info("Appointment Verification {} created!", appointmentVerification);
    }

    }


    <int-event:inbound-channel-adapter channel="eventChannel" error-channel="eventErrorChannel" event-types="example.FooEvent, example.BarEvent"/>
Working...
X