jakarta-ee

Reasons to use WEB-INF/lib over EAR's lib?

风格不统一 提交于 2020-08-27 21:32:06
问题 I am having second thoughts about something I've been taking for granted. Namely, in an EAR with the following structure: EAR \-- boo-ejb.jar \-- foo-web.war | \--WEB-INF | \--lib \--lib .. I think I understand correctly that the WEB-INF/lib is for jars needed only by the web application and the EAR-level lib for jars needed by the ejb.jar as well. The rationale being to somehow make the dependencies clearer. However, why not just dump everything in the EAR-level lib folder ? Surely if there

CDI | Application / Dependent Scope | Memory Leak - javax.enterprise.inject.Instance<T> Not Garbage Collected

被刻印的时光 ゝ 提交于 2020-08-24 08:17:59
问题 I am using Instance as a lazy / dynamic injector in a TomEE Java application, and I have noticed a memory leak in my application. This is a first for me, so it's actually surprising to see a memory leak warning that has been outlined in the Java EE Library : package javax.enterprise.inject; public interface Instance<T> extends Iterable<T>, Provider<T> { /** * Destroy the given Contextual Instance. * This is especially intended for {@link javax.enterprise.context.Dependent} scoped beans *

CDI | Application / Dependent Scope | Memory Leak - javax.enterprise.inject.Instance<T> Not Garbage Collected

杀马特。学长 韩版系。学妹 提交于 2020-08-24 08:17:19
问题 I am using Instance as a lazy / dynamic injector in a TomEE Java application, and I have noticed a memory leak in my application. This is a first for me, so it's actually surprising to see a memory leak warning that has been outlined in the Java EE Library : package javax.enterprise.inject; public interface Instance<T> extends Iterable<T>, Provider<T> { /** * Destroy the given Contextual Instance. * This is especially intended for {@link javax.enterprise.context.Dependent} scoped beans *

single-element enum type singletone with lazy loading capability

。_饼干妹妹 提交于 2020-08-22 05:47:11
问题 I read many forums and posts about different style to implement single-tone pattern in java and seems "Enum are the best way to implement singletone pattern in java"!! I wonder how can i use Java Enum to implement SingleTone pattern in java with lazy-loading capability. since Enums are just classes. The first time a class is used, it gets loaded by the JVM and all of its static initialization is done. the enum members are static , so they're all going to be initialized. does anyone know how

how to make java - tomee application HTTPS? [closed]

只谈情不闲聊 提交于 2020-08-10 22:59:33
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . Improve this question I have been developing a web application with java and apache tomee, but I want to make it https so I can offer it to a few clients but I have no idea on how to create the certificates and make the application go through a secure channel. I have tried a few