Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created May 15, 2018 06:38
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/dc00f6b83c2430c91533486e72fb4d54 to your computer and use it in GitHub Desktop.
Save AdamBien/dc00f6b83c2430c91533486e72fb4d54 to your computer and use it in GitHub Desktop.
51thAirhacksQ&A.md
@scrmtrey91
Copy link

scrmtrey91 commented May 16, 2018

Hello again.

We are using git as versioning control, jfrog artifactory or nexus, teamcity, youtrack and we decided to change our flow a little bit, so we got a few questions.

1) How you recommend to do versioning for:
- Internal build, like RC, snapshot for testing (test server or internal developer server)
- Production build from master branch (to go to customers for deploy on production server)
- Also some project also containts client for ws access, which we include in other projects (to access web services) to simplify stuff

2) What is your practice in projects ?
3) How do you make / organize tags on git for release, snapshot etc,.. for your projects (scripts, IDE commit / push,..) ?
4) Do you use different branches for production / testing ?
5) Can you describe your workflow with your projects (making test build, making release build, git taging, versioning, etc..) ?
6) Do you use auto deploy feature when production build is ready to release ?
7) Is it possible to somehow automate process ?

Thanks for your answer / tips.

@vernetto
Copy link

hello Adam, I really like Primefaces and now I am starting to use Spring Boot and I would really regret losing PF in favour of SpringMVC. I have tried a little Joinfaces, they nicely sorts out all the dependencies for you and it seems to work fine. What are your thoughts on Joinfaces? What would you recommend me to do, throw away Primefaces and use SpringMVC and avoid mixing the 2 worlds ? Thank you so much!

@gorlok
Copy link

gorlok commented May 31, 2018

Hello! I can't find how to upload a file (from a multipart form) using only JAX-RS on standard EE7+ API. There are extensions from Jersey, RestEasy, etc, but they are not portable between implementations/servers.

@ptuomaal
Copy link

ptuomaal commented Jun 1, 2018

Hello Adam! What are your thoughts on MVC 1.0? Any alternatives for it or should I just use servlets with JSPs? I am seeking a clean jax-rs API that returns templates with pre-populated model and vanilla JS (ES6) will do the rest (maybe with webcomponents). MVC 1.0 seems to provide all that but it's future is unclear. Would use it in a project with expected lifetime over 5 years. JSF or SPA architecture is not an option.

@mistrz7
Copy link

mistrz7 commented Jun 1, 2018

Hello,
I'm fan of primefaces too. It allow to build nice looking and modern webapps without js scripts. I uses primefaces on wildfly and every time pack primefaces jar into war file. It obiouse that it is not good idea so could you explain how to use primefaces on wildfly as module? Propably it require more configuration.

Regards
sw

@eyalyatir
Copy link

eyalyatir commented Jun 2, 2018

Hi Adam,
I started learning Java EE and I have a question regarding JAX-RS and EJB. I saw a lot of examples that annotate the resource with @stateless or the @singleton annotations and I wanted to know if you can help me to understand in which cases the one is preferred over the other? Also, if i use @singleton do I need to make everything inside the resource thread-safe?

On another topic, I purchased most of your Java EE courses and they are great (please make more). Do you have any video tutorials on "real world" CI using Jenkins, maven and git?

Thanks,
Eyal

@mouzerly
Copy link

mouzerly commented Jun 4, 2018

Hi Adam,

A few logging and monitoring questions for a Java EE 7 or 8 greenfield project consisting of several related apps:

  1. Planning to have centralized logging, and to log events using a structured format (JSON). Is java.util.logging sufficient for this (would need to at least create a JSON formatter) or would it be better to use a logging framework like Log4j 2 or other?

  2. It looks like separate tool stacks are often used for logging and monitoring. For example, Elasticsearch/Kibana for log data and Prometheus/Grafana for metrics data. Is this a best practice (why?), or is there a good solution that supports storage and visualization for both log and metrics data?

  3. I was thinking about having apps automatically emit metrics data to some destination, beginning on startup and continuing entire time app is running. Do you see a downside to this approach? If this is done, would you recommend that app metrics also be made available through REST endpoints?

Thanks

@rinkevics
Copy link

Have you tried webassembly? Could it be the future?

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