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.5k Views Asked by Peter Penzov At
2
There are 2 best solutions below
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
- Can I deploy multiple instances of my application on the same windows phone?
- Deploy enterprise (in-house) application on windows phone without developer unlocking the phone?
- uninitialized constant ActiveMerchant::Billing::CreditCard::Validateable (NameError) - in Spree shop
- How to Continuously Develop and Deploy an Access 2010 Database Application
- Efficient way of organizaing mail sending from Rails app
- Deployment over GPRS to embedded devices
- Weblogic 12c web application not start properly after server reboot
- Deployment in Weblogic 10.3, how to change properties
- Deployed Version of MVC Site Not Working
- Laravel 5 on shared hosting getting internal server error
- Integration between Java Applets and .Net dll
- Capistrano Rails deploy with new migration files
- EF Code First - Multiple Application Versions Sharing A Database
- Docker: How to create a stack, multiple images or one base image?
- Slow wpf startup due to publish policy... maybe
Related Questions in CDI
- Spring-boot+JPA EntityManager inject fails
- EJB injection fails in custom ConstraintValidator on JPA persist
- JBoss and CDI Producer
- Custom scope in CDI seems to require beans.xml
- Is @DependsOn necessary for another CDI bean that is injected?
- CDI - ContextNotActiveException - WebBeans context with scope type annotation @RequestScoped does not exist within current thread
- Fully disable Weld JSF integration in Wildfly 8.2
- Use JSF, JPA, JTA, JAAS, CDI, Bean Validation with Tomcat?
- How to create JBoss EAR project with JPA, EJB and CDI elements
- Validation Error: Value is not valid with CDI
- How to inject EmtityManager to BaseDao in wildfly8?
- Transaction Interceptor CDI JPA JavaSE
- OSGI+CDI: strange behaviour with system printers detecting
- How to hold values in a CDI conversion scope?
- @InterceptorBinding / CDI/ EJB 3.2 - problems with injection
Related Questions in WAR
- Openshift context path
- Docker tomcat edit expanded war files
- Create skinny War file using Maven in Mavenized Grails
- Exclude one role in web.xml
- how to generate a checksum for a war file in maven
- JBoss eap 6.4 cli name deployment
- Displaying version and date of build in the xhtml page from manifest in run time
- (Java)How to change picture(War Card Game)
- Multiple context root for single war deployment jboss-EAP-6.1
- Can not build war from grails project
- Spring boot war file deploy on Tomcat
- What's "grails package" actually do?
- Grails action is secured when I use run-app but not when .war is deployed
- Spring Boot War file gets 404 on ec2
- Disable scanning of CDI beans in WAR
Related Questions in MANAGED-BEAN
- How to instantiate a backing bean on page load
- Expire specific managed bean instance after time interval
- Unit-testing bean-initialization
- Spring managed bean subclass can't access protected service from superclass
- Can @ManagedBean and @XxxScope be placed in a base class?
- Sessionscoped managed bean not saving variables jsf
- Disable scanning of CDI beans in WAR
- action p:command button doesn't set property into managed bean
- null bean in selectOneMenu
- How to set bean class at runtime
- How to set a value to a bean property from a JavaScript async callback
- JSF - Using different instances of ManagedBean for same view in Primefaces wizard
- Set actionListener of primefaces CommandButton object in managed bean using binding
- How to use enum with switch statement?
- valueChangeListener isn't always triggered depending on the rendered attribute
Related Questions in SCANNING
- scanbd doesn't work unless I restart it from the command line
- java.lang.UnsatisfiedLinkError: Could not find library [libjsane.so]
- WIA 2.0 Duplex scanning
- ScanSettings.CALLBACK_TYPE_ALL_MATCHES not working
- Disable scanning of CDI beans in WAR
- uk.co.mmscomputing twain scanner works with cannon scanner only
- Trying to rescan for audio files
- 3D scan alignment with CAD model
- Broadcasting and scanning BLE devices simultaneously
- Prevent QR 'over the shoulder' scan
- PHP invoke Scanner Hardware and scan documents and upload it to Server
- Block further scans in android
- Issue for Type0 CMap parsing
- Scan QR Code open Link p
- Using Factual API for Android
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)
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?
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.