In my properties file, I set:

generate.serviceContext=false

My services now have no serviceContext in the method signature - which is expected. In the spring configuration, however, there was an aop advice being applied that reference the serviceContext so all of my basic unit tests were failing until I manually deleted the advice from the configuration.

Specifically,  get this error:

"org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hsqldbDataSource' defined in class path resource [SessionFactory-test.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#3': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean name 'serviceContextStoreAdvice' in bean reference for bean property 'adviceBeanName'
"

it's specifically in Interceptor.xml :

<aop:advisor advice-ref="serviceContextStoreAdvice" order="2" pointcut- ref="messageConsumer"/>

So I could create a dummy serviceContextStoreAdvice somewhere that does nothing - so that I could just use it as-is - but I think that this is probably a bug.

If I don't have the
generate.serviceContext=false

all of my serviceImpl's will have a ServiceContext ctx in the method signature, correct? I like the functionality it provides, but I dont' like having to the clients of my services have to pass a service context in... is it really necessary or could it just be handled in AOP somehow?

Ryan
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to