Commit befcc946bb1cecf577dcda3e193e45550029231f
1 parent
b5ba0026
Exists in
master
Forçando o erro ContextNotActiveException para os casos de contextos
realmente não ativos.
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/interceptor/TransactionalInterceptor.java
@@ -82,6 +82,7 @@ public class TransactionalInterceptor implements Serializable { | @@ -82,6 +82,7 @@ public class TransactionalInterceptor implements Serializable { | ||
82 | 82 | ||
83 | try { | 83 | try { |
84 | instance = Beans.getReference(TransactionInfo.class); | 84 | instance = Beans.getReference(TransactionInfo.class); |
85 | + instance.getCounter(); | ||
85 | 86 | ||
86 | } catch (ContextNotActiveException cause) { | 87 | } catch (ContextNotActiveException cause) { |
87 | instance = new TransactionInfo() { | 88 | instance = new TransactionInfo() { |