Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Last active January 8, 2018 17:10
Show Gist options
  • Select an option

  • Save AdamBien/725f0e529bda54e2a35cf35c88f49c26 to your computer and use it in GitHub Desktop.

Select an option

Save AdamBien/725f0e529bda54e2a35cf35c88f49c26 to your computer and use it in GitHub Desktop.
46thAirhacksQ&A.md
@stefanrinderle

Copy link
Copy Markdown

Hi Adam,

i really like your really thin war files which are fast to deploy and I'm currently trying to have a really small war for my small private project too. The setup is based on your java ee maven archetype with the glassfish docker image.

To keep the war small, i tried to work with the built in java.util.logging instead of slf4j which i used before. By default, the logger logs into the server log of glassfish. But I'd like to have a single log file only for the log entries of my application. I tried to add a logging.properties file to the project to define the FileHandler but this file then overrides all the properties of the server. How do you achieve to keep the server config untouched and add logging config? How do you do that in your projects?

In addition i would like to send the log entries via filebeat to ELK. Would you add filebeat to the docker image or would you have a dedicated filebeat docker container with access to the application log files? Or another way?

Thanks in advance
Stefan

@dempile

dempile commented Jan 4, 2018

Copy link
Copy Markdown

Hi Adam,
1-When you deploy an ear or war to a client server, is there a good mecanism in order to obfuscate the code so the client cant reverse engineer it.
2- If we obfuscate the code , do the application server still be able to execute it properly?
3- What is the best way to add a license to your JEE application when you want to deploy it in a client server.
thanks.

@comdotlinux

Copy link
Copy Markdown

Hello!
Thanks for the videos on youtube and the online courses on Vimeo! Really appreciate it.
Question :
I know your view on external libraries and I do understand the reason behind avoiding them.
However, Since I really started using streams, there are times when you are using e.g. IntStream and then getting a value from a structure. (they don't provide Iterator or list output -- don't ask why :) )
Now further down the stream I might also want the integer generated by the stream but normally you cannot as once you do like a map(i -> ds.getObjectAt(i)) the i is not available anymore!
Here I have been saved many a times by Pair as I can have a Object with both values in the Stream.

What do you do in your projects? Create your own each time? or is this good candidate for using Apache Commons?

@sjetesjete

Copy link
Copy Markdown

Hi Adam,
are you open for companies sponsoring your airhacks-webshows?

@vanuatoo

vanuatoo commented Jan 8, 2018

Copy link
Copy Markdown
  1. How to organize role based access to JAX-RS resources?
  2. Please recommend good book on Unit Testing
  3. How to test JAX-RS Resources?

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