Alex, Yes exactly as François says. I was trying to find a mail post/stackoverflow question I asked on exactly the same thing but unfortunately I couldn't find it.
On 05/06/18 04:36, Francois Papon wrote:
Hi Alex, I think it's because you are mixing Blueprint and SCR. The @Reference annotation is used by SCR. François Papon [email protected] Open3m - https://www.open3m.io Le 05/06/2018 à 00:13, alex09 a écrit :Hi Kerry, nice examples, I like playing around with this and it's well structured and comprehensible. Just for interest: I realised that it doesn't matter here @Reference(optional = false) private BookServiceDao bookService; what I put in the DAO as optional, all bundles are always ACTIVE, but if I exclude the DAO from the blueprint, the command is (correctly) not recognized in the Karaf console, still the bundle is ACTIVE (in the log, the service is waiting: Command registration delayed for bundle com.javatechnics.jpa.simple-commands/1.0.0.SNAPSHOT. Missing dependencies: [com.javatechnics.jpa.dao.BookServiceDao]) Do you know why optional doesn't work in this case? Where can I address these questions? Thanks! Alex -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
