Hello,
Can anyone please advise how to get @PostConstruct invoked in App Engine
(SDK version 1.3.3.1)?
I tried with servlet and JPA/JDO but the conallback method was not
triggered.
Can you please take a look and let me know if I missed something? Thanks.
public class TestServlet extends HttpServlet {
Logger logger = Logger.getLogger(TestServlet.class.getName());
@PostConstruct
private void myPostConstructCallback () {
logger.warning("PostConstruct callback done");
}
...
}
@Entity
public class TestEntity {
@Id
private Long id;
private String value;
@PostConstruct
private void myPostConstructCallback () {
value = "inited";
}
}
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.