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