Hi Kim, I second JB on this though I think there are bit more possibilities :-) and as usual "it depends" on your use-case :D
2014-12-05 8:32 GMT+01:00 Jean-Baptiste Onofré <[email protected]>: > Hi Kim, > > - Dependency Injection: Blueprint or CDI > +1 > - Service: Blueprint or DS > +1 > - Security: Karaf security framework + Syncope + CXF STS > +1, standard JAAS will work for you if you use a WAB (Web Application Bundle / aka WAR + OSGi-Manifest) > - REST: CXF-RS > +1, any Restframework that uses a Servlet can be used. it's also possible to let CDI (Pax CDI in that case) do the injection of OSGi services into Servlets. Regards, Achim > ... > > is it what you mean ? ;) > > If so, it's plan in the developer guide improvements (we have a Jira about > that). > > Regards > JB > > On 12/05/2014 08:26 AM, Kim Hansen wrote: > >> Hi! >> >> I'm fairly new to Karaf and it would be really awesome if someone really >> deep into Karaf and/or OSGi could suggest what frameworks and APIs to >> use with Karaf 4 to create applications with the following technologies >> (and not use Spring at all): >> >> - Dependency Injection (Blueprint or J2EE) >> - Security (LDAP, Shiro, OAuth, OpenID, ...) >> - REST (Jetty, Geronimo, ...) >> - ... >> >> Den 05/12/2014 00.11 skrev "Jean-Baptiste Onofré" <[email protected] >> <mailto:[email protected]>>: >> >> Hi, >> >> Spring clearly announced that they don't support OSGi anymore. >> >> Even if Spring is supported by Karaf (which is a good point to >> support non OSGi applications using Spring), I would not recommend >> to start a project using Spring. >> Starting with native OSGi stuff is better (like Blueprint which is >> actually close to Spring, SCR/DS, etc). >> >> Regards >> JB >> >> On 12/04/2014 11:29 PM, asookazian2 wrote: >> >> We have some legacy J2EE apps that we've ported (finally) to >> Karaf 3.0.x >> which use Spring. Mainly for dependency injection and possibly >> some >> templates (e.g. JdbcTemplate, etc.) and AOP. >> >> Anyways, looks like there are no Spring (or Spring dm?) examples >> here: >> https://github.com/cschneider/__Karaf-Tutorial >> <https://github.com/cschneider/Karaf-Tutorial> and there are no >> Spring >> examples in the Apache Karaf Cookbook. >> >> Is Spring usage with OSGi/Karaf recommended or not? If yes, >> where can I >> find some examples? >> >> "I stopped using spring on OSGi a long time ago." >> >> http://stackoverflow.com/__questions/24595900/invalid-__ >> bundle-when-starting-apache-__karaf >> <http://stackoverflow.com/questions/24595900/invalid- >> bundle-when-starting-apache-karaf> >> >> >> >> -- >> View this message in context: >> http://karaf.922171.n3.nabble.__com/Using-Spring-with-Karaf- >> 3-__x-tp4036977.html >> <http://karaf.922171.n3.nabble.com/Using-Spring-with- >> Karaf-3-x-tp4036977.html> >> Sent from the Karaf - User mailing list archive at Nabble.com. >> >> >> -- >> Jean-Baptiste Onofré >> [email protected] <mailto:[email protected]> >> http://blog.nanthrax.net >> Talend - http://www.talend.com >> >> > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com > -- 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
