i am new to spring...trying to take advantage of the framework. i am working on a portal project ..right now wanted to apply logging/tracing/exceptions aspect(s) for all of the below components and...
Type: Posts; User: aravindbv; Keyword(s):
i am new to spring...trying to take advantage of the framework. i am working on a portal project ..right now wanted to apply logging/tracing/exceptions aspect(s) for all of the below components and...
thanks for the reply...will there be performance hit if i use BeanNameAutoProxyCreator with <property name="proxyTargetClass" value="true" />..or do i need to define interfaces for all classes that...
thanks that works..if i give * for beanNames values then i get exception as below...If i give Add*, it works fine without interface...
<bean id="loggingProxy"
...
it works fine if i have an interface...i have existing project which has developed classes...so i wanted to use BeanNameAutoProxyCreator so that i dont need to define interfaces for all these...
I am trying a simple logging interceptor for a bean which extends HibernateDaoSupport..When i try to do getBean and cast it to my bean, i get java.lang.ClassCastException: $Proxy4..
if i remove...
using spring 1.2.8 and cglib-nodep-2.1
myDAO extends org.springframework.orm.hibernate.support.HibernateDaoSupport..
if i remove extends then everything is working fine.do i need to use...
hi,
i am trying a simple logging interceptor...below is my spring config...when i get the context and try to get my bean, i get
java.lang.ClassCastException: $Proxy63
..
when i System .out...
thanks very much for the information..will try out the class loader policy..
looks like its log4 configuration thing...is there any way that we can configure these built in interceptors to use certain log4j.xml file instead of reading from different location...i am not able...
is there any way that we can configure these built in interceptors to use certain log4j.xml file instead of reading from different location...i am still not able to locate why or where its reading...
thanks....now i am getting output if i run from command prompt...will try to fix in IDE also...thanks much for the support...appreciate it
i tried running from command prompt but still no luck..below is my classpath and output results if i run from command prompt..using websphere application server jvm 1.5.0_06-b05...
...
below is the class where i am running the app
public class SpringMain
{
public static void main(String[] args)
{
ClassPathXmlApplicationContext appContext = new...
it was not there and i added it..still no luck...if i add my own interceptor, i get debug statements fine..not sure if its something to do with Rational application developer or classpath...i have...
thanks for the reply...my curren log4j.xml has the tag...i have logj-1.2.9.jar and log4j.xml in classpath...do i need to do anything more to view debug messages in console
<?xml version="1.0"...
Hi,
i am trying to apply interceptors from spring framework like simpletraceinterceptor or PerformanceMonitorInterceptor and not getting any output statements in console or logs..if i use my own...
Hi,
i am trying to apply interceptors from spring framework like simpletraceinterceptor or PerformanceMonitorInterceptor and not getting any output statements in console or logs..if i use my own...
Hi,
i am new to spring...trying to take advantage of the framework. i am working on a portal project with..righ now wanted to apply logging/tracing aspect for all of the below components and...
Thanks for the reply...i think i still did not understand or got reply for question 1)...
1) my java objects do not have interfaces.do i need to create interfaces to all of my java objects to use...
Hi,
I am new to spring..implementing logging aspect...i have couple of questions
1) my java objects do not have interfaces.do i need to create interfaces to all of my java objects to use...