I know there are two types of deployment descriptors in Java EE programming.
1. Java EE deployment descriptor
2. Runtime deployment descriptor
Is it possible to create both types of descriptors for all levels of artifacts: (i.e. component, module, application)?
Also, for the two types, can I prefer one to another? Or, are there situations where I need to use both types?