• Clustered Java EE Application With Wildyfly 10.1 & Apache Http

    I'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 ...
    Profile Photo
    last modified by mohammedadel
  • bean discovery question

    hi 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...
    Profile Photo
    last modified by bitwave-1
  • 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...
    Profile Photo
    last modified by bitwave-1
  • 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...
    Profile Photo
    last modified by ljnelson
  • WELD-000119 Bean not found when searching bean under spring boot fat jar

    Hi there,   I am running latest Weld inside a spring boot application. My SpringBootApplication will initialize Weld via the following code.   {code} public static void main(String[] args) {    ...
    Profile Photo
    last modified by alany07
  • WeldJunit5 - bindResource and Wildfly resource injection- name versus lookup

    Hi   We use the weld test container a lot for testing our application, running in the latest wildfly release. We are extremely happy with weld for easy testing. There is one little thing which makes my life a b...
    Profile Photo
    last modified by rbattenfeld
  • Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408

    Hi Everyone i am facing the below error: 11:41:25,001 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "healthy-h...
    Profile Photo
    last modified by sphola
  • When should one use createCreationalContext(null) and/or createCreationalContext(bean)?

    Suppose I get my hands on a Bean via successful bean resolution:   final Bean<?> bean = beanManager.resolve(someBeans);   Now I want to programmatically get a contextual reference for it.   I ha...
    Profile Photo
    last modified by ljnelson
  • 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; &#...
    Profile Photo
    last modified by ljnelson
  • 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 abialas
  • 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 ljnelson
  • 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 arielcarrera
  • 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 ljnelson
  • 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 ljnelson
  • 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 remikwro
  • 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 ljnelson
  • 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 ljnelson
  • 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 ljnelson