wims.tijd
Feb 28th, 2010, 05:53 AM
wrote a @Test for my si:gateway : works fine
now i wanted to use this gateway :
@Resource
CriteriaGateway cg;
@PostConstruct
void postConstruct() {
cg.read();}
at this point : throws MessageDeliveryException,
removed @PostConstruct and now no problem with :
public void onApplicationEvent(ContextRefreshedEvent event) {
postConstruct();
}
how can i postpone any methodcalls until si is ready ?
now i wanted to use this gateway :
@Resource
CriteriaGateway cg;
@PostConstruct
void postConstruct() {
cg.read();}
at this point : throws MessageDeliveryException,
removed @PostConstruct and now no problem with :
public void onApplicationEvent(ContextRefreshedEvent event) {
postConstruct();
}
how can i postpone any methodcalls until si is ready ?