tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Masini (JIRA)" <>
Subject [jira] [Commented] (TOMEE-1013) ContextNotActiveException using TomEE embedded into Arquillian
Date Thu, 08 Aug 2013 19:02:47 GMT


Luca Masini commented on TOMEE-1013:

Yes, it works both with GF and JBoss, and it's very useful.

I cannot imagine a good way to integrate SessionScoped beans without such a feature, so because
I don't want to switch to none of those two container for my IT, do you have any suggestion
on how can I simulate it with the embedded container ??? The remote one is still far slower
in startup time and I love TomEE in my development lifecycle because of the very very fast

Can I change this from issue to enhancement ?? :)

> ContextNotActiveException using TomEE embedded into Arquillian
> --------------------------------------------------------------
>                 Key: TOMEE-1013
>                 URL:
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Arquillian Adapters
>    Affects Versions: 1.5.2
>         Environment: Mac OS, Java 1.7.0_10
>            Reporter: Luca Masini
>         Attachments:,
> You cannot use a transactional event listener from a Stateful EJB to a business method
of the same bean:
> @Stateful
> public class MySFEJB {
> ....
>     public void sender() {
> Payload());
>     }
>     public void receiver(@Observes(during = TransactionPhase.AFTER_SUCCESS) Payload payload)
> // code omitted
>     }
> into the log you can read:
> INFO: Cannot send event to bean in non-active context : [ExtendedEntityManagerService,
Name:null, WebBeans Type:ENTERPRISE, API Types:[,java.lang.Object,],
> then inside the container this Exception is raised (
>             throw new ContextNotActiveException("WebBeans context with scope type annotation
>                                                 + scopeType.getSimpleName() + " does
not exist within current thread");
> Everything works fine using the same code inside TomEE as a normal container and not
for Integration Tests.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message