Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Last active May 13, 2019 16:47
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/001c1bad3f868a8508783569e192ea3d to your computer and use it in GitHub Desktop.
Save AdamBien/001c1bad3f868a8508783569e192ea3d to your computer and use it in GitHub Desktop.
62ndAirhacksQ&A.md

Ask questions and see you at May, 13th (this time one week later), 6.PM. CET: http://www.ustream.tv/channel/adambien

Also checkout recent episode:

61 airhacks.tv

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

Dates for (cloudy) winter 2019 airhacks.com are available.

@dineshbhagat
Copy link

Hi Adam,
It would be great if you share tips to understand existing codebase(both open and closed source - with less or no documentation).
Most of the time, it feels information overload and loses interest in reading code. This is holding me back in contributing to open source code.

@tmsanchez
Copy link

Hi Adam.

Now that Jakarta EE Rights from Java Trademarks are finally defined, in your opinion, What will be the future or Jakarta EE? (I notice that Ghassen already ask same question)

Regards,

Tito Sanchez

@mreppe
Copy link

mreppe commented May 7, 2019

Hello Adam

How do you handle garbage collection of ViewScoped beans in JSF in your project? In the current JSF version ViewScoped beans remain in the memory, if you leave the page with a GET request (h:link, h:outputLink, ...) instead of JSF navigation [1]. Due to this behavior we need a lot of heap space in our application, even if there are only a few users logged in. Do you use ViewScoped from Omnifaces to prevent this problem?

[1] https://stackoverflow.com/questions/30410601/how-detect-and-remove-during-a-session-unused-viewscoped-beans-that-cant-be

Regards from Austria

@jmlclosa
Copy link

jmlclosa commented May 7, 2019

Hi Adam,
Question about JavaFX :) which seems a forgotten think in "Java world" because majority of applications are web.

  1. What are your thoughts of using JavaFX/OpenJFX for standalone application on an embedded device? We are developing software for devices for a new public transport system: a driver console (x86), a smart card check device with screen (arm), unattended ticketing machine (x86), ...
    It has high interaction with hardware (card reader, credit card reader, qr reader, printer, gps, ...). It has a local database (using Hibernate) where all data is saved and is sent periodically to central system via REST (using Jax-RS)
    I miss the producitivity that I used to with Java EE: CDI, JTA, JSF, ... but I discard the use of Java EE application with application loaded by a Browser because I didn't rely on Browser interaction and there is no multi-user access.

  2. Do you recommend some framework like ControlsFX?
    We are using Afterburner.fx, which allows us using CDI and remove some boilerplate code for loading resources. We also added FontawesomeFX project.

  3. How do you think is the best way to communicate with that devices? I.E: force a reboot or getting trip info remotely.
    Maybe having a Java EE application inside the device with Jax-RS endpoints which communicate to JavaFX app via RMI?
    Central system --REST--> Java EE application in devices --RMI--> Java FX Application

Thanks for all your work, I've made first 4 online training and I don't miss any airhacks and podcast :)
Regards from Mallorca,
Juanma.

@dempile
Copy link

dempile commented May 8, 2019

Hi Adam,
When I try to inject a microprofile metric like @counted in a cdi bean with @nAmed I got this error : cannot produce unserializable instances for injection into an injection point that requires a passivation capable dependency.
the cdi bean implements Serializable
thanks

@ivanzorcic
Copy link

ivanzorcic commented May 9, 2019

Hi Adam,

I tried out some quarkus.io with JavaScript frontend (no framework no migration). If you want to take a look at it: https://github.com/zorcic/kicker (With this Application and a football table you can have an endless competition)
Would be great if you have time to review it and a question is:

How do I get @javax.ejb.Startup behavior without ejb but with cdi, so some method can be eagerly executed on startup?

  • using "@observes @initialized(ApplicationScoped.class)" throws when injecting EntityManager an exception "Unable to identify the default PU:"
  • quarkus provides an cdi event, which seems to work "io.quarkus.runtime.StartupEvent", but that is not part of a spec...

Regards from Darmstadt, Ivan

@altuga
Copy link

altuga commented May 13, 2019

Hello Adam,

Should we write jars in war files or no jar(s) in a war file? I see some projects there are 5 war files and every 5 wars there are at least 3 or 4 jars file. In which use cases should we use jar files in war? Thanks.

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