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 wonder: should there be a CDI-specific wrapper around Narayana's TransactionManagerImple that fires an @Initialized(TransactionScoped.class)-qualified event?   The specification says (in section 6.7):   Portable extensions are encouraged to synchronously fire: an event with qualifier @Initialized(X.class) when a custom context is initialized,… (Show more)
in Narayana
Profile Photo
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 like ((WeldManager)(CDI.current().getBeanManager())).getServices().get(ExecutorServices.class).  Is there a better way?
in Weld
Profile Photo
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? :-)   Best, Laird
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
Hello; is there a reason that narayana-jta is still at 5.9.0.Final?  See https://search.maven.org/classic/#search%7Cga%7C1%7Cg%3A%22org.jboss.narayana.jta%22 .  5.9.1.Final would contain my prior changes to make standalone CDI work.   Thanks, Best, Laird -- https://about.me/lairdnelson
in Narayana