[jboss-jira] [JBoss JIRA] Commented: (JBAS-7236) @PostConstruct is never called for @Service beans
Gregory Mostizky (JIRA)
jira-events at lists.jboss.org
Wed Sep 16 08:19:23 EDT 2009
[ https://jira.jboss.org/jira/browse/JBAS-7236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12486068#action_12486068 ]
Gregory Mostizky commented on JBAS-7236:
----------------------------------------
Unfortunately the workaround I posted above doesn't work fully - the method is indeed called - however it is called before the @Service bean is injected with properties (such as @EJB reference) so it's not always helpful.
> @PostConstruct is never called for @Service beans
> -------------------------------------------------
>
> Key: JBAS-7236
> URL: https://jira.jboss.org/jira/browse/JBAS-7236
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: EJB3
> Affects Versions: JBossAS-5.1.0.GA
> Environment: JBoss 5.1.0 GA running of Fedora Core 11
> Reporter: Gregory Mostizky
> Assignee: Carlo de Wolf
>
> I have a @Service bean which defines initialization method and that method is marked with @PostConstruct.
> This method is never called by JBoss, not when the bean is first created and not when it is accessed.
> Same issue happens when testing with embedded jboss (beta3.sp9)
--
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 jboss-jira
mailing list