You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by sgjava <sg...@gmail.com> on 2015/11/20 19:58:39 UTC

JCache using TomEE 7.0.0 example project

I finally have Ehcache 3 and Apache JCS 2 providers working with JCache and
annotations. To change the provider just edit the POM, change the
configuration file in CacheBean and build.

https://github.com/sgjava/jcache-tomee

* Unit tests provide examples
* JAX-RS using CDI bean and JCache annotations
* Stand alone EJB container using CDI bean and JCache annotations
* Uses Ehcache or Apache JCS provider
* GeneratedCacheKey using String
* CacheResolverFactory in order to expose CacheManager used by JCache
annotations
* Uses javax.cache.* only! No net.sf.ehcache.* imports used
* Change JCache provider in pom.xml and configuration file in CacheBean




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/JCache-using-TomEE-7-0-0-example-project-tp4676932.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: JCache using TomEE 7.0.0 example project

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
Thanks for sharing!

Re: JCache using TomEE 7.0.0 example project

Posted by "Jonathan S. Fisher" <jo...@springventuregroup.com>.
nice work!

On Fri, Nov 20, 2015 at 12:58 PM, sgjava <sg...@gmail.com> wrote:

> I finally have Ehcache 3 and Apache JCS 2 providers working with JCache and
> annotations. To change the provider just edit the POM, change the
> configuration file in CacheBean and build.
>
> https://github.com/sgjava/jcache-tomee
>
> * Unit tests provide examples
> * JAX-RS using CDI bean and JCache annotations
> * Stand alone EJB container using CDI bean and JCache annotations
> * Uses Ehcache or Apache JCS provider
> * GeneratedCacheKey using String
> * CacheResolverFactory in order to expose CacheManager used by JCache
> annotations
> * Uses javax.cache.* only! No net.sf.ehcache.* imports used
> * Change JCache provider in pom.xml and configuration file in CacheBean
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/JCache-using-TomEE-7-0-0-example-project-tp4676932.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

-- 
Email Confidentiality Notice: The information contained in this 
transmission is confidential, proprietary or privileged and may be subject 
to protection under the law, including the Health Insurance Portability and 
Accountability Act (HIPAA). The message is intended for the sole use of the 
individual or entity to whom it is addressed. If you are not the intended 
recipient, you are notified that any use, distribution or copying of the 
message is strictly prohibited and may subject you to criminal or civil 
penalties. If you received this transmission in error, please contact the 
sender immediately by replying to this email and delete the material from 
any computer.

Re: JCache using TomEE 7.0.0 example project

Posted by sgjava <sg...@gmail.com>.
Updated to add Hazelcast provider and externalize config file name in
app.properties.



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/JCache-using-TomEE-7-0-0-example-project-tp4676932p4677081.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: JCache using TomEE 7.0.0 example project

Posted by Andy Gumbrecht <ag...@tomitribe.com>.
That's great to see. Thanks for taking the time to update everyone!

Andy.

On 20/11/2015 19:58, sgjava wrote:
> I finally have Ehcache 3 and Apache JCS 2 providers working with JCache and
> annotations. To change the provider just edit the POM, change the
> configuration file in CacheBean and build.
>
> https://github.com/sgjava/jcache-tomee
>
> * Unit tests provide examples
> * JAX-RS using CDI bean and JCache annotations
> * Stand alone EJB container using CDI bean and JCache annotations
> * Uses Ehcache or Apache JCS provider
> * GeneratedCacheKey using String
> * CacheResolverFactory in order to expose CacheManager used by JCache
> annotations
> * Uses javax.cache.* only! No net.sf.ehcache.* imports used
> * Change JCache provider in pom.xml and configuration file in CacheBean
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/JCache-using-TomEE-7-0-0-example-project-tp4676932.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
>
> -- 
>    Andy Gumbrecht
>    https://twitter.com/AndyGeeDe
>    http://www.tomitribe.com