[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 9 04:32:23 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBAS-7236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12484897#action_12484897 ] 

Gregory Mostizky commented on JBAS-7236:
----------------------------------------

There is slightly similar bug here: https://jira.jboss.org/jira/browse/EJBTHREE-1068

However it is for older JBoss line (4.2.X) and the scenario is different so I opened a new one instead of commenting previous one.

> @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