Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Last active April 14, 2018 15:07
Show Gist options
  • Save AdamBien/d2bdc699f8f39948ff04126f3d09227d to your computer and use it in GitHub Desktop.
Save AdamBien/d2bdc699f8f39948ff04126f3d09227d to your computer and use it in GitHub Desktop.
49thAirhacksQ&A.md
@Vagspath
Copy link

Vagspath commented Apr 6, 2018

Hi Adam,

I'm looking in to JEE and query caching.

I 'm working on a scenario where i have a query which returns eevry times an amount of 1000 results.
The current data updates about every week and not in daily use ,so i believe it would be nice if i cache them.

We have a caching mecahnism using ehcach but as an external tool of JPA. We put there the objects we wan to cash and manually update them when the apropriate data change.

Is there a way to cache query results in a jee jpa application? (I'm using Elcipselink and wildfly 8)
And how to handle the cache change when the data change.

Thanks,
Vaggelis

@vanuatoo
Copy link

vanuatoo commented Apr 9, 2018

Please take a look at this Java EE 8 project.
https://github.com/vanuatoo/soteria
I want to achieve the following:
AuthenticationMechanism is not called when accessing /resources/auth resource.
I tried using web.xml and indicating security-constraint, but it's ignored and security mechanism is invoked for every request to resources/* URL.

How can I do that?

@pkumar72
Copy link

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

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