EJB rookie entry three axes :)

zhaozj2021-02-11  182

A plate ax: Buffer pool and activation, what is the difference between passivation? A: There is no connection at all, the buffer pool is unstably SESSION bean and Entity Bean In order to reduce the use of memory, use the instance pool in memory, when the client uses the HONE interface to generate one When an object, an instance is assigned to it. After the object is destroyed, the instance returns to the instance pool. It originally wanted to buffer pool Is built on a hard disk? Think about the speed of virtual memory, will not be so slow? :) and activated passivation is that the SESSION bean is written to the secondary storage in order to save its state, which is the hard disk.

Two axes: How is the EJB call? A: The same is the same as the client. First use the Home interface, and use the remote interface and the EJB object to access each other. No way? The same machine also uses RMI? No way, see the definition of EJB: The structure of EJB is a component structure that develops and configures components-based distributed business applications. Applications developed with EJB structures are scalable, transactional, multi-user security. These applications may only be written once, but they can be configured on the task server platform that supports the EJB specification. So this is why EJB is suitable for high-end applications, but the new Local Interface has changed this :)

转载请注明原文地址:https://www.9cbs.com/read-5238.html

New Post(0)