Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created August 9, 2018 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamBien/b5b1a591d2ffe03c7e921d60f0afbd9d to your computer and use it in GitHub Desktop.
Save AdamBien/b5b1a591d2ffe03c7e921d60f0afbd9d to your computer and use it in GitHub Desktop.
54thAirhacksQ&A.md
@vanuatoo
Copy link

vanuatoo commented Aug 27, 2018

Using JAX-RS with JSON-B.
Java Bean contains LocalDate fields. I annotate them with @JsonbDateFormat("dd/MM/yyyy") to pass validation during json consumption.
How do I define this format globally for my project, so I don't have to annotate every LocalDate field in my other Java Beans?

@SlobodanVujovic
Copy link

Hi, Adam,

I looked at your Payara5 Dockerfile in which you call shell script start.sh at end of Dockerfile. I don't understand what is next line, from start.sh, doing:

echo deploy ${DEPLOYMENT_DIR}/`cd ${DEPLOYMENT_DIR} && ls -1 | head -1` > ${INSTALL_DIR}/deploy-command

Can you explain it a little bit. I can not find deploy command anywhere. Is it Linux command, Docker command, or something else?

Thank you for so much quality content.
Slobodan Vujovic.

@Valleyman1
Copy link

Good day, Adam,

Thank you very much for the knowledge sharing you have been doing. I have learned a lot, and the "Java Ninja" book Real World Java EE Patterns - Rethinking Best Practices is incredible.

I have the following question. In JAX-RS how would one pass bulk (message with more that one request) JSON/XML request?

Regards,

@GADNT
Copy link

GADNT commented Sep 3, 2018

Hi Adam,

Let's say that I have deployed a service on some application server(weblogic ,old but strong :) ). Programmatically or not what will be your approach to get run-time errors by type(let's say) and if some threshold is touched then an alert/email to be sent to the administrators?
As always,I appreciate your time shared with us through videos.
Thank you
Gabriel

@mhlulani
Copy link

mhlulani commented Sep 3, 2018

Application Server Credential Rotation (pull)

Hi Adam

Is it possible to configure application servers (Wildfly) to pull resource (database) credentials from somewhere, instead of setting them statically in the config (standalone.xml). Even if it means we need to write a plugin for the application server, we will have to do that.
We are now required to rotate credentials everyday on MANY instances as apposed to every week.

Thanks for the continued effort
Enjoy you evening.

@zak905
Copy link

zak905 commented Sep 3, 2018

Hi Adam,

have you ever used GWT (previously Google Web Toolkit), does it have any future for front end development using Java ? or as alternative to writing front ends for Java (or Jakarta) EE backends ?

Thanks for the show.

@jcrochavera
Copy link

Hi Adam,
Thank you very much for share your knowledge.

Is there any way to load/unlod in runtime resources/endpoints contained in external classes?
I already have an approach:

    1. create a new configuration: JAXRSConfiguration resourceConfig = new JAXRSConfiguration();
    1. Load the clas: loadClass(source, parentClassLoader);
    1. register as instance : resourceConfig.registerInstances(clazzInstance); (because if I use another method the instance cached is not removed and the old code is still present)
    1. reload the container JAXRSConfiguration.reload(resourceConfig);
      This approach does not support CDI...
      Is there a better way to do the same, but more efficiently ???
      Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment