Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

I have the following code: @WebServlet("/produces") public class TestProducesServlet extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) ...
ericj's user avatar
  • 2,353
1 vote
1 answer
83 views

In the weld 3.1 documentation in par. 5.5 it says: Finally, CDI features the so-called dependent pseudo-scope @Dependent. This is the default scope for a bean which does not explicitly declare a scope ...
ericj's user avatar
  • 2,353
Advice
0 votes
5 replies
118 views

I'm new to injection frameworks. And my question is a contradiction in itself, but - hypothetically - is it possible to have CDI inject exactly 2 different instances of the same class throughout my ...
numberfourteen's user avatar
1 vote
1 answer
109 views

I'm working on a Primefaces application; I'm trying to keep a registry in the DB of users' logging in and out. Using an HttpSessionListener I have managed to record the login, and if the user logs out ...
El Suscriptor Justiciero's user avatar
0 votes
1 answer
60 views

I am wondering how efficiently handle startup parameters. So far I used to do it in my public static void main(String[] args) method and taking it from there. Now I want to combine both Java Batch and ...
queeg's user avatar
  • 10k
1 vote
1 answer
61 views

I have 2 providers which contains details about themselves and they are updating a ProviderDetails class which contains details of all the providers class ProviderA{ @Inject ...
Bharath-07's user avatar
2 votes
1 answer
84 views

So we are working on an project upgrade from JavaEE8 to JakartaEE10. In the eventual war file, we have a lib as a jar that is an implicit bean archive (so no beans.xml). It contains this: @Named("...
Steven De Groote's user avatar
1 vote
2 answers
85 views

I am following this tutorial on how to use Jakarta CDI: https://jakarta.ee/learn/docs/jakartaee-tutorial/current/cdi/cdi-basic/cdi-basic.html#_injecting_objects_by_using_producer_methods The problem ...
zajer's user avatar
  • 846
0 votes
1 answer
85 views

I have unresolved question about CDI: I have Producer class annotated with @ApplicationScoped and the @Produce method has no additional scope annotaion. @ApplicationScoped public class ...
dkalna's user avatar
  • 77
0 votes
1 answer
28 views

I defined an abstract class for producing persistence-related beans. public abstract class __PersistenceProducer { @Qualifier @Retention(RetentionPolicy.RUNTIME) @Target({ElementType....
Jin Kwon's user avatar
  • 22.5k
0 votes
0 answers
46 views

I wonder if anyone could help me finding out why I am unable to get liquibase running automatically on JBoss upon deployment? The example code below generates an “ear” and i think it should update the ...
NagPer's user avatar
  • 75
0 votes
0 answers
100 views

I'd like to use Jakarta Faces' reference implementation Mojarra 4.0 using embedded Jetty 12.0.22 and Java 21.0.7 since Jetty does not meet the requirements for Faces/Mojarra 4.1 yet, like Jakarta EE ...
dannerfr's user avatar
0 votes
0 answers
38 views

I migrated a project that was running on WebLogic to Spring Boot. The front-end is written in JSF. I have several converters declared in the faces-config.xml. I have an issue with bean injection in ...
schwuleur's user avatar
0 votes
1 answer
63 views

I am trying to develop an AI Agent using LangChain4J Quarkus plugin, in Kotlin. I have created this class: package prova.langchainkotlin.test import io.quarkiverse.langchain4j.RegisterAiService ...
Valerio Storch's user avatar
0 votes
1 answer
79 views

Is there a way to inject the SeContainer itself? I am working on a Picocli CLI application where I create the instances of the commands by using CDI. I do not want to depend on a specific CDI ...
QuantasImpossibile's user avatar

15 30 50 per page
1
2 3 4 5
271