I am reading an Enterprise JavaBeans 3.1 book and I wonder if I understood the concept of an EJB proxy object correctly. Now I know that it follows the proxy template, and I read something about it.
When we create interfaces for beans, we do this because we want a proxy template to be implemented. This helps us, because clients are only worried about what we can do and are not directly attached to the class, but rather to an interface that can act as if it were located where the real object is.
Thus, the container probably creates proxy objects that implement the corresponding interface and adds some magic code (network code) before calling for the real EJB for us, because the proxy object is automatically created correctly?
I misunderstood the concept? If this is the case, can someone tell me what is wrong?
Luckyluke
source share