• CDI portable extension does not receive ProcessAnnotatedType events

    Hello,   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...
    Profile Photo
    last modified by Adam Bialas
  • 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...
    Profile Photo
    last modified by Laird Nelson
  • InterceptionFactory from an Interface

    Hi, 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...
    Profile Photo
    last modified by Ariel Carrera
  • Interception question

    Suppose I have a situation like this:   @ApplicationScoped public class Foo {   private static void onStartup(@Observes @Initialized(ApplicationScoped.class) final Object event) {     ...
    Profile Photo
    last modified by Laird Nelson
  • Does a Producer/InjectionTarget’s dispose() method get called for managed beans?

    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 say...
    Profile Photo
    last modified by Laird Nelson
  • 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...
    Profile Photo
    last modified by Remik Remik
  • Is it an oversight that ObserverMethod doesn't have getInjectionPoints()?

    I naïvely assumed that once I got ahold of an ObserverMethod I could find out what injection points it has.   I know that I can get the AnnotatedMethod, go through the AnnotatedParameters and weed out the o...
    Profile Photo
    last modified by Laird Nelson
  • It looks like ClassFileServices implementations are not loaded with ServiceLoader, correct?

    If I make a ClassFileServices implementation and a corresponding META-INF/services/org.jboss.weld.bootstrap.api.Service file with the appropriate line in it, I expect my ClassFileServices implementation to be used....
    Profile Photo
    last modified by Laird Nelson
  • Unit testing a CDI SPI with JUnit

    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, we...
    Profile Photo
    last modified by Bert Laverman
  • CDI Conversations

    Hi, 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...
    Profile Photo
    last modified by amontobin
  • 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...
    Profile Photo
    last modified by Laird Nelson
  • JpaInjectionServices implementation is created three times?

    I've found in my CDI SE application that much to my surprise my JPAInjectionServices implementation is created three times by AdditionalServiceLoader.  Is this by design?  If so, what design? :-)   Bes...
    Profile Photo
    last modified by Laird Nelson
  • Does CDI container takes care of calling event observer method on server stop or crash

    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 t...
    Profile Photo
    last modified by Gandhirajan N
  • Is adding an InjectionPoint to synthetic bean sufficient to cause injection to happen?

    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...
    Profile Photo
    last modified by Laird Nelson
  • EAGER CDI with AttributeConverter error

    Hi, I want to load some configurable data from database when my application startup, so i use . javax.enterprise.inject.spi.Extension BUT When i use AttributeConverter with JPA, i got the following exception Cause...
    Profile Photo
    last modified by jorcx liu
  • ProcessInjectionPoint.setInjectionPoint() doesn't work in some environment.

    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 injectio...
    Profile Photo
    last modified by bingo chen
  • WeldStartService: org.jboss.msc.service.StartException in service

    Hi ,   I am trying to deploy a war file to JBOSS EAP 6.3, basically we are trying to migrate this app from Seam to CDI. We I try to deploy , This project is built using Ant   I keep getting this error...
    Profile Photo
    last modified by jon contact
  • Injecting into an abstract type

    We have a simple use case where we have this UI scenario:   1) User logs in, a long running conversation is begun 2) User enters in some information on a screen. 3) Based on the information entered, the user i...
    Profile Photo
    last modified by Cory Dahlstrom
  • Alternative not selected in injection point when using SeContainerInitializer

    Hello, I have been trying to play with SeContainerInitializer and encountered an issue. I am using weld 3.0.2.Final   I have the following 2 beans in src/main/java :   public class BarImpl implements IBa...
    Profile Photo
    last modified by Vincent Sevel
  • WELD-000132: Disabled alternative

    I have an implementation class, and a Mock class for that implementation. Both class implement an interface.   Server: wildfly-8.2.0.Final (with 9.0 same result)   Interface: public interface Validator { ...
    Profile Photo
    last modified by Hegyi Gergely