Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
92ndAirhacksQ&A.md

Ask questions and see you at November, 1st, 8.PM. CET: youtube.com/c/bienadam/live

Also checkout recent episode:

92nd 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. Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks

@biobob
Copy link

biobob commented Oct 8, 2021

Hi Adam,

I want to react to your blog post: Serializing and Deserializing Java Records with "stock" Jakarta EE 9 JSON-B. Little simplification could be done in the record class. See in my example repo: Workshop.java. It's even more lean 😃 .

Anyway, do you think that immutable Java records are good fit for DTOs in REST communication?

@AdamBien
Copy link
Author

AdamBien commented Oct 13, 2021

Hi Adam,

I want to react to your blog post: Serializing and Deserializing Java Records with "stock" Jakarta EE 9 JSON-B. Little simplification could be done in the record class. See in my example repo: Workshop.java. It's even more lean 😃 .

Anyway, do you think that immutable Java records are good fit for DTOs in REST communication?

Absolutely -> a great idea!

@vanuatoo
Copy link

vanuatoo commented Oct 30, 2021

During the development of our back-end using JAX-RS, EJB, JPA we write unit tests and component tests (unit tests that mock external dependencies). We also have separate project where we write system tests.

What's the best way to do TDD?

  1. First write a system test that fails and then go from there?
  2. First write a component test, then system test?
  3. ?

@jefrog1844
Copy link

jefrog1844 commented Nov 1, 2021

In your training videos about web components, you choose javascript. What is the advantage of javascript over typescript? I would think typescript is more closer to Java since it is also strongly typed. How would using typescript alter the approach you teach for web components?

@jefrog1844
Copy link

jefrog1844 commented Nov 1, 2021

Is there any value in using only tuples and json for a jax-rs service in place of pojos?

@AdamBien
Copy link
Author

AdamBien commented Nov 1, 2021

Saving money with Java in the (serverless) clouds. (I got several questions regarding Java, serverless, AWS lambdas in the recent events). Related screencasts: https://www.youtube.com/watch?v=28Da0l0MFms and https://www.youtube.com/watch?v=WrS-qQjZ5xU

@dabkhazi
Copy link

dabkhazi commented Nov 1, 2021

Hi Adam, I have some questions about EJB. The first question is related to statless ejb. The jee application servers use the ejb object pool, i.e.
this pool contains objects that are reused. For example, such an object contains a field that contains some status. If we reuse such an ejb, will the value in this status field be filled with the value from the previous session?

@dabkhazi
Copy link

dabkhazi commented Nov 1, 2021

Another question is possibly related to the specifics of the Websphere application server. I just ran into working with Websphere Traditional 9.
An application server has a service that communicates with another through a remote interface. And periodically, after restarting the remote service, the first service crashes with an error that it cannot find the remote ejb.
It helps to restart the service that uses remote ejb. Do you think this is normal behavior, do we always need to restart both applications synchronously, or is it a bug in the application server?

@dempile
Copy link

dempile commented Nov 1, 2021

Hi Adam,

Is it ok to inject a session scoped cdi bean into an application scoped cdi bean, if yes, I want to know if it will not affect performance of the application, because Im doing it to handle notifications for all users.

thanks

@jefrog1844
Copy link

jefrog1844 commented Nov 1, 2021

Will there be a video posted for the October 23 session How to build a great, serverless, cloud-native monolith? I could definitely use the training.

Thanks

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