Profile Photo
Chasing down a problem where it looks like an InjectionTarget I’m installing in a portable extension does not get its dispose() method called when the injection target in question is a managed bean. The spec says that for managed beans their related Producer does nothing for disposal—which makes sense—but I’d still expect to see the no-op… (Show more)
in Weld
Profile Photo
We are currently facing some issues regarding the discovery of beans. We have two environments (SE and EE with Wildfly) and in the SE environment we have a few beans that we want to turn off (we dont need them for running tests).   Those beans are discovered in a subproject that has a beans.xml (WELD gets started in a different subproject which… (Show more)
in Weld
Profile Photo
Hello Everyone,   If I really understand what Jandex is used For: "Used as an annotation Index who creates Index which will be used by the WELD module"   Is it right ? If so, I don't really understand why Jandex create an AnnotationInstance for every annotation in my classpath (homemade annotations, swagger, javax.rs , ...etc).   This way my… (Show more)
in WildFly
Profile Photo
Suppose I have a situation like this:   @ApplicationScoped public class Foo {   private static void onStartup(@Observes @Initialized(ApplicationScoped.class) final Object event) {      this.frobnicate();   }      @Transactional   private void frobnicate() {      } }   …where @Transactional is an interceptor binding.   Should the… (Show more)
in Weld
Profile Photo
I have a Maven project with (basically) two modules: The first module is the CDI SPI. The second module is a Java/Jakarta EE app to demo the SPI.   I tried adding Unit tests to the SPI module using JUnit 4, weld-junit4, and Weld SE. The build works, but the unit tests fail because the SPI appears not to have loaded. I have lots of logging in… (Show more)
in Weld
Profile Photo
I am adding a synthetic bean.   The Java object that I am "beanifying" does not have any @Inject-annotated methods on it.   I would like to turn one method into an injection point.  The method has one parameter.   I'm doing this: afterBeanDiscoveryEvent.addBean()   .addTransitiveTypeClosure(Pojo.class)   .scope(ApplicationScoped.class)  … (Show more)
in Weld
Profile Photo
Hi, We are using CDI events that gets fired on DB persist transaction success and an event observer listens to the event to send JMS message on successful transaction.   The question I have is what happens when the CDI event is fired but the server crashed or restarted before the observer process the event? Will CDI container internally handle… (Show more)
in Weld
Profile Photo
My project use weld-se-core and weld-servlet-core that version is 3.0.5.Final. I use undertow(eagerFilterInit=true) as project servlet container. I have some servlets that were injected some services. The CDI injection are available in Servlets, Filters and Listeners, but the ProcessInjectionPoint.setInjectionPoin()  doesn't work on servlet's … (Show more)
in Weld
Load more items