Return-Path: X-Original-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72478E4D7 for ; Mon, 7 Jan 2013 15:21:22 +0000 (UTC) Received: (qmail 71637 invoked by uid 500); 7 Jan 2013 15:21:22 -0000 Delivered-To: apmail-incubator-deltaspike-dev-archive@incubator.apache.org Received: (qmail 71488 invoked by uid 500); 7 Jan 2013 15:21:21 -0000 Mailing-List: contact deltaspike-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltaspike-dev@incubator.apache.org Delivered-To: mailing list deltaspike-dev@incubator.apache.org Delivered-To: moderator for deltaspike-dev@incubator.apache.org Received: (qmail 16265 invoked by uid 99); 7 Jan 2013 15:03:53 -0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of titou10.titou10@gmail.com designates 209.85.160.178 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Hy8ZiATRhMTeJoHRKuGIgBsOKgWWa8oonPwjrMsUKTU=; b=M+miGZJsAuo3iNwky3NPMA9vxopljnrtn9zVccUiAC0wzslgwNGDkltOP/iTi9rOUv 7coNYRdRzz/oCkGn0eZEsmrGwyfX+ioZlUoWSeZwaDlu73nSv4sXOm9p21+UfTJIPrjY RpK8B2oh+0TEjlZ220OONyqEGVmmHAOYTZJ5Ftxw8d0t+Qn1hx6Q4Gz8/A2lTOGOJcR7 cigYXVatkH4siGhg9LbPnpxfN+WwpTrzpaXkJucGlPudTf+fjSlmQ8FbGGKpBrbisJ3l /bSQTpp8KFSCAttJeZFGov27qlYCzDaSMQNH501i5bCm+p8FMO4Z4VLKjv+ULq77uj9S Kv9Q== MIME-Version: 1.0 Date: Mon, 7 Jan 2013 10:03:24 -0500 Message-ID: Subject: @Transactional usage : how to rollback and equivalent of EJB @TransactionAttribute ? From: titou10 titou10 To: deltaspike-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, When a method is annotated with @Transactional, what is the best way to provoke a rollbak of the transaction? Also are their conditions that will automatically provoke a rollback ? (like throwing a RuntimeException) Also is the an equivalent to the EJB @TransactionAttribute annotation? I didn't find anything on this in the DS nor in CODI docs thx