[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-4278) @Create methods on @Startup components are called without a transaction
Sanne Grinovero (JIRA)
jira-events at lists.jboss.org
Tue Jul 7 04:10:51 EDT 2009
[ https://jira.jboss.org/jira/browse/JBSEAM-4278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12475167#action_12475167 ]
Sanne Grinovero commented on JBSEAM-4278:
-----------------------------------------
thank you for the explanation; A bit dangerous, this is not really expected IMHO.
> @Create methods on @Startup components are called without a transaction
> -----------------------------------------------------------------------
>
> Key: JBSEAM-4278
> URL: https://jira.jboss.org/jira/browse/JBSEAM-4278
> Project: Seam
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.2.0.CR1
> Reporter: Sanne Grinovero
> Fix For: 2.2.0.GA
>
>
> Having a component annotated with @Scope(ScopeType.APPLICATION) and @Startup having a @Create method to do something at application startup is called correctly but there is no transaction around the method. (i.e. changes done trough an EntityManager are never applied)
> The transaction is created and committed if the component is a Stateful EJB, but in this case @In injection is not working.
> This breaks for example the Blog example's test as it rebuilds the initial Lucene index using this method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list