{"action":"created","issue":{"url":"https://api.github.com/repos/dropwizard/dropwizard/issues/2110","repository_url":"https://api.github.com/repos/dropwizard/dropwizard","labels_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/2110/labels{/name}","comments_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/2110/comments","events_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/2110/events","html_url":"https://github.com/dropwizard/dropwizard/issues/2110","id":244948867,"number":2110,"title":"post commit action (UnitOfWork)","user":{"login":"yateam","id":3681608,"avatar_url":"https://avatars0.githubusercontent.com/u/3681608?v=4","gravatar_id":"","url":"https://api.github.com/users/yateam","html_url":"https://github.com/yateam","followers_url":"https://api.github.com/users/yateam/followers","following_url":"https://api.github.com/users/yateam/following{/other_user}","gists_url":"https://api.github.com/users/yateam/gists{/gist_id}","starred_url":"https://api.github.com/users/yateam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yateam/subscriptions","organizations_url":"https://api.github.com/users/yateam/orgs","repos_url":"https://api.github.com/users/yateam/repos","events_url":"https://api.github.com/users/yateam/events{/privacy}","received_events_url":"https://api.github.com/users/yateam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-24T00:53:11Z","updated_at":"2017-07-24T19:05:35Z","closed_at":null,"body":"Hello, \r\n\r\nis there any way to schedule some action after `UnitOfWork` commit is done? \r\nFor example, I want to send an email only if a transaction is successful. How would I do it if a Jersey resource is wrapped with `@UnitOfWork`?\r\nI could think of a workaround, where you put events in some sort of an EventBus, and if a request transaction is successful, then those events would execute. But maybe there are better options for Dropwizard?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/dropwizard/dropwizard/issues/comments/317523297","html_url":"https://github.com/dropwizard/dropwizard/issues/2110#issuecomment-317523297","issue_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/2110","id":317523297,"user":{"login":"yateam","id":3681608,"avatar_url":"https://avatars0.githubusercontent.com/u/3681608?v=4","gravatar_id":"","url":"https://api.github.com/users/yateam","html_url":"https://github.com/yateam","followers_url":"https://api.github.com/users/yateam/followers","following_url":"https://api.github.com/users/yateam/following{/other_user}","gists_url":"https://api.github.com/users/yateam/gists{/gist_id}","starred_url":"https://api.github.com/users/yateam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yateam/subscriptions","organizations_url":"https://api.github.com/users/yateam/orgs","repos_url":"https://api.github.com/users/yateam/repos","events_url":"https://api.github.com/users/yateam/events{/privacy}","received_events_url":"https://api.github.com/users/yateam/received_events","type":"User","site_admin":false},"created_at":"2017-07-24T19:05:35Z","updated_at":"2017-07-24T19:05:35Z","body":"Thanks! Yes I know about UnitOfWork proxy.\r\nUnfortunately such workaround could lead to issues described here:\r\nhttps://github.com/dropwizard/dropwizard/issues/1334#issuecomment-235998121\r\n\r\n"}}
{"actor":{"display_login":"yateam"}}