You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "gengshaoguang (JIRA)" <tu...@ws.apache.org> on 2007/09/24 07:02:51 UTC

[jira] Created: (TUSCANY-1803) expections to Amita's Transaction picture

expections to Amita's Transaction picture
-----------------------------------------

                 Key: TUSCANY-1803
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1803
             Project: Tuscany
          Issue Type: Improvement
          Components: Java SCA Java Implementation Extension
    Affects Versions: Java-SCA-Next
            Reporter: gengshaoguang




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1803) expections to Amita's Transaction picture

Posted by "gengshaoguang (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529794 ] 

gengshaoguang commented on TUSCANY-1803:
----------------------------------------

Thanks Amita:

I will try my best.

I would like to vote on the DataSourceTM, because with DAS in fact, we controll the DataSource/Connection by our self (by the caller object). I think what we expect is the container managed TM.

The DASTM will actually paly like what you mentioned in your picture. If there is no change to the DAS itself.

Since we have proxy for any component inside Tuscany, why not use it for our goal?

::Let the proxy begin the transaction(at top of the invoke), intercept exceptions out from those components it refer, and roll back the transaction. If no exception occured, the proxy (at top) will commit the transaction.

During this process, any nested component/proxy should judge itself wether it is inside a parent transaction, if it dose, it should not start its own transaction.



> expections to Amita's Transaction picture
> -----------------------------------------
>
>                 Key: TUSCANY-1803
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1803
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Java Implementation Extension
>    Affects Versions: Java-SCA-Next
>            Reporter: gengshaoguang
>         Attachments: local_transaction.png
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1803) expections to Amita's Transaction picture

Posted by "gengshaoguang (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

gengshaoguang updated TUSCANY-1803:
-----------------------------------

    Attachment: local_transaction_rollback.jpg
                local_transaction_commit.jpg

Sequence of my suggested container managed transaction (local only).

The proxy at top of the invocation handles every thing.

> expections to Amita's Transaction picture
> -----------------------------------------
>
>                 Key: TUSCANY-1803
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1803
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Java Implementation Extension
>    Affects Versions: Java-SCA-Next
>            Reporter: gengshaoguang
>         Attachments: local_transaction.png, local_transaction_commit.jpg, local_transaction_rollback.jpg
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1803) expections to Amita's Transaction picture

Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530694 ] 

Amita Vadhavkar commented on TUSCANY-1803:
------------------------------------------

Hi, I am not able to get a valid zip from the java.zip attachment, also the file size appears too small compared to the
diff.txt, will you please attach the zip again?

> expections to Amita's Transaction picture
> -----------------------------------------
>
>                 Key: TUSCANY-1803
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1803
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Java Implementation Extension
>    Affects Versions: Java-SCA-Next
>            Reporter: gengshaoguang
>         Attachments: diff.txt, java.zip, local_transaction.png, local_transaction_commit.jpg, local_transaction_rollback.jpg, localtransaction-updated.png
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1803) expections to Amita's Transaction picture

Posted by "gengshaoguang (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530075 ] 

gengshaoguang commented on TUSCANY-1803:
----------------------------------------

My transaction management is at a "very low level", it means any component inside a transaction could get and use the java.sql.Connection instance directly (through the static method TransactionInfo.getConnection).

But infact, programmer is likely using high level presisience technologies such as JPA or Hibernate. All of them could get supported (extended) on the basis of my design.

> expections to Amita's Transaction picture
> -----------------------------------------
>
>                 Key: TUSCANY-1803
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1803
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Java Implementation Extension
>    Affects Versions: Java-SCA-Next
>            Reporter: gengshaoguang
>         Attachments: diff.txt, java.zip, local_transaction.png, local_transaction_commit.jpg, local_transaction_rollback.jpg, localtransaction-updated.png
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1803) expections to Amita's Transaction picture

Posted by "gengshaoguang (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

gengshaoguang updated TUSCANY-1803:
-----------------------------------

    Attachment: java.zip
                diff.txt
                localtransaction-updated.png

Hi Amita and every one:

I would like contribute 3 java and a modification on the JavaImplementationInvoker.java

These are my initial design for the on fly Tuscany's local transaction management.

I wish they could be favored to add to your picture.

There are comments inside the java files, they explain things in detail.



> expections to Amita's Transaction picture
> -----------------------------------------
>
>                 Key: TUSCANY-1803
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1803
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Java Implementation Extension
>    Affects Versions: Java-SCA-Next
>            Reporter: gengshaoguang
>         Attachments: diff.txt, java.zip, local_transaction.png, local_transaction_commit.jpg, local_transaction_rollback.jpg, localtransaction-updated.png
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1803) expections to Amita's Transaction picture

Posted by "gengshaoguang (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531224 ] 

gengshaoguang commented on TUSCANY-1803:
----------------------------------------

I'm sorry Amita,

Please refer to 

https://issues.apache.org/jira/browse/TUSCANY-1816

zip file here was my mistake, it is 7-Zip format, I missed a parameter when I run the compress.



> expections to Amita's Transaction picture
> -----------------------------------------
>
>                 Key: TUSCANY-1803
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1803
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Java Implementation Extension
>    Affects Versions: Java-SCA-Next
>            Reporter: gengshaoguang
>         Attachments: diff.txt, java.zip, local_transaction.png, local_transaction_commit.jpg, local_transaction_rollback.jpg, localtransaction-updated.png
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1803) expections to Amita's Transaction picture

Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529785 ] 

Amita Vadhavkar commented on TUSCANY-1803:
------------------------------------------

this looks great. Will you please elaborate a bit about the difference in roles of DataSourceTM and DASTM? Also, it is really helpful if you can contribute to this.
May be you can ML this JIRA link to tuscany-user+dev and get the feedback from people.

Regards,
Amita

> expections to Amita's Transaction picture
> -----------------------------------------
>
>                 Key: TUSCANY-1803
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1803
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Java Implementation Extension
>    Affects Versions: Java-SCA-Next
>            Reporter: gengshaoguang
>         Attachments: local_transaction.png
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1803) expections to Amita's Transaction picture

Posted by "gengshaoguang (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

gengshaoguang updated TUSCANY-1803:
-----------------------------------

    Attachment: local_transaction.png

Hi,Amita

My suggestion is brife, I just want to show a point that we could give a transaction support in the porxy (since all the sca component is proxied).

> expections to Amita's Transaction picture
> -----------------------------------------
>
>                 Key: TUSCANY-1803
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1803
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Java Implementation Extension
>    Affects Versions: Java-SCA-Next
>            Reporter: gengshaoguang
>         Attachments: local_transaction.png
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Assigned: (TUSCANY-1803) expections to Amita's Transaction picture

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng reassigned TUSCANY-1803:
-------------------------------------

    Assignee: Raymond Feng

> expections to Amita's Transaction picture
> -----------------------------------------
>
>                 Key: TUSCANY-1803
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1803
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Java Implementation Extension
>    Affects Versions: Java-SCA-Next
>            Reporter: gengshaoguang
>            Assignee: Raymond Feng
>             Fix For: Java-SCA-Next
>
>         Attachments: diff.txt, java.zip, local_transaction.png, local_transaction_commit.jpg, local_transaction_rollback.jpg, localtransaction-updated.png
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org