Results 1 to 5 of 5

Thread: Transaction between several bundles ?

Hybrid View

  1. #1

    Default Transaction between several bundles ?

    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

  2. #2
    Join Date
    Nov 2008
    Posts
    29

    Default

    Hi cmoulliard:

    Of cource you can, but a pre condition is your TransactionManager is a service, so it is global(one instance).

  3. #3
    Join Date
    Nov 2008
    Posts
    11

    Unhappy problem with transactions within osgi invornment

    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

  4. #4
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    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

  5. #5
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •