Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Last active May 8, 2017 13:48
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/ee62db6ca021c99090b821fdcf4e5594 to your computer and use it in GitHub Desktop.
Save AdamBien/ee62db6ca021c99090b821fdcf4e5594 to your computer and use it in GitHub Desktop.
38thAirhacksQ&A.md
@ammaroveold
Copy link

Hi Adam, Thank you For Your Effort
What is the best way for storing translations, property files and use it with JSF bundle or database, Noting that we have thousands of keys

Regards :)

@GADNT
Copy link

GADNT commented May 2, 2017

Hi Adam,

Maybe a novice questions but,, let's say that you have an endpoint that supports only GET and have 5 (or more ) query params. How you consider the better way to handle this to have because it seems ugly to me as a endpoint declaration... maybe having more endpoints with few query params or maybe some framework that can be used to specify the parameters and let the endpoint that params will be used? change to POST and use a JSON object?
Hope is clear what I mean by my question.
Thank you
Gabriel

@wesleyegberto
Copy link

Hi Adam, greetings!

About using JAX-RS and JSON on Wildfly, is there any way to resolve the "Unknown properties" using only JEE, without use the Jackson libs.

Thank you!

@senleft
Copy link

senleft commented May 2, 2017

Dear Adam,

Which application server you will choose today if you need to design 'average' JEE application and there are no any special requirements from the customer?

Regards, Aleksandr

@roeltje25
Copy link

roeltje25 commented May 3, 2017

Dear Adam,

Greetings from holland. I am grateful for your monthly airhacks shows, I have learned a lot already. One thing you always reiterate is that we only need one dependency, i.e. javaee-api. This yields among other things superfast build times of docker images as you have shown multiple times. However, it is sometimes needed to add additional dependencies regardless. I think e.g. about jcache, where I need to incorporate hazelcast or another implementation. Or think about phonenumber parsing, where I would opt to incorporate the google phonenumber parsing library.

The question then is the following. Would it be possible to setup a docker image in such a way that the (almost never changing) dependencies are already incorporated in a docker layer, such that building and deploying becomes fast even when we have some dependencies? And how to do that in a portable way accross java ee containers?

with kind regards,

Roel

@walu-lila
Copy link

walu-lila commented May 3, 2017

HI Adam,

I was wondering if CDI Events support generic class, i.e. suppose we have
public interface Event extends Serializable {}
public class DomainEvent<T extends Event> {}

and we have two events;
DomainEvent<OrderCreated>,
DomainEvent<OrderDelivered>
where OrderCreated and OrderDelivered implement Event

How can we implement separate listeners for this events in a JAVA EE environment?
Using spring framework we would have class DomainEvent implement ResolvableTypeProvider

Thanks

@viktorcitaku
Copy link

viktorcitaku commented May 4, 2017

Hello Adam, what is your opinion regarding the recent fuss about Project Jigsaw after IBM and Red Hat seem to be against it, in it's current state?

(Source of my question: https://jaxenter.de/java-9-ibm-red-hat-jigsaw-56883)

@chermehdi
Copy link

hi adam .
I'm just starting with java EE and i would like some advice on how to approach it effectively . (all my friends are doing some cool shiny stuff like node.js) i like java so just a little advice on the path to take in learning java EE would be very much appreciate it .
i love your work on github and on youtube all thought i don't understand it completely .

@AdamBien
Copy link
Author

AdamBien commented May 8, 2017

Application Servers, Connection Pools and Clustering (a question from the field)

@tcheburator
Copy link

Hi Adam, for what we need use JavaEE with Payara, Glassfish and so on, if we have Jersey - JAX-RS implementation? :)

@AdamBien
Copy link
Author

AdamBien commented May 8, 2017

@AdamBien Hi Adam ! What do you think of JPMS ?

— Alexandre Fruchaud (@alexthep) May 8, 2017

@simdevmon
Copy link

Hi Adam,

I am using a @Asynchronous method, whichs returns a java.util.concurrent.Future inside a stateless bean to start some long running task (several minutes) via JAX-RS. After that I can poll the status and see if the execution isDone().
Which approach would you use to also update the current progress (%) that it can be polled via JAX-RS?

Best regards,
Simon

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