Ask questions and see you at December, 2nd, 8.PM. CET: youtube.com/c/bienadam/live
Also checkout recent episode:
Please keep the questions Jakarta EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions. Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks
Hi @AdamBien,
could you please explain me the differences between the following three annotations:
If @singleton means that every client that uses that bean receives the same (and only) instance defined in the DI container why was it necessary to define the annotation @ApplicationScoped? In what are @singleton and @ApplicationScoped different? Also, I find it very hard sometimes to decide if my beans should be singletons or stateless because to me they sound the same. I read the documentation several times but somehow the explanation did not resonate to me very much. Could you please tell me how these annotations differ from each other?
Thanks in advance!