JBoss guide:
anonymous wrote : An application component environment is a local environment 
that is accessible only by the component when the application server container 
thread of control is interacting with the application component. This means 
that an EJB Bean1 cannot access the ENC elements of EJB Bean2, and vice versa. 
Similarly, Web application Web1 cannot access the ENC elements of Web 
application Web2 or Bean1 or Bean2 for that matter. Also, arbitrary client 
code, whether it is executing inside of the application server VM or externally 
cannot access a component's java:comp JNDI context. The purpose of the ENC is 
to provide an isolated, read-only namespace that the application component can 
rely on regardless of the type of environment in which the component is 
deployed. The ENC must be isolated from other components because each component 
defines its own ENC content. Components A and B, for example, may define the 
same name to refer to different objects. For example, EJB Bean1 may define an 
environment entry java:comp/env/red to refer to the hexadecimal value for the 
RGB color for red, while Web application Web1 may bind the same name to the 
deployment environment language locale representation of red.
http://docs.jboss.org/jbossas/jboss4guide/r1/html/ch3.chapter.html

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3862097#3862097

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3862097


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to