From the course: Java EE 7: Enterprise JavaBeans (EJB)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Introduction to bean access

Introduction to bean access

From the course: Java EE 7: Enterprise JavaBeans (EJB)

Start my 1-month free trial

Introduction to bean access

- There are many ways to access beans. You can access it from the web, a local client, or a remote client. In the project we'll finish in this chapter, we'll use a web client to access our beans. So how do you decide which approach to take? A few factors you need to consider. One is performance. You want to make sure your beans' dependencies are tightly coupled for performance purposes, in the same server, and if spread across multiple machines, what is the best approach for performance? The second one is client access. Who and what services need to have access to your beans? When external clients such as mobile devices, you'll build an interface for these devices to interact with the beans. Beans dependency, and this is the third item, does a bean depend on another or it can exist on its own, like mentioned in the performance earlier, if a bean has a specific purpose without any dependencies or serving external clients, the best approach is local. There are no right or wrong answer…

Contents