Announcement Announcement Module
No announcement yet.
Sending JMS messages on BeforeCreateEvent Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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.

    @RepositoryEventHandler( ass)
    public class AppointmentVerificationEventHandler {

    public void handleBeforeCreate(AppointmentVerification appointmentVerification) {"Appointment Verification {} created!", appointmentVerification);


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