Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jcache enhancements #325

Merged
merged 2 commits into from
Jun 12, 2015
Merged

Jcache enhancements #325

merged 2 commits into from
Jun 12, 2015

Conversation

smillidge
Copy link
Contributor

Fixes #188 by implementing Cache and NamedCache injection. It is now possible to do;

@Inject
private Cache cache;

@NamedCache(cacheName="MyCache", keyClass=String.class, valueClass=String.class)
@Inject
private Cache stringCache;

@smillidge
Copy link
Contributor Author

payara test please

smillidge added a commit that referenced this pull request Jun 12, 2015
@smillidge smillidge merged commit 2ad3745 into payara:master Jun 12, 2015
@smillidge smillidge deleted the jcache-enhancements branch December 20, 2015 08:25
@Quix0r
Copy link

Quix0r commented Sep 3, 2017

Has this been released? What JAR do I have to include? It looks like @NamedCache is not generic, so only Payara has it?

@Quix0r
Copy link

Quix0r commented Sep 3, 2017

I somtimes get:

WELD-000054: Producers cannot produce unserializable instances for injection into an injection point that requires a passivation capable dependency Producer: Producer Method [Cache<K, V>] with qualifiers [@Any @Default] declared as [[UnbackedAnnotatedMethod] @Produces public fish.payara.cdi.jsr107.JSR107Producer.createCache(InjectionPoint)] at fish.payara.cdi.jsr107.JSR107Producer.createCache(JSR107Producer.java:116) Injection Point: [BackedAnnotatedField] @Inject @NamedCache private org.mxchange.jfinancials.beans.contact.FinancialsContactWebRequestBean.contactsCache at org.mxchange.jfinancials.beans.contact.FinancialsContactWebRequestBean.contactsCache(FinancialsContactWebRequestBean.java:0) StackTrace:

Then I have read that transient needs to be added. Maybe something bad about it? Feels wrong.

Pandrex247 added a commit to Pandrex247/Payara that referenced this pull request May 4, 2021
FISH-973 FISH-1174 Allow Upgrade Tool To Use A Predownloaded Distribution and Fix NoSuchFileException When Upgrading Payara Web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants