java拦截器不清缓存不生效_java – 忽略缓存拦截器调用

我正在为maven多模块项目开发缓存实现(exstremescale),我在其中添加了maven依赖项

com.ibm.extremescale

ogclient

8.6.0.20150901-215917

添加了缓存注释

@Override

@Cacheable(value = "productDetails", key = "#productId + #orgId")

public Product productRead(final String productId, final String productKey, final String orgId, final CRApplicationEnum sourceSystem) throws IntegrationException {

缓存manager.xml

<?xml version="1.0" encoding="UTF-8"?>

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"

xmlns:cache="http://www.springframework.org/schema/cache"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd

http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd">

p:name="eventDetails" p:map-name="${iev.eventDetails.mapName}"

p:object-grid-client-ref="wxsGridClient" />

p:name="eventValidationDetails" p:map-name="${iev.eventValidationDetails.mapName}"

p:object-grid-client-ref="wxsGridClient" />

p:name="productDetails" p:map-name="${ipr.productDetails.mapName}"

p:object-grid-client-ref="wxsGridClient" />

class="com.ibm.websphere.objectgrid.spring.ObjectGridCatalogServiceDomainBean"

p:catalog-service-endpoints="${xscale.catalogServiceEndpoint}" />

class="com.ibm.websphere.objectgrid.spring.ObjectGridClientBean"

p:catalog-service-domain-ref="wxsCSDomain" p:objectGridName="${wxs.objectGridName}" />

缓存仅适用于项目的一个maven模块,我可以看到缓存拦截器调用,对于maven模块的其余部分,它忽略了@cacheable注释(它不会进入拦截器).

我们使用atomikos作为事务管理器和CXF -interceptors,它们将在进入缓存方法之前执行.

请帮帮我

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值