Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created March 14, 2019 18:12
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/606e7a0c27ebd6457515741320ff037f to your computer and use it in GitHub Desktop.
Save AdamBien/606e7a0c27ebd6457515741320ff037f to your computer and use it in GitHub Desktop.
61stAirhacksQ&A.md

Ask questions and see you at April, 6th, 6.PM. CET: http://www.ustream.tv/channel/adambien

Also checkout recent episode:

60th airhacks.tv

Please keep the questions Java EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions.

@tnaskret
Copy link

tnaskret commented Apr 1, 2019

Hello,
I'm new to open liberty and MicroProfile. How to upload files using MicroProfile 2.1(jaxrs-2.1) on open liberty? Do i need to add extra dependencies?
I'm waiting for a new video course on MicroProfile :-)
Bests,
Tomasz

@franden
Copy link

franden commented Apr 1, 2019

Hello Adam,
currently we are trying to establish continuous static code checks with SonarQube in our Java EE 7 (JBoss EAP 7.0) application. In many cases we use CDI with field Injection, without explicit defined constructor. Now we have SonarQube finding that marks all our projects as "buggy", because of this rule: Constructor injection should be used instead of field injection. If we now try to use constructor injection, the CDI container (WELD) complain on startup that the modified beans have no "non-private constructor with no parameters". According to the CDI 1.1 spec the CDI beans must have non-private constructor with no parameters. But such constructor wouldn't make sense in our application, except the requirement of CDI spec. That would mean, that the SonarQube can not be applied for CDI.

  • What is your preferred approach for "CDI constructor injection VS field injection (VS setter injection)"?
  • Do you also use SonarQube in your Projects?
    • If yes, how do you deal with the rule RSPEC-3306?

@AlbozDroid
Copy link

AlbozDroid commented Apr 1, 2019

Hi Adam,

I have some questions around multi-war projects:

  1. Do you deploy one war per JEE App Server? or multiple wars in the same app server?.
  2. Do you deploy more than one JEE Application Server in the same physical server (or virtual machine)?
  3. In multi war projects how do you handle Authentication?. Do you have a separate dedicated war for Authentication and every other war delegates to that one? For example all other wars intercept all requests, call the authentication wars to check whether the credentials (username/pass, cookie, Bearer) are valid or not?
  4. What do you use for service discovery? How do your wars find each other.

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