Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created March 5, 2020 05:26
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/6fd5e96c8f22da6a9df86dcd28ad4b27 to your computer and use it in GitHub Desktop.
Save AdamBien/6fd5e96c8f22da6a9df86dcd28ad4b27 to your computer and use it in GitHub Desktop.
73rdAirhacksQ&A.md

Ask questions and see you at April, 6th, 8.PM. CET: https://vimeo.com/event/19368

Also checkout recent episode:

73rd airhacks.tv

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

@vaibhavkulkarni
Copy link

Do you prefer field injection over constructor injection? I saw your video on Helidon and thought of asking this question. Any insights would be highly appreciated.

@oltianbzz
Copy link

Hi Adam

I am a student and still don't know very deep about Java. As learning for dependency injection, i saw that is done by using reflection. Now that i am looking at Quarkus, it says that DI is done at build time, no reflection is used that is why is faster. So what does this mean, I don't understand!

How should you secure /metrics endpoint from Microprofile, only auth users.

Thanks

@matlach
Copy link

matlach commented Mar 23, 2020

Hi Adam,

I'd like to transition from "my home grown cdi config" which I've created based on your blog posts many years ago.
See both

How To Configure Java EE 6+ Applications ...Without XML, Sep 07, 2011
http://www.adam-bien.com/roller/abien/entry/how_to_configure_java_ee

Injecting Properties Into Java EE Applications, Feb 09, 2016
http://www.adam-bien.com/roller/abien/entry/injecting_properties_into_java_ee

My implementation initialization process goes that way:

  1. Read an ENV var named ENVIRONMENT and fail if it doesn't exists
  2. Switch case on the ENVIRONMENT to load dedicated .properties file based on the actual environment using the Properties.load(InputStream).
  3. Substitue each properties value containing ${ENV:<THE_ENV_VAR_TO_SUBSTITUTE>} to bridge environment variable.
  4. Then inject configuration using @Inject @Config("properties.key.goes.here") ConfigValueType configValue where ConfigValueType has a dedicated @Produces ConfigValueType produceConfigValueType(InjectionPoint) method;

How I could replicate theses features but now based on top of the the microprofile config standards? and/or on top of smallrye-config?

Thank you very much and keep up the good work!

@marsenal1990
Copy link

marsenal1990 commented Mar 26, 2020

Hello Adam , i hope you're doing well.

I have two questions

  1. We have some legacy modules with java 6 and we want to upgrade to java 11 , is there any good approach to do this migration to ensure that the modules remains work correctly with java 11 and how to detect changes that we have to do ?

  2. Our client has the commercial version of OpenAm but they use it only for SSO , is it a good idea to use OpenAm in authorization as well in our project ?

Thanks && stay safe

@rac021
Copy link

rac021 commented Apr 5, 2020

Hi Adam,

is the @stateless annotation equivalent of @transactional and @RequestScoped ?
I tested that in Quarkus, but the problem is that for each request I have a new Instance.

I did not find the annotation @pooled

Thanks

@t-shaguy
Copy link

t-shaguy commented Apr 5, 2020

Hi, Adam,

Good to know you are safe and coding on. No Slides no corona.

Please as regards table /column naming standards. What do you advise, camelCase or under_score and why? Are there any standards or best practices around this?

Thank you and stay safe :-)

@czambran
Copy link

czambran commented Apr 6, 2020

Hi Adam,

Is there a way to consume multiple messages in parallel with a Post Processing acknowledgement strategy similar to how on MDBs you can control the number of sessions?

@senleft
Copy link

senleft commented Apr 6, 2020

Hi Adam,

  1. Any plans to publish the online version of the "MicroProfile with Quarkus" workshop?
  2. What you are thinking about the [microprofile-]quarkus-native and [ANY_CLOUD_PLATFORM]-lambda use case?
    Kind regards, Alex

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