You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/03/14 01:01:24 UTC

[jira] Created: (TAPESTRY-2256) Add simple transaction manager decorator service

Add simple transaction manager decorator service
------------------------------------------------

                 Key: TAPESTRY-2256
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2256
             Project: Tapestry
          Issue Type: New Feature
          Components: tapestry-hibernate
    Affects Versions: 5.0.11
            Reporter: Howard M. Lewis Ship
             Fix For: 5.1


It would be nice to have an annotation, @CommitAfter, that could be placed on a service interface method.

A decorator could recognize methods with such annotations, and use the HibernateSessionManager to commit the transaction after invoking the method.

Currently, you must inject the HSM directly and invoke commit() on it.

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-2256) Add simple transaction manager decorator service

Posted by "Igor Drobiazko (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko updated TAPESTRY-2256:
-------------------------------------

    Attachment: TAPESTRY-2256.patch

Patch fixing the issue

> Add simple transaction manager decorator service
> ------------------------------------------------
>
>                 Key: TAPESTRY-2256
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2256
>             Project: Tapestry
>          Issue Type: New Feature
>          Components: tapestry-hibernate
>    Affects Versions: 5.0.11
>            Reporter: Howard M. Lewis Ship
>             Fix For: 5.1
>
>         Attachments: TAPESTRY-2256.patch
>
>
> It would be nice to have an annotation, @CommitAfter, that could be placed on a service interface method.
> A decorator could recognize methods with such annotations, and use the HibernateSessionManager to commit the transaction after invoking the method.
> Currently, you must inject the HSM directly and invoke commit() on it.

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Assigned: (TAPESTRY-2256) Add simple transaction manager decorator service

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAPESTRY-2256:
----------------------------------------------

    Assignee: Howard M. Lewis Ship

> Add simple transaction manager decorator service
> ------------------------------------------------
>
>                 Key: TAPESTRY-2256
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2256
>             Project: Tapestry
>          Issue Type: New Feature
>          Components: tapestry-hibernate
>    Affects Versions: 5.0.11
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.1
>
>         Attachments: TAPESTRY-2256.patch
>
>
> It would be nice to have an annotation, @CommitAfter, that could be placed on a service interface method.
> A decorator could recognize methods with such annotations, and use the HibernateSessionManager to commit the transaction after invoking the method.
> Currently, you must inject the HSM directly and invoke commit() on it.

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Closed: (TAPESTRY-2256) Provide an annotation to support automatic committing of the transaction after a component or service method invocation

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAPESTRY-2256.
------------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 5.1)
                   5.0.12

Thanks for the patch; I extended it a lot, with docs, more tests, the exception logic and the ability to use the annotation on component methods.  Fun stuff!

> Provide an annotation to support automatic committing of the transaction after a component or service method invocation
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2256
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2256
>             Project: Tapestry
>          Issue Type: New Feature
>          Components: tapestry-hibernate
>    Affects Versions: 5.0.11
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.0.12
>
>         Attachments: TAPESTRY-2256.patch
>
>
> It would be nice to have an annotation, @CommitAfter, that could be placed on a service interface method.
> A decorator could recognize methods with such annotations, and use the HibernateSessionManager to commit the transaction after invoking the method.
> Currently, you must inject the HSM directly and invoke commit() on it.

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-2256) Add simple transaction manager decorator service

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589644#action_12589644 ] 

Howard M. Lewis Ship commented on TAPESTRY-2256:
------------------------------------------------

Good start with the patch.

I'm looking to expand it to support @CommitAfter on component event methods as well.

> Add simple transaction manager decorator service
> ------------------------------------------------
>
>                 Key: TAPESTRY-2256
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2256
>             Project: Tapestry
>          Issue Type: New Feature
>          Components: tapestry-hibernate
>    Affects Versions: 5.0.11
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.1
>
>         Attachments: TAPESTRY-2256.patch
>
>
> It would be nice to have an annotation, @CommitAfter, that could be placed on a service interface method.
> A decorator could recognize methods with such annotations, and use the HibernateSessionManager to commit the transaction after invoking the method.
> Currently, you must inject the HSM directly and invoke commit() on it.

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-2256) Provide an annotation to support automatic committing of the transaction after a component or service method invocation

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-2256:
-------------------------------------------

    Summary: Provide an annotation to support automatic committing of the transaction after a component or service method invocation  (was: Add simple transaction manager decorator service)

> Provide an annotation to support automatic committing of the transaction after a component or service method invocation
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2256
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2256
>             Project: Tapestry
>          Issue Type: New Feature
>          Components: tapestry-hibernate
>    Affects Versions: 5.0.11
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.1
>
>         Attachments: TAPESTRY-2256.patch
>
>
> It would be nice to have an annotation, @CommitAfter, that could be placed on a service interface method.
> A decorator could recognize methods with such annotations, and use the HibernateSessionManager to commit the transaction after invoking the method.
> Currently, you must inject the HSM directly and invoke commit() on it.

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-2256) Provide an annotation to support automatic committing of the transaction after a component or service method invocation

Posted by "Igor Drobiazko (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589723#action_12589723 ] 

Igor Drobiazko commented on TAPESTRY-2256:
------------------------------------------

Great! I'm glad you found it helpful.

> Provide an annotation to support automatic committing of the transaction after a component or service method invocation
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2256
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2256
>             Project: Tapestry
>          Issue Type: New Feature
>          Components: tapestry-hibernate
>    Affects Versions: 5.0.11
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.0.12
>
>         Attachments: TAPESTRY-2256.patch
>
>
> It would be nice to have an annotation, @CommitAfter, that could be placed on a service interface method.
> A decorator could recognize methods with such annotations, and use the HibernateSessionManager to commit the transaction after invoking the method.
> Currently, you must inject the HSM directly and invoke commit() on it.

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org