Hi @DependsOn only works for javax.ejb.Singleton - not CDI beans, which includes producers (you can't do a javax.ejb.Singleton with a producer.
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-06-22 11:25 GMT+02:00 tonywestonuk <[email protected]>: > I want to run a postcontruct on a singleton when all other singletons have > been initalised. > > One of those singletons are made using a @producer > > @Produces > @Singleton > public Sql2o getSql2o(){ > ... > } > > > I tried using @dependsOn({"Sql2o"}) - this doesn't work. What am I doing > wrong? > > Thanks. > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/DependsOn-a-producer-tp4678996.html > Sent from the TomEE Users mailing list archive at Nabble.com. >
