Why use an ear?

Hello-I have trouble understanding the packaging of an ear. I understand that it packages an entire enterprise application, but don't you usually want to deploy EJB's in a separate container than your wars?How would you do that with an ear?
[263 byte] By [dudleydawsona] at [2007-11-27 3:51:42]
# 1

Don't think about it in terms of containers. Just think about it in terms of the relationship between your

application components.It's very typical for web components to be packaged within the same

application as EJBs that they use.If your web components access a Local EJB interface you should

always package them in the same application as those EJBs.

--ken

ksaksa at 2007-7-12 8:55:42 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

An application server contains a Web Container and an EJB Container,

A typical EAR contains an archive file for the Web Container and an archive for the EJB Container.

The web archive is deployed in the Web Container.

The EJB archive is deployed in the EJB Container.

This all happens in the application server.

GhostRadioTwoa at 2007-7-12 8:55:42 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...