Page 1 of 1
Service Merge not reflecting
Posted: Wed Sep 26, 2012 7:06 am
by ganu98
I have extended one of the service. But the new change is not reflecting. Even my break points are not stopping at these lines in eclipse. Please help
package com.mycompany.test;
...
public class MyCatalog extends CatalogServiceImpl {
@Override
public Product findProductById(Long productId) {
System.out.println("Test override");//This line is not printing on console
return super.findProductById(productId);
}
}
<bean id="blCatalogService" class="com.mycompany.test.MyCatalog"/>
Re: Service Merge not reflecting
Posted: Thu Oct 04, 2012 3:25 pm
by phillipuniverse
In which XML file did you declare the <bean id="blCatalogService" class="com.mycompany.test.MyCatalog" />? Can you verify that the applicationContext that you declared it in is being referenced in the patchConfigLocations in your web.xml?
Re: Service Merge not reflecting
Posted: Fri Oct 05, 2012 12:56 am
by ganu98
yes i have the config in web.xml. When i debug using eclipse and connect to port 8001 the debugger is not stopping at break ponits. After deplopyment i browsed category&category product from admin screen. Do i need to configure anything like blMergedServiceContexts
<context-param>
<param-name>patchConfigLocation</param-name>
<param-value>
.....
...
/WEB-INF/applicationContext-admin.xml
</param-value>
</context-param>
applicationContext-admin.xml
============================
<bean id="blCatalogService" class="com.mycompany.test.MyCatalog"/>
Re: Service Merge not reflecting
Posted: Tue Oct 16, 2012 10:25 am
by ganu98
Hi Team
I am very happy to let you know that "Overriding is working ". I have added below lines in my build .xml
<target name="jetty-demo" depends="start-db">
<delete dir="war/WEB-INF/lib"/>
<artifact:mvn mavenHome="${maven.home}" fork="true">
<jvmarg value="-javaagent:../lib/broadleaf-instrument-2.0.1-GA.jar" />
<jvmarg value="-XX:MaxPermSize=256M" />