We are using WildFly10.1.0.Final.
We have setted ee subsystem and now we have some questions.
We have used this documentation for EE subsystem Configuration:
This documentation says: "WildFly Context Services are also used to propagate the context from a Java EE application invocation thread, to the threads internally used by the other EE Concurrency Utilities".
Our question: What types of context is talking about?
Also, in this documentation mentioned JSR 236 for EE Concurrency Utilities.
Link for JSR-236: https://jcp.org/aboutJava/communityprocess/final/jsr236/index.html
Chapter 2.3 of JSR-236 said, that "The types of contexts to be propagated from a contextualizing application component
include JNDI naming context, classloader, and security information. Containers must support propagation of these context types. In addition, containers can choose to support propagation of other types of context."
JSR-236 said that "CDI beans can be used as tasks. Such tasks could make use of injection if they are themselves components or are created dynamically using various CDI APIs.".
But, WildFly use WELD as CDI implementation.
And Weld documentation said "they are no longer active in the new thread, nor able to access their contextual data" about new thread context.
Also, when we try get ConversationScoped CDI bean we get an error: "WELD-001303: No active contexts for scope type javax.enterprise.context.ConversationScoped".
Question: There is NO CDI context propagation?
JSR-236 show JTA on schema.
Oracle documentation says that: "All tasks run without an explicit transaction (they do not enlist in the application component's transaction). If a transaction is required, use a UserTransaction instance. A UserTransaction instance is available in JNDI using the name: "java:comp/UserTransaction"".
Question: There is NO JTA context propagation?
JPA Context propagated across transactions.
If there is no transaction propagation - there is no JPA Context propagation.
Question: is it true?
If there is no CDI, JTA, JPA contexts propagation, what kind of context will be propageted if we use WildFly Context Services?
Many thanks for considering my question.