Hi,
I have the following question :
Can I define (using Spring Tx) a transaction where services deployed in different bundles will be involved ?
KR,
Charles Moulliard
SOA Architect
Hi,
I have the following question :
Can I define (using Spring Tx) a transaction where services deployed in different bundles will be involved ?
KR,
Charles Moulliard
SOA Architect
Hi cmoulliard:
Of cource you can, but a pre condition is your TransactionManager is a service, so it is global(one instance).
I had following error when i tried to use @Transactional annotation with osgi-imported transaction manager.
Caused by: java.lang.IllegalAccessException: Class org.springframework.osgi.service.interceptor.OsgiS erviceInvoker cannot access a member of class org.springframework.orm.hibernate3.HibernateTransa ctionManager with modifiers "protected" at sun.reflect.Reflection.ensureMemberAccess(Reflecti on.java:65) at java.lang.reflect.Method.invoke(Method.java:578) at org.springframework.osgi.service.interceptor.OsgiS erviceInvoker.doInvoke( OsgiServiceInvoker.java: 48) at org.springframework.osgi.service.interceptor.OsgiS erviceClassLoaderInvoker.doInvoke (OsgiServiceClassLoaderInvoker.java: 106) at org.springframework.osgi.service.interceptor.OsgiS erviceInvoker.invoke( OsgiServiceInvoker.java: 68) at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed( ReflectiveMethodInvocation.java: 161) at org.springframework.osgi.context.support.LocalBund leContext.invoke (LocalBundleContext.java: 64) at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed( ReflectiveMethodInvocation.java: 161) at org.springframework.aop.framework.Cglib2AopProxy $DynamicAdvisedInterceptor.intercept(Cglib2AopProx y.java:628) ... 54 more
Please start your own thread instead of hijacking others. And use the [ c o d e ] snippets since the stracktrace and your post is unreadable.
Thank you.
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
Please use [ c o d e ] [ / c o d e ] tags
OSGi doesn't change the semantics of your applications. Moreover, everything is inside the same VM so I can't see any reason why this cannot work. Give it a try and see how it goes.
If you encounter any issues, please report back and we'll try to sort things out.
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
Please use [ c o d e ] [ / c o d e ] tags