What is the relationship between java:comp/env and java:global?
问题 What is the relationship between java:comp/env and java:global (regarding 3.1 spec)? Seems like java:comp/env contains specific to EJB references. What means "specific" in this case? 回答1: java:global is a namespace that's global for the entire application server, which includes other EAR modules (which are considered to be different applications). java:comp/env is a much smaller namespace. For the web module, it corresponds to all web components (servlets etc) which are all together