users@glassfish.java.net

_at_PostConstruct never called...

From: <glassfish_at_javadesktop.org>
Date: Mon, 26 Jan 2009 23:17:49 PST

Hi,

by reading and browsing google I found several reasons for the PostConstruct method never called.
Unfortunately I could not solve it.

I created several Beans for testing:
- Stateless session bean
- Stateful session bean
- Message Driven Bean

All of those are never called their PostConstruct method.

I tried to access the beans and all business methods work fine besides the PostConstruct.

By reading the spec I found out that this annotated method should be called after dependency injection has been done even if there is no dependency to be injected.

I tried both but it doesn't work.


I use glassfish v2ur2.


Does anyone know the reason for that?


Best Regards,
Sebastian Mahr
[Message sent by forum member 'smahr' (smahr)]

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