Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-27762

How to use Microprofile context propagation in EAP 7.4 with XP 3

XMLWordPrintable

    • False
    • None
    • True
    • Documentation (Ref Guide, User Guide, etc.), Compatibility/Configuration

      Hello,

      I have read different documents about Microprofile integration with Wildfly 26 and EAP 7.4 but didn't find clearly how to activate and use Microprofile context propagation in my application out of the box by just using the corresponding api and having EAP XP 3 installed.

      My initial  prooblem is a null pointer exception in Wildfly 26 when using MP Rest Client in an asynchronous CDI event handler where the rest client is called by an other thread. It is due to the fact that opentracing tracer is not found for injection by CDI in the context of the new thread. I thought that the solution is to use MP context propagation but seems not not working out of the box like other MP components or at least not well documented.

      Here are my not clear points :

      1. Why smallrye context propagation module is not present by default in Wildfly 26 and XP 3 ?
      2. Do we need to add it manually ? If so, how to do it so to keep patching it in the future by jboss patching protocole ?
      3. How to activate the corresponding extension in jboss XML configuration ? 
      4. How to configure it ?
      5. Is there any other situation to my initial issue ? 

       

      Best regards 

              Unassigned Unassigned
              ychandarli@wexlog.com Younes Chandarli (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: