payara-micro

PayaraMicro does not call @PreDestroy on EJB or ApplicationScoped

ぐ巨炮叔叔 提交于 2020-05-31 05:44:06
问题 I'm migrating a WAR application from PayaraServer to Payara Micro to reduce RAM usage. I just realise that @PreDestroy on EJBs are not called when stopping the instance with CTRL+C. Is there a correct way to close the payaramicro instance properly as I'd like to execute some operations. Thanks for your answers! Or which services in Payara Server to deactivate to use as much as RAM as PayaraMicro? I'm using the version 5.183, and I also tried the 5.192. 回答1: Which kind of EJB did you use? In

PayaraMicro does not call @PreDestroy on EJB or ApplicationScoped

怎甘沉沦 提交于 2020-05-31 05:43:28
问题 I'm migrating a WAR application from PayaraServer to Payara Micro to reduce RAM usage. I just realise that @PreDestroy on EJBs are not called when stopping the instance with CTRL+C. Is there a correct way to close the payaramicro instance properly as I'd like to execute some operations. Thanks for your answers! Or which services in Payara Server to deactivate to use as much as RAM as PayaraMicro? I'm using the version 5.183, and I also tried the 5.192. 回答1: Which kind of EJB did you use? In

PayaraMicro is not adding jdbc details in glassfish-resources.xml from WAR

只谈情不闲聊 提交于 2020-01-24 01:14:09
问题 I have web app I'm trying to deploy in Payara Micro's docker container, but the glassfish-resources.xml details are not added to the server's microdomain.xml . The JDBC definition is pretty basic, utilizing environment variables set from the docker command (this is location in MyApp.war/WEB-INF/glassfish-resources.xml : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" "http://glassfish.org/dtds

How does Payara Micro determine its logging format (it differs from that specified by default logging.properties)?

眉间皱痕 提交于 2019-12-25 09:08:57
问题 Here is an example of running Payara Micro 172 from the command line. Note its log format: LANELSON$ java -jar ~/Downloads/payara-micro-4.1.2.172.jar [2017-08-06T10:47:56.814-0700] [] [INFO] [] [fish.payara.micro.boot.runtime.PayaraMicroRuntimeBuilder] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1502041676814] [levelValue: 800] Built Payara Micro Runtime OK, that's fine. I want to change some log levels. I understand I can add --logProperties someLogging.properties and it will pick up

How can I remove the Server header in Payara Micro 172?

我怕爱的太早我们不能终老 提交于 2019-12-12 05:39:00
问题 I'd like to remove the server header from Payara Micro's output. For example, it reports this: HTTP/1.1 200 OK Server: Payara Micro #badassfish I'd like to get rid of that Server line. I see that issue 32 provided the capability in theory to disable this. The associated pull request certainly seems to show that there is some sort of property being consulted to disable this. And I can infer from this that I could presumably go into the administration GUI if this were a full-fledged server and

How to use Jackson 2 in Payara 5?

耗尽温柔 提交于 2019-12-05 02:42:29
问题 I'm using Jackson 2 with Payara 4 and I would liked to use Jackson 2 in Payara 5 . Using JAX-RS, I also would like to avoid changing annotations and so on... In Payara 5 the default Jsonb provider is Yasson. Any ideas to disable it and use Jackson instead? All comments/ideas are welcome :-) NB: Yasson is very interesting but handle abstract class or interface serialization/deserialization is a little more complex than putting a Jackson annotation. My current understanding is that it requires