Log in to follow, share, and participate in this community.
Thread Clustered Java EE Application With Wildyfly 10.1 & Apache Http
Clustered Java EE Application With Wildyfly 10.1 & Apache HttpI'm trying to start up a cluster with 2 nodes of wildyfly 10.1 Running in standalone-ha.xml standalone mode with 3 modules deployed in each one : EJB_EAR.ear, Singleton_EJB_EAR.ear, Web_EAR.ear are deployed with the ...
bean discovery questionhi guys; I am in the early learning stages of my CDI affair. my question is regarding bean discovery. it seems like weld is considering many of util classes as cdi beans. I am using an eploded directory (web-inf/cla...
issues trying to deploy to tomcat 8.5+Hi guys; I am having some issues integrating tomcat 8.5 or 9 with weld and my existing app. I have downloaded the uber jar 'weld-servlet-shaded-3.1.3.Final' and dropped it in my web-inf/lib application di...
Thread ProcessAnnotatedType<? extends BeanManager> never fired?
ProcessAnnotatedType<? extends BeanManager> never fired?I observe that when I have an observer method in a portable extension that observes ProcessAnnotatedType<? extends BeanManager> the observer method is never called. I can of course understand why this mi...
Thread What is bad about tunneling one scope through another?
What is bad about tunneling one scope through another?Suppose I have a producer method like this: @Produces @Dependent private Frob makeFrob(@Foo Frob fooFrob, @Bar Frob barFrob) { if (phaseOfMoonIsFull()) { return fooFrob; ...
Thread CDI portable extension does not receive ProcessAnnotatedType events
CDI portable extension does not receive ProcessAnnotatedType eventsHello, I am trying to integrate Spring Data JPA with CDI on WebSphere 9.0.0.9 application server. I am using CDI portable extension which is implemented by Spring guys in the following classes: https://github...
Thread Portable extension: can it tell whether an alternative is selected?
Portable extension: can it tell whether an alternative is selected?I hope I'm not overlooking something. Suppose I am validating injection points in enabled beans in a portable extension. Suppose one injection point is in a bean that I somehow "know" is disabled or wi...
InterceptionFactory from an InterfaceHi, I'm trying to create a Cdi proxy from an Interface but when I get the methods from InterceptionFactory configuration it only returns "default" methods. Is this the expected behavior? It is filtered...
Interception questionSuppose I have a situation like this: @ApplicationScoped public class Foo { private static void onStartup(@Observes @Initialized(ApplicationScoped.class) final Object event) { ...
Thread Bean discovery in test and wildfly (production)
Bean discovery in test and wildfly (production)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 ru...
Unit testing a CDI SPI with JUnitI 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, we...
CDI ConversationsHi, I have an old seam application that i need to migrate. My application uses a lot of conservations and i'm a bit dissappointed with CDI conservations (not as powerful as seam ones). I need to pass (parameters, e...
Thread From within a Service, how do I get a ServiceRegistry?
From within a Service, how do I get a ServiceRegistry?I'm doing some evil things inside a JpaInjectionServices implementation. I'd like to get the currently configured ExecutorServices. The only way I can think of to do it is to do something faintly stupid li...