Announcement Announcement Module
Collapse
No announcement yet.
Remotely accessible & transaction-aware beans (XA) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Remotely accessible & transaction-aware beans (XA)

    Hi all,

    (Context:: XA transaction through Caucho remoting protocol)

    I have a question regarding the transaction propagation when we use Spring for remoting.

    In fact I would like to use POJOs as service facades (then remotely accessible). For that I need to apply remote behavior on POJOs who are already transaction-enabled, in order to gain access to the distributed transaction.

    Is the transaction context given to those remotely accessible bean ?

    To summarize: Can we imagine decorating a TransactionProxyFactoryBean with a HessianProxyFactoryBean, for example ???

    Many thanks for your help.
    /xavier

  • #2
    Is the transaction context given to those remotely accessible bean ?
    Not out of the box. AFAIK, this is best handled by (gulp) EJB.

    The recent (excellent) Spring book, Pro Spring, indicates that it is possible to add remote transaction support (not sure how yet), but recommends EJB for remote transactions.

    Note that executing a single remote invocation will execute on the server in it's own local transaction. If you can do this, it may greatly simplify your solution.

    Comment

    Working...
    X