Skip to content

Instantly share code, notes, and snippets.

Created March 5, 2020 05:26
Show Gist options
  • Save AdamBien/6fd5e96c8f22da6a9df86dcd28ad4b27 to your computer and use it in GitHub Desktop.
Save AdamBien/6fd5e96c8f22da6a9df86dcd28ad4b27 to your computer and use it in GitHub Desktop.

Ask questions and see you at April, 6th, 8.PM. CET:

Also checkout recent episode:


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

Copy link

aosama commented Mar 8, 2020

Hi Adam,

Have you every looked into a good way to integrate AWS cognito with JEE Security? for example an exiting JSF application and what could be a good way to integrate AWS congnito with it?

Copy link

benjamin9874 commented Mar 12, 2020

Hello Adam,

  1. In @manytomany relationship, how to use JsonB? If I not put @JsonbTransient together with List that is annotated @manytomany, I get exception! A solution I thought is just to iterate over List and add them to a JsonArray using Jsonp? Any other solution for automatically binding using Jsonb?

  2. I recently heard about Quarkus, and then saw your video on comparision memory. Why it has much lower memory size than app. servers and any other difference between Quarkus and application servers.

  3. What do you think about GraalVM, native-images? Do you prefer using native-images?

Thank you

Copy link

thatsIch commented Mar 14, 2020

Hi Adam,

  1. why should I consider an application server like Wildfly nowadays since Quarkus is released? What are the benefits of still using an application server?
    The only thing I really noticed is, that the setup is similar to Thorntail and with Wildfly you get everything out of the box without configuration and selecting your dependencies.

  2. Is there a non-vendor-specific way to define a datasource? I am trying to define a datasource on Wildfly and I only saw suggestions about modifying the standalone.xml or using jboss-cli.

Thank you

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.

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.


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

Injecting Properties Into Java EE Applications, Feb 09, 2016

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("") 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!

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

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


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 :-)

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?

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