From the course: Java EE 7: Enterprise JavaBeans (EJB)
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Build blocks of a bean
From the course: Java EE 7: Enterprise JavaBeans (EJB)
Build blocks of a bean
- [Instructor] So let's start looking at the building blocks of a bean, and we'll first start from the high-level perspective. At the core, you'll have a client, web browser or mobile, calling you to the web server which processes the request of the client. The web server will call into the EJB container, which can have multiple beans, such as the session or message-driven beans. And we'll use the session bean for our example for now, as we'll cover what is really different from a message-driven bean letter. So then inside of the bean, you need an enterprise bean class, a business interface, and a helper class based on your needs. So your enterprise-bean class implements the function of the beans, and any callback methods if needed. When you name such a class, you want to follow some conventions and use a syntax that looks like this, inventory bean, name of the bean, and add the keyword bean at the end. Inventory bean. Next you have the business interface where you define the methods…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.