Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created July 13, 2016 18:36
Show Gist options
  • Save AdamBien/48148f11f649dd756993a876f7354061 to your computer and use it in GitHub Desktop.
Save AdamBien/48148f11f649dd756993a876f7354061 to your computer and use it in GitHub Desktop.
29thAirhacksQ&A.md
@Chilis92
Copy link

Hi Adam,

I have a Java EE application and I'm using LightFish to monitor it. How can I make sure that my application has a good performance, I meant LightFish provides a lot of information but I dont know for example if the heap memory 400mb is good or is bad , or how many transactions and commits my application should have. How do you determinate if your app is good or bad based on the result retrieved by LightFish ?

Thanks

@robertBrem
Copy link

Hy Adam

You have mentioned your view about sonar in some videos of you as well as in your book.
But I work in a company that think the standard rule set of sonar is the best and you are not allowed to change it. I’m only a developer aka coding monkey so any attempted to convince them that it would be better to have less rules but then force the developers to stick with it was unsuccessful.

Can you please make a small blog post about your sonar settings and how to interpret/live it? Like a combination of code coverage and cyclomatic complexity within “clouds” similar to your book entry? It would help me a lot if I can redirect them to your post.

Thanks Adam!

@AdamBien
Copy link
Author

AdamBien commented Aug 1, 2016

Is there any way to find an EJB, which is capable of accessing
PersistenceContext, in EntityListener? (blog comment: http://www.adam-bien.com/roller/abien/entry/why_sometimes_the_entitymanager_in#comment-1469512286568)

@AdamBien
Copy link
Author

AdamBien commented Aug 1, 2016

EntityManager serialization and clustering (blog comment with reference to airhacks: http://www.adam-bien.com/roller/abien/entry/guardians_tenants_nio_2_bpm#comment-1462980818215)

@AdamBien
Copy link
Author

AdamBien commented Aug 1, 2016

BCE: referencing entities from other components (tweet: https://twitter.com/AmabCollazo/status/758900594455158785)

@deetewari
Copy link

Hi Adam,

I have been trying to develop 2 web applications (one server & one client) based on web sockets using TomEE Plus 1.7.2. Where I'm constantly running into issues is idle timeouts and how to handle those errors especially on the server side.

What I would want is for the server to send a message with a timeout of few seconds and if that fails, execute some business logic. However, when I try to emulate a link failure by disconnecting the client VM from its network (the server VM has proper connectivity though), I still don't get any errors or exceptions on the server side. It seems to just queue up the messages and send them all together as soon as connection to the client is restored. I am using Tomee plus 1.7.2.

Have already tried setting the maxIdleTimeout however, doesn't seem to be having much effect.

Also, what are your thoughts on handling socket connections from a WAR within TomEE from a resource management as well as thread management perspective?
Many thanks.

@alameen
Copy link

alameen commented Aug 1, 2016

Hello Adam,

What reporting library would you recommend for a Javaee app in which a lot of PDF is being generated? I currently use JasperReport which breaks glassfish whenever the report gets bulky.

Many thanks and keep up the good work :)

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