THALES GROUP LIMITED DISTRIBUTION to email recipients 

Hello Richard,

Thanks for your reply.
If I have well understood you. For the moment, within TomEE, we have 2 modes: 
all or none.

Having a  list of the specifications that could be activated seems achievable 
but is not implemented yet, right ?

It should be a great enhancement for TomEE to activate MP specifications in a 
fine grain manner. What do you think ?
I think there is something like that in OpenLiberty with the concept of 
feature.  

Best Regards.

-----Original Message-----
From: Richard Zowalla <[email protected]> 
Sent: vendredi 15 mars 2024 16:21
To: [email protected]
Subject: RE: TomEE system.properties : tomee.mp.scan doc/meaning

From just reading the code it might be possible to by doing it via properties 
[1]

 SystemInstance.get().setProperty(extension + ".active", "false"));

Didn't test it or digged deeper though.

[1] 
https://github.com/apache/tomee/blob/main/tomee/tomee-microprofile/mp-common/src/main/java/org/apache/tomee/microprofile/TomEEMicroProfileListener.java#L75

On 2024/03/15 10:27:11 COURTAULT Francois wrote:
> THALES GROUP LIMITED DISTRIBUTION to email recipients
> 
> Hello everyone,
> 
> Any answers/comments ?
> 
> Best Regards.
> 
> -----Original Message-----
> From: COURTAULT Francois
> Sent: jeudi 7 mars 2024 17:07
> To: [email protected]
> Subject: RE: TomEE system.properties : tomee.mp.scan doc/meaning
> 
> THALES GROUP LIMITED DISTRIBUTION to email recipients
> 
> Hello Richard,
> 
> Thanks a lot. But it seems that it is a kind of anything/nothing.
> 
> If tomee.mp.scan = none (nothing), then our application can't use any of the 
> micro-profile spec, right ?
> If tomee.mp.scan = all (everything), then our application can use any of the 
> following specs: 
>      - MPJWTCDIExtension (microprofile-jwt-auth-spec-2.0)
>      - RestClientExtension (microprofile-rest-client-spec-3.0)
>      - ConfigExtension (microprofile-config-spec-3.0.3)
>      - MetricCdiInjectionExtension (microprofile-metrics-spec-4.0)
>      - SmallRyeTracingDynamicFeature & OpenTracingInterceptor 
> (microprofile-opentracing-spec-3.0)
>      - FaultToleranceExtension 
> (microprofile-fault-tolerance-spec-4.0.2)
> right ?
> 
> Is it possible to specify that we only want to use microprofile-config-spec & 
> microprofile-jwt-auth-spec ?
> 
> BTW OpenApi & Health aren't listed. Does it means they are activated by 
> default ?
> 
> Best Regards.
> 
> -----Original Message-----
> From: Richard Zowalla <[email protected]>
> Sent: jeudi 7 mars 2024 15:16
> To: [email protected]
> Subject: Re: TomEE system.properties : tomee.mp.scan doc/meaning
> 
> Hi,
> 
> looking into [1], a value != "none" will activate the MP extensions.
> The default is "none" if the property is not present. "none" means, that the 
> extensions listed in line 59 and below are disabled by default.
> 
> [1]
> https://github.com/apache/tomee/blob/main/tomee/tomee-microprofile/mp-
> common/src/main/java/org/apache/tomee/microprofile/TomEEMicroProfileLi
> stener.java#L73
> 
> Am Mittwoch, dem 06.03.2024 um 15:29 +0000 schrieb COURTAULT Francois:
> > THALES GROUP LIMITED DISTRIBUTION to email recipients
> > 
> > Hello everyone,
> > 
> > Is there somewhere a doc describing the system property 
> > tomee.mp.scan ? any default value if missing ? what are the possible 
> > values with their meanings ?
> > What if the tomee.mp.scan is set to none ? what would happen in such 
> > case ? Any good reason to set this entry to none ?
> > 
> > Best Regards.
> > 
> > 
> > 
> 

Reply via email to