I'm aware that JSR-000220 Enterprise JavaBeans 3.0 Final Release (persistence) spec states:
"In general, portable applications should not invoke EntityManager or Query operations, access other entity instances, or modify relationships in a lifecycle callback method."
This appears extremely restrictive. We have a situation in which we would like to access the EntityManager from within an EntityListener.
Has anyone come across any adverse effects/pitfulls when using the EntityManager from within a Listener on Jboss/Glassfish, or any other application server for that matter?