Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created July 13, 2016 18:36
Show Gist options
  • Select an option

  • Save AdamBien/48148f11f649dd756993a876f7354061 to your computer and use it in GitHub Desktop.

Select an option

Save AdamBien/48148f11f649dd756993a876f7354061 to your computer and use it in GitHub Desktop.
29thAirhacksQ&A.md
@AdamBien
Copy link
Copy Markdown
Author

AdamBien commented Aug 1, 2016

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

@deetewari
Copy link
Copy Markdown

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
Copy Markdown

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