I have WAR package with CDI beans. Deployment of the package is very slow because every time during deployment the package is scanned for CDI beans. Is there any option to disable this process?
Disable scanning of CDI beans in WAR
4.6k views Asked by Peter Penzov At
2
There are 2 answers
7
John Ament
On
I have a feeling that what you're looking for is more of a tool. As mentioned, Weld uses class scanning to find annotations. There are ways to speed this up. One that works pretty well is Jandex, an annotation processor that can be used at compile time to create an index (easier to read database) of your classes and annotations. This does dramatically boost deployment times.
Related Questions in DEPLOYMENT
- Github Pages Deployment deploys a blank page
- Django Admin Panel and Sub URLs Returning 404 Error on Deployment
- Next 14 App Router pages from dynamic routes not generating when deployed on vercel but only work on localhost
- Deployment through app engine, cloud sql database, problem connecting with server code, doesn't connect
- How to Deploy and Manage a Python Application with Systemd
- Elasticbeanstalk FastAPI application is intermittently not responding to https requests
- Duplicate GET requests - Rails & Heroku
- How to use a proxy to obtain a static IP for my Node.js application?
- Next js app throwing 404 error when deployed to vercel, even though it works fine on local
- How to deploy my shiny application (with multiple files) via Docker
- Deploying telegram bot
- How to deploy angular 17 SSR into IIS
- Route not working on refreshing the page in react deployed application
- Vercel wildcard route's src results in 404 error in Hapi.js backend
- Django deployment with GTK3
Related Questions in CDI
- Dynamic bean registration Quarkus
- quarkus smallrye reactive messaging - unittest
- Java BatchProperty possible as List<String>?
- Writing unit test for Azure Service Bus Java SDK Queue listener
- Quarkus CDI: lookup and startup event
- Java - @Inject - Nullpointer "this.xxx is null"
- A strange behavior is observed when using CDI beans with session scope in conjunction with the session-cache feature of OpenLiberty
- Using PrettyFaces to Manage JSF Conversation ID Without It Being Included in the URL on Postback
- Injecting Spring Bean into CDI - Creates new instance
- Is EntityManager injected with @PersistenceContext to a @RequestScoped CDI bean thread-safe?
- How to inject HttpServletRequest in JAX-RS resource in order to get client IP
- Jakarta CDI force bean construction/register legacy event listeners
- Injecting ApplicationScoped bean into Web Filter results in null object
- Is there a way to register bean without any @Produces and ect annotations Quarkus
- dynamic cdi with @Any
Related Questions in WAR
- Jmix framework throws error building WAR file
- Maven including multiple versions of spring dependencies
- Dockerized Spring Boot app can't load file in war
- JPA/REST Application as a .war file?
- maven-war-plugin upgrade to java 21
- Tomcat 9 error on WAR deployment tries to read logging configuration from wrong location
- How to obfuscate WAR with maven plugin for Proguard?
- Getting "Failed to clear soft references from ObjectStreamClass$Caches for web application" error while starting app- tomcat8
- Maven War file issue at tomcat server | Ubuntu
- Angular Routes Issue in Wildfly Deployment: Routing Fails in .war Packaged Application Using "jar -cfv"
- Glassfish6 WAR Module Doesn't Boot as ejb,web,webservice despite having @WebService Annotation
- broadleafcommerce with tomcat10 standalone
- Troubleshooting Deployment Issues with Spring Boot WAR on Tomcat 11 and JDK 21 on Windows vServer
- How to prevent MVN from changing file dates as it packages a WAR file?
- Oracle Weblogic: Application never RUNNING, always STARTING in and no errors in logs
Related Questions in MANAGED-BEAN
- Problema with managedbean null, but system out work
- Why does my managed beans are not working?
- Best practice for storing and reading data from Java Beans in XPages
- @ViewScoped bean behaves like @SessionScoped or @ApplicationScoped
- jakarta.servlet.ServletContext from jakarta.faces.context.FacesContext to getAttribute("AnAttributeName")
- CDI injection of subclasses of session scoped beans as a managed property
- Get JSF managed bean by name in a Servlet
- JSF - Appropriate bean scope for keeping data between pages but only "browser tab related"
- javax.faces.component.UpdateModelException: javax.el.PropertyNotFoundException. Target Unreachable, identifier resolved to null
- How to pass a variable value from one xhtml to another xhtml and then to the backing ManagedBean of 2nd xhtml
- faces-config.xml keep updating itself
- How to determine coordinates of different areas in h:graphicImage
- JSF cant resolve bean in xhtml file using spring boot
- faces-config.xml is being overwitten
- search and display person by id in jsf
Related Questions in SCANNING
- How to read NADRA NIC barcode?
- Using flutter how to get scan code from hand held device
- Nmap - UDP scan does not work well with OS Detection
- Render video from js into html
- Second page getting stuck when scanning multiple pages using Windows Image Acquisition (WIA) API in C#
- visualize my website result using elastic stack
- Coppier Machine Konica Minolta
- scan multiple pages using vba into word .docx
- Can we scan Azure PAAS services in Qualys? And which module does it used
- CASA APK Scan - NoCredentialsError: Unable to locate credentials
- is there any way to perform exact layout to paper in html and CSS?
- How to integrate a Zebra Scanner(2D way Imager) using Mobile(T53/T58) in react native
- Get all method names with annotation where abc() method was called inside it
- Tracking Scans Occurring Outside Flutter App with QrImage in Flutter
- How to perform Source Code Scanning on a code that is using RSA Key Container
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The correct way is to disable discovery in the beans.xml of the relevant archive:
According to the CDI specification this removes the archive from the list of bean-archives.