Instantly share code, notes, and snippets.

Embed
What would you like to do?
50thAirhacksQ&A.md
@kovica

This comment has been minimized.

kovica commented Apr 10, 2018

I've seen that on http://airhacks.io/ you have a great selection of workshops.
Did you ever considered selling them as a bungle for a reduced price?

@prlopezm

This comment has been minimized.

prlopezm commented Apr 11, 2018

Dear Adam,
First of all, I want to tell you that it is a pleasure to watch your videos and forgive me for my faulty English.
Sometimes when a runtime exception is raised within an EJB, it does not leave the EJB in an inconsistent state. This exception might be avoided through a validation, which of course consumes CPU cycles and many times even a call to a database is necessary. In a case like that: do you think it is better to let raising automatically the runtime exception and therefore the EJB instance is removed, or make the necessary validations within the EJB and in case validations fail, raise an application exception and handle this last on the client's side?
Is it worthwhile to perform validations (sometimes complex) only to prevent the EJB being eliminated when the runtime exception is lifted?
Thank you very much and greetings.

@jpraet

This comment has been minimized.

jpraet commented Apr 12, 2018

Hi Adam,

In your blog post you described how to pass context information between EJB's with TransactionSynchronizationRegistry. Is this approach supposed to work for EJB calls to remote servers too? I can't get this working (using WebSphere 8.5).

Or is there another solution for this? I want to transparently propagate some tracing information (e.g. a uuid ticket that is unique to each request) throughout the system. I got everything working for HTTP calls (with a ServletFilter, JAX-WS client handler and JAX-RS client filter). Part of the system is legacy code using remote EJB calls though, and I can't seem to find a way to propagate the tracing context for these.

Thanks for doing these Q&A's!

Jimmy

@pkumar72

This comment has been minimized.

pkumar72 commented Apr 14, 2018

Thin war (200K) file.

Hi Adam,
You have talked at various time about thin war. when i add hibernate (5.2) to my POM file the war file size increases to 10MB. I want to deploy this on Payara 5 server. Is there a another way to keep the war file size small when i want to use JPA using hibernate. i tried copying the hibernate5.2.final.zip file to payara domain/domain1/lib/ext folder. The deployment failed.

Thanks
Prashanth

@nderwin

This comment has been minimized.

nderwin commented Apr 24, 2018

Hi Adam,

I wanted to ask about a comment that you made in the 48th Airhacks episode while doing the code review. You removed the equals and hashcode methods from the entity, saying they weren't needed. Have you found this to always be the case, or was it just for that one instance? What about if the entity is used in a collection, shouldn't equals/hashcode be implemented so those checks can be done on appropriate properties of the entity?

Thanks!
-- Nathan

@deratzmann

This comment has been minimized.

deratzmann commented Apr 24, 2018

Hi Adam. Great to see my coffee-buddy again :)

I have 3 questions:

  1. Will you participate in any of the new Jakarta EE Boards (e.g. Specification Board)?
  2. Is there any chance to send CDI events from one application to another ( on another host)?
  3. What is your approach to test (Integration - and systemtests) a websocket sending application?

Thank you for your airhacks.tv, unfortunatly I am not able to enjoy it live, but I enjoy it on YouTube in the late night :)
BTW: you should check your twitter mails, I have a great interview partner for you.

Thank you and best regards.

Bastian

@dempile

This comment has been minimized.

dempile commented Apr 30, 2018

Hi adam,
Jakarta EE is officially launched, do you think its will be more like MicroProfile or it will continue like JAVA EE was?

@lerudinegueye

This comment has been minimized.

lerudinegueye commented May 4, 2018

Hi adam,

How can i combine primefaces-jpa-jaxrs webservices?
Talking about javaee7 bulding web application that you say that all datasources and other things must be in the server(application devcrop)
must we configure all the datasource in server side?
Thanks.

@AdamBien

This comment has been minimized.

Owner

AdamBien commented May 7, 2018

When Numbers Are More Important Than Quality

@AdamBien

This comment has been minimized.

Owner

AdamBien commented May 7, 2018

Live coding microservices video: https://www.youtube.com/watch?v=qQtF-Ks0c5U

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