users@glassfish.java.net

_at_PostConstruct is not working

From: <glassfish_at_javadesktop.org>
Date: Tue, 02 Dec 2008 06:56:12 PST

Hello,

I use glassfishv2ur2, and I'd like to use @PostConstruct on a SLSB method:

@Stateless
public class ServiceBean implements Service {
    @PostConstruct
    private void onCreate()
    {
        ....
    }
}

onCreate() is never called and no error is logged.
The EJB is in an ejb-module inside an EAR.

What else should I do to get it to work?

Thanks:
Norbi
[Message sent by forum member 'snorbicet' (snorbicet)]

http://forums.java.net/jive/thread.jspa?messageID=319560