Hi Steinar, it's a web bundle right? In that case it's a bit more tricky. If you'd mix in Pax CDI this could be a possible solution. An Example on how to mix in Services with CDI is available at [1]. Now, which versions are you using right now?
regards, Achim [1] - https://github.com/jgoodyear/ApacheKarafCookbook/tree/master/chapter4/chapter4-recipe10/chapter4-recipe10-web 2016-08-22 17:10 GMT+02:00 Steinar Bang <[email protected]>: > I now have a PAX Web application running with a primefaces GUI and mock > data in the beans: > https://github.com/steinarb/ukelonn/tree/using-primefaces/ukelonn.bundle > https://github.com/steinarb/ukelonn/blob/using-primefaces/ > ukelonn.bundle/src/main/webapp/ukelonn.xhtml > https://github.com/steinarb/ukelonn/blob/using-primefaces/ > ukelonn.bundle/src/main/java/no/priv/bang/ukelonn/impl/ > UkelonnController.java > > The next step is to populate the bean(s) using JDBC and save changes > using JDBC. > > My question is: what is the simplest/best way to get a PAX JDBC service > into the UkelonnController bean? > > Thanks! > > -- > -- > ------------------ > OPS4J - http://www.ops4j.org - [email protected] > > --- > You received this message because you are subscribed to the Google Groups > "OPS4J" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master -- -- ------------------ OPS4J - http://www.ops4j.org - [email protected] --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
