Since Payara 4.1.1.162
A unique feature in Payara Server is being able to disable implicit scanning for the entire application from within an EAR archive.
CDI scanning can be enabled / disabled in EAR files via META-INF/glassfish-application.xml
The entry is enable-implicit-cdi, i.e.
<glassfish-application>
<enable-implicit-cdi>false</enable-implicit-cdi>
</glassfish-application>
The default value is true.
Be aware that when deploying from the Admin Console, the default field (implicit cdi scanning) will override this setting and turn on implicit CDI unless the checkbox is unchecked. A command line deployment should work as desired by default, and override the app setting only if specified.
Add Comment
Comments
Please sign in to leave a comment.