• 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
  • 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
  • Weld + Tomcat + Jerset: WELD-001304: More than one context active for scope type javax.enterprise.context.RequestScoped

    Hi, I'm new with all this. I'm trying to set up a project using Jersey over Tomcat. By adding Weld to the mix I was able to have a @Context ServletContext injected. But I wanted more: I wanted to inject my own objects...
    Profile Photo
    last modified by Nicolás Lichtmaier
  • BoundRequestContext and store

    Hi all,   I'm playing with BoundRequestContext to create my own request context in a non servlet application but I don't understand what is the purpose of the associated store.   I through it was meant for...
    Profile Photo
    last modified by Flavien Laurent
  • Contents of a Conversation...

    After we execute a conversation.begin() the user can navigate through a series of screens that are backed by @ConversationScoped beans.    Is there a way to list the @ConversationScoped beans for a particu...
    Profile Photo
    last modified by Cory Dahlstrom
  • Weld SPI: ResourceReference vs. ResourceReferenceFactory

    I'm implementing JPAInjectionServices.   When working with EntityManager references, should I:   create the EntityManager in the ResourceReference#getInstance() method (like Hammock does, and, from a searc...
    Profile Photo
    last modified by Laird Nelson
  • BeforeBeanDiscovery.addQualifier() question

    I'm doing awful things with JPA and CDI.  :-)   One experiment that I am working on starts like this:   private final void beforeBeanDiscovery(@Observes final BeforeBeanDiscovery event) {   if (ev...
    Profile Photo
    last modified by Laird Nelson
  • Why is weld-se 2.4.0.Final not available through Maven Repository anymore?

    Hi there,   we can't build our product anymore due to weld-core-parent missing in the right version. "Could not find artifact org.jboss.weld:weld-core-parent:pom:2.4.0.Final" We tried to bump up the version to ...
    Profile Photo
    last modified by Till Essers
  • xsi:schemaLocation sniffing?

    Currently the beans.xml deployment descriptor's version is sniffed from the xsi:schemaLocation. This change was added in WELD-2445. A String.contains() operation checks for things like "beans_1_1.xsd". Does this need ...
    Profile Photo
    last modified by Stephen Buergler