From the course: Learning JakartaEE

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Using Jakarta Enterprise Beans

Using Jakarta Enterprise Beans

From the course: Learning JakartaEE

Using Jakarta Enterprise Beans

- [Instructor] Now I'll demonstrate to you how the core business logic of the support ticket notification system is encapsulated in Jakarta Enterprise Beans. I'm in the support ticket app application. In the business package, there's the ticket enterprise bean. This is a stateless session bean as denoted by the at stateless annotation. The core business logic of this application involves communicating with the underlying database. We are the persistence tier to save, update, and retrieve the data and sending messages about the submission of new support tickets to a Jakarta messaging queue. Therefore, the entity manager, JMS context and the queue are declared in the enterprise bean. Then there are three business methods. Submit ticket, update ticket status, and get all ticket data. The submit ticket method first purchase a new ticket to the underlying support database and then sends a message to the ticket queue with the data of the new ticket. The update ticket status method finds a…

Contents