Tuesday, January 29, 2008

Thick White Cervical Mucus 9dpo



EJBs in JBoss

architecture EJBs in JBoss is based on the functionality provided by the java.lang.reflect package Proxy class (this class appeared in version 1.3)

Proxy class is a special kind that allows us to intercept a set of methods defined in an interface.

For a brief explanation see: http://www.javalobby.org/java/forums/t18631.html

When we at JBoss, do a lookup or the Home Interface of an EJB Remote Interface, what we get in reality is a kind of proxy type that encapsulates the functionality of both interfaces. The image shown below explains a bit throughout this architecture (this image is obtained from the JBoss documentation)

arquitectura proxy cliente
architecture
All this saves us the trouble of having to compile the EJBs to create stubs and skeletons.

All invocations of the Proxy class methods are delegated on ClientContainer, which consists of a chain of interceptors (classes that extend class org.jboss.proxy.Interceptor to be real managers of the functionality). We can add or remove functionality by changing the chain of interceptors.

The only thing we can not eliminate is the last interceptor, which will be the efforts to communicate with the server. The last interceptor may be RMI, RMI in clusters, HTTP, HTTP in cluster, CORBA etc ... . On the server side, there will be a component (detached invoker) to speak with the client (invoker last in the chain) and we will contact the EJB container via the JMX MBeans server (the image is also obtained from JBoss documentation)
Arquitectura EJbs lado servidor

EJBs All of this architecture is coded in the configuration file:
\\ server \\ \\ conf \\ standardjboss.xml

can also change the configuration of this architecture to an EJB using the descriptor jboss . xml.

0 comments:

Post a Comment