Ask questions and see you at June, 7th, 8.PM. CEST: https://youtu.be/Uz1nLi5APVw
Also checkout recent episode:
Please keep the questions Jakarta EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions. Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks
Hi Adam,
I would like to experiment a bit with "events" in my JakartaEE backend. My goal is to generate an event (e.g. OrderPlacedEvent) and have another service (e.g. ShippingServiceListener) in the backend that listens to that event and perform some taks (e.g. create a shipment and update the state of it in the DB). If I were to use Spring I would inject the:
@Autowired private ApplicationEventPublisher applicationEventPublisher;
in my service and define my
ShippingServiceListener
this way:@Component public class ShippingServiceListener implements ApplicationListener<OrderPlacedEvent>
How can I achieve the same in a JakartaEE application?
Regards,
HiMyNameIsIlNano