wsit
  1. wsit
  2. WSIT-526

flow WS-AT transaction from application client

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: not determined
    • Component/s: transaction
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      526

      Description

      Let me explain with a scenario:
      a j2se application is running on machie 1.
      a glassfish installation with WSIT enabled is running in m2 and it has two web
      services one for sending jms messages and the other one for inserting record
      into database, these web services uses Servlet endpoint (no EJB stuff)

      j2se application need to call this two web services in context of one transaction.
      if jms operation failed in its web service then database operation should
      rollbak or vice-versa.

      I think it is a common condition and many developers will face this kind of
      scenario.

        Activity

        Hide
        jfialli added a comment -

        Rewording of request so it can be considered as a future enhancement.

        Enable WS-AT transactions to work from a Java EE application client.

        Glassfish v2 allows the creation of javax.transaction.UserTransaction
        in an application client container. There is no way to create a UserTransaction
        from a j2se client, the implementation of UserTransaction is in appserv-rt.jar,
        which is only available to a Java EE application client (using Glassfish v2
        appclient script file that configures correct CLASSPATH and is used to run the
        application client.)

        Currently, WS-TX in WSIT 1.0 is not able to flow User transaction context
        as a WS-AT txn. When a transacted web service operation (enabled by
        wsat:ATAssertion policy assertion) is invoked from an application client
        in the context of a usertransaction, a warning is recorded in event log to
        inform user that WS-AT transaction context propagation is not supported by
        this container. WS-AT txn propagation is only supported from web and ejb tier in
        Glassfish v2 for WSIT 1.0.

        Show
        jfialli added a comment - Rewording of request so it can be considered as a future enhancement. Enable WS-AT transactions to work from a Java EE application client. Glassfish v2 allows the creation of javax.transaction.UserTransaction in an application client container. There is no way to create a UserTransaction from a j2se client, the implementation of UserTransaction is in appserv-rt.jar, which is only available to a Java EE application client (using Glassfish v2 appclient script file that configures correct CLASSPATH and is used to run the application client.) Currently, WS-TX in WSIT 1.0 is not able to flow User transaction context as a WS-AT txn. When a transacted web service operation (enabled by wsat:ATAssertion policy assertion) is invoked from an application client in the context of a usertransaction, a warning is recorded in event log to inform user that WS-AT transaction context propagation is not supported by this container. WS-AT txn propagation is only supported from web and ejb tier in Glassfish v2 for WSIT 1.0.
        Hide
        jfialli added a comment -

        change subject to description that can be implemented in future.

        Can not support JTA transactions from a standalone j2se client, only from an
        GF v9.1 or higher application client.

        Show
        jfialli added a comment - change subject to description that can be implemented in future. Can not support JTA transactions from a standalone j2se client, only from an GF v9.1 or higher application client.

          People

          • Assignee:
            arjavdesai
            Reporter:
            legolas_w
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: