Log in to follow, share, and participate in this community.
Thread JpaInjectionServices implementation is created three times?
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...
EAGER CDI with AttributeConverter errorHi, 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...
Thread WeldStartService: org.jboss.msc.service.StartException in service
WeldStartService: org.jboss.msc.service.StartException in serviceHi , 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...
Injecting into an abstract typeWe 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...
WELD-000132: Disabled alternativeI 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 { ...
BoundRequestContext and storeHi 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...
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...
Thread Weld SPI: ResourceReference vs. ResourceReferenceFactory
Weld SPI: ResourceReference vs. ResourceReferenceFactoryI'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...
BeforeBeanDiscovery.addQualifier() questionI'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...
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 ...
Thread Event firing/matching and parameterized types
Event firing/matching and parameterized types(For background, I've read You think you know everything about CDI events… Think again! | Next Presso , so I'm at least mostly familiar with many edge cases in CDI events.) I have an AbstractFoo<? ex...
Shutdown hook problem and log4j2Hi. Here's a simple enough project. GitHub - SetoKaiba/weldtest Uncomment these lines and use shutdown hook. The log will be cleared. It seems that the logging is booted for twice. Because I use append="fal...
ApplicationScoped and synthetic beansIf I want to have a bean created that is scoped in a singleton (little-"s") way, there is no point to having it be @ApplicationScoped, right, since by the specification it cannot be intercepted or decorated? I...
CDI-@ViewScope and Glassfish v3.0.1Hi forum, after not beeing able to integrate seam3 I tried the CDI-ViewContext implemented by Verborgh. I downloaded the source from GitHub and integrated the source in a simple webapplication with a the test backin...