chandru
Sep 6th, 2007, 07:17 AM
Sorry to put a new post as my post is not looked . I feel this is a Configuration issue..
<bean id="redemptionService"
class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="interceptorNames">
<list>
<value>methodCachePointCut</value>
<value>slsbInterceptor</value>
</list>
</property>
<property name="proxyInterfaces" value="com.ftindia.redemption.interfaces.RedemptionManage r">
</property>
<property name="target">
<ref local="RedemptionManagerImpl"/>
</property>
</bean>
<bean id="RedemptionManagerImpl" class="com.ftindia.redemption.interfaces.impl.RedmptionMa nagerImpl">
</bean>
<bean id="slsbInterceptor" class="org.springframework.ejb.access.SimpleRemoteSlsbInv okerInterceptor">
<property name="jndiEnvironment">
<props>
<prop key = "java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
<prop key = "java.naming.provider.url">t3://localhost:7001</prop>
<prop key = "java.naming.factory.url.pkgs">weblogic.jndi.factories:weblogic.corba.j2ee.naming .url</prop>
</props>
</property>
<property name="jndiName" value="Redemption" />
<property name="lookupHomeOnStartup" value="false"/>
<property name="resourceRef" value="true"/>
<!-- <property name="homeInterface" value="com.ftindia.redemption.interfaces.RedemptionManage r" /> -->
</bean>
<bean id="methodCachePointCut" class="org.springframework.aop.support.RegexpMethodPointc utAdvisor" >
<property name="advice">
<ref local="methodCacheInterceptor"/>
</property>
<property name="pattern" value="com.ftindia.redemption.interfaces.RedemptionManage r.getAuthorizeDetailsCache">
</property>
</bean>
<bean id="methodCacheInterceptor" class="com.ftindia.cache.MethodCacheInterceptor">
<property name="cache">
<ref local="methodCache" />
</property>
<property name="beanCount" value="5"></property>
</bean>
<bean id="methodCache" class="org.springframework.cache.ehcache.EhCacheFactoryBe an">
<property name="cacheName" value="droseCache1"></property>
<property name="cacheManager" ref="cacheManager"></property>
</bean>
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFa ctoryBean">
<property name="configLocation" value="/WEB-INF/ehcache.xml"></property>
</bean>
<bean id="listValues" parent="SpringDBAccess" class="com.ftindia.services.ListValues" lazy-init="false">
</bean>
<bean id="SpringDBAccess" class="com.ftindia.db.SpringDBAccess">
<property name="dataSource">
<ref bean="dataSource"/>
</property>
</bean>
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiEnvironment">
<props>
<prop key = "java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
<prop key = "java.naming.provider.url">t3://localhost:7001</prop>
<prop key = "java.naming.factory.url.pkgs">weblogic.jndi.factories:weblogic.corba.j2ee.naming .url</prop>
</props>
</property>
<property name="jndiName">
<value>com.ftindia.dbconnection</value>
</property>
</bean>
I have Configured like this..by setting the target RedemptionManagerImpl..In a scenario where target and proxyInterfaces are not local to this package..I mean when we deploy the war and the Jars differently without packing into the single ear..It is not able to look up the proxyInterfaces or the target ..Do I need to Configure any other way..How to enable the ContextLoading between the war file and the various Jars.. I 'm using the Spring EJB this is not able to load the EJB Context .. Not able to look up the EJB Objects from the applicationContext.xml through the MethodInvocation of the methodCacheInterceptor..
I have Configured the ContextLoaderListener in my web.xml also..
Thanks for any suggestion..
<bean id="redemptionService"
class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="interceptorNames">
<list>
<value>methodCachePointCut</value>
<value>slsbInterceptor</value>
</list>
</property>
<property name="proxyInterfaces" value="com.ftindia.redemption.interfaces.RedemptionManage r">
</property>
<property name="target">
<ref local="RedemptionManagerImpl"/>
</property>
</bean>
<bean id="RedemptionManagerImpl" class="com.ftindia.redemption.interfaces.impl.RedmptionMa nagerImpl">
</bean>
<bean id="slsbInterceptor" class="org.springframework.ejb.access.SimpleRemoteSlsbInv okerInterceptor">
<property name="jndiEnvironment">
<props>
<prop key = "java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
<prop key = "java.naming.provider.url">t3://localhost:7001</prop>
<prop key = "java.naming.factory.url.pkgs">weblogic.jndi.factories:weblogic.corba.j2ee.naming .url</prop>
</props>
</property>
<property name="jndiName" value="Redemption" />
<property name="lookupHomeOnStartup" value="false"/>
<property name="resourceRef" value="true"/>
<!-- <property name="homeInterface" value="com.ftindia.redemption.interfaces.RedemptionManage r" /> -->
</bean>
<bean id="methodCachePointCut" class="org.springframework.aop.support.RegexpMethodPointc utAdvisor" >
<property name="advice">
<ref local="methodCacheInterceptor"/>
</property>
<property name="pattern" value="com.ftindia.redemption.interfaces.RedemptionManage r.getAuthorizeDetailsCache">
</property>
</bean>
<bean id="methodCacheInterceptor" class="com.ftindia.cache.MethodCacheInterceptor">
<property name="cache">
<ref local="methodCache" />
</property>
<property name="beanCount" value="5"></property>
</bean>
<bean id="methodCache" class="org.springframework.cache.ehcache.EhCacheFactoryBe an">
<property name="cacheName" value="droseCache1"></property>
<property name="cacheManager" ref="cacheManager"></property>
</bean>
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFa ctoryBean">
<property name="configLocation" value="/WEB-INF/ehcache.xml"></property>
</bean>
<bean id="listValues" parent="SpringDBAccess" class="com.ftindia.services.ListValues" lazy-init="false">
</bean>
<bean id="SpringDBAccess" class="com.ftindia.db.SpringDBAccess">
<property name="dataSource">
<ref bean="dataSource"/>
</property>
</bean>
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiEnvironment">
<props>
<prop key = "java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
<prop key = "java.naming.provider.url">t3://localhost:7001</prop>
<prop key = "java.naming.factory.url.pkgs">weblogic.jndi.factories:weblogic.corba.j2ee.naming .url</prop>
</props>
</property>
<property name="jndiName">
<value>com.ftindia.dbconnection</value>
</property>
</bean>
I have Configured like this..by setting the target RedemptionManagerImpl..In a scenario where target and proxyInterfaces are not local to this package..I mean when we deploy the war and the Jars differently without packing into the single ear..It is not able to look up the proxyInterfaces or the target ..Do I need to Configure any other way..How to enable the ContextLoading between the war file and the various Jars.. I 'm using the Spring EJB this is not able to load the EJB Context .. Not able to look up the EJB Objects from the applicationContext.xml through the MethodInvocation of the methodCacheInterceptor..
I have Configured the ContextLoaderListener in my web.xml also..
Thanks for any suggestion..