This content has been marked as final.
Show 2 replies
-
1. Re: Contents of a Conversation...
mkouba Aug 7, 2018 3:27 AM (in response to javacoryd)Hi Cory,
I don't think there is an easy way to list the contents of a particular conversation. If you're inside an HTTP request where a concrete conversation id was specified (cid param), you can obtain the conversation context via
BeanManager#getContext(Class<? extends Annotation>)
and look for existing bean instances usingContext#get(Contextual<T>)
. Of course, you'll need to collect allConversationScoped
beans first. In theory, you could also inspect theHttpSession
attributes directly. Conversation scoped bean instance attributes are prefixed withWELD_C.X
where X is the conversation id. But note that this is no API and thus can change at any time. -
2. Re: Contents of a Conversation...
javacoryd Aug 7, 2018 12:39 PM (in response to mkouba)Thanks Martin!