I think I read all of reference documentation chapter 8 including section 8.3. Seam-managed persistence contexts.
Would like to know official position (other than whether an experiment would show it works).
Can a Seam-managed persistence context be used outside a conversation?
What do I mean? E.g. in a message driven bean that isn't a Seam anything.
Why? We use Seam for UI and I'm looking forward to use it even for non-UI. But we also have tasks that get scheduled by timers, and by fetching megabytes over HTTP they could run for minutes, or huge file format conversions could eat CPU cycles, and my colleagues care to fine tune load balance with JMS (e.g. dynamically change timer interval). In a non-seam MDB, can I
@In EntityManager ourDatabase;
@PersistenceContext EntityManager em;
@In EntityManager ourDatabase;
Yes, for "outside a conversation", what you really mean is "inside a temporary conversation".
Just because the current conversation is not long-running, does not mean there is no conversation context.