Re: Broken Dev Guide
bump -- View this message in context: http://karaf.922171.n3.nabble.com/Broken-Dev-Guide-tp4033621p4033840.html Sent from the Karaf - Dev mailing list archive at Nabble.com.
Re: Broken Dev Guide
In progress ;) On 06/27/2014 02:39 PM, bane73 wrote: bump -- View this message in context: http://karaf.922171.n3.nabble.com/Broken-Dev-Guide-tp4033621p4033840.html Sent from the Karaf - Dev mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: Broken Dev Guide
Oh sorry. I'd misunderstood your last post. :) -- Typed with thumbs and sent with love from Boomerang -- View this message in context: http://karaf.922171.n3.nabble.com/Broken-Dev-Guide-tp4033621p4033846.html Sent from the Karaf - Dev mailing list archive at Nabble.com.
Re: Broken Dev Guide
JB, Thanks! I look forward to seeing the new docs and hearing any input you could give me on how to move forward. One possibly easy thing that could help me a lot is if someone knew of 1 or more recent projects that could show me this community's standard approach to: * JDBC (ie: library to help with the JDBC-nonsense) * JNDI (ditto) * CDI * Timer-based tasks (ie: Quartz?) * The best practice of a well-designed OSGI/Karaf app (not web) in terms of getting it bootstrapped and wired-up to the above things. As I said, I'm a Spring-Web guy really. But I took a new position at the university with the systems team so am busy trying to learn new patterns. I tried SpringBoot, and it was going well enough, but at the end of the day the app was about 1/12th complete and was already feeling complicated. If anyone knows of projects like that, I would really appreciate links. Anyways, I'm hopeful to learn Karaf and I appreciate any help. I just bought Learning Karaf after reading about it on your blog -- looking forward to reading that. -- View this message in context: http://karaf.922171.n3.nabble.com/Broken-Dev-Guide-tp4033621p4033638.html Sent from the Karaf - Dev mailing list archive at Nabble.com.
Broken Dev Guide
Hi! I'm an OSGI newb trying to learn Karaf for a Spring app I've written at work that seems to be getting overly complex and would be best served modularizing it. Seems modern Spring is not a good fit, so I'm looking to re-plumb. My first task is to convert my Spring-JDBC/Dao layer, after which is to do my Spring-JNDI layer, and finally my Service layer (which is a standard non-web app that runs on a recurring Timer). The User Dev guides so far appear to be helpful, however a few sections I need appear to be missing? * Blueprint and CDI sections have links, but get 404 * There doesn't appear to be corresponding entries in the Dev Guide for how to use the JDBC JNDI services once installed into the Karaf environment? Any guidance/tips would be appreciated. I don't know anything about Blueprint, and event not much on CDI -- been traditionally a Spring-Web guy. But I'm hoping to develop an entire system around OSGI. Here's a summary of what the system currently does (it's an old embedded-perl system that I'm re-architecting): * about a dozen perl-scripts that run as CRON-jobs every x-minutes - each polls a different table in the database looking for work - when work arrives, each of them is responsible for updating a different service (various LDAPs, ADs, email servers, etc) * a web-app that interacts with the database to allow admins an easy way to submit the work (I'll be doing this piece later on; the immediate need is to replicate the cron-job scripts in a java ecosphere). I want to stick with this general approach because I think it's pretty good. But packaging it into a monolithic spring app is getting overwhelming. -- View this message in context: http://karaf.922171.n3.nabble.com/Broken-Dev-Guide-tp4033621.html Sent from the Karaf - Dev mailing list archive at Nabble.com.
Re: Broken Dev Guide
JDBC works easily by using reference interface=javax.sql.DataSource filter=(osgi.jndi.service.name=foo/bar) id=datasource/ where foo/bar is the JNDI path. This would be in a Blueprint file. http://aries.apache.org/modules/jndiproject.html http://karaf.apache.org/manual/latest/users-guide/cdi.html Which version are you looking at the docs for? Those pages all work for me. On 18 June 2014 15:15, bane73 bran...@thegreshams.net wrote: Hi! I'm an OSGI newb trying to learn Karaf for a Spring app I've written at work that seems to be getting overly complex and would be best served modularizing it. Seems modern Spring is not a good fit, so I'm looking to re-plumb. My first task is to convert my Spring-JDBC/Dao layer, after which is to do my Spring-JNDI layer, and finally my Service layer (which is a standard non-web app that runs on a recurring Timer). The User Dev guides so far appear to be helpful, however a few sections I need appear to be missing? * Blueprint and CDI sections have links, but get 404 * There doesn't appear to be corresponding entries in the Dev Guide for how to use the JDBC JNDI services once installed into the Karaf environment? Any guidance/tips would be appreciated. I don't know anything about Blueprint, and event not much on CDI -- been traditionally a Spring-Web guy. But I'm hoping to develop an entire system around OSGI. Here's a summary of what the system currently does (it's an old embedded-perl system that I'm re-architecting): * about a dozen perl-scripts that run as CRON-jobs every x-minutes - each polls a different table in the database looking for work - when work arrives, each of them is responsible for updating a different service (various LDAPs, ADs, email servers, etc) * a web-app that interacts with the database to allow admins an easy way to submit the work (I'll be doing this piece later on; the immediate need is to replicate the cron-job scripts in a java ecosphere). I want to stick with this general approach because I think it's pretty good. But packaging it into a monolithic spring app is getting overwhelming. -- View this message in context: http://karaf.922171.n3.nabble.com/Broken-Dev-Guide-tp4033621.html Sent from the Karaf - Dev mailing list archive at Nabble.com. -- Matt Sicker boa...@gmail.com
Re: Broken Dev Guide
Matt Sicker wrote JDBC works easily by using reference interface=javax.sql.DataSource filter=(osgi.jndi.service.name=foo/bar) id=datasource/ where foo/bar is the JNDI path. This would be in a Blueprint file. http://aries.apache.org/modules/jndiproject.html Very helpful, thank you! Haven't worked with either of those, not sure how to go about it, so I appreciate the pointer. http://karaf.apache.org/manual/latest/users-guide/cdi.html Which version are you looking at the docs for? Those pages all work for me. Yes, those sections in the User's Guide work for me as well. It's the ones in the Dev's Guide that aren't reachable: http://karaf.apache.org/manual/latest/developers-guide/services.html http://karaf.apache.org/manual/latest/developers-guide/blueprint.html http://karaf.apache.org/manual/latest/developers-guide/cdi.html -- View this message in context: http://karaf.922171.n3.nabble.com/Broken-Dev-Guide-tp4033621p4033623.html Sent from the Karaf - Dev mailing list archive at Nabble.com.
Re: Broken Dev Guide
Hi, I completely refactored the user guide for the 3.0.0 release. For the dev guide, I waited for some new examples/samples in the distribution. I will push both. Regarding your other questions, I will get back to you later (I'm just waking up ;)). Regards JB On 06/18/2014 10:15 PM, bane73 wrote: Hi! I'm an OSGI newb trying to learn Karaf for a Spring app I've written at work that seems to be getting overly complex and would be best served modularizing it. Seems modern Spring is not a good fit, so I'm looking to re-plumb. My first task is to convert my Spring-JDBC/Dao layer, after which is to do my Spring-JNDI layer, and finally my Service layer (which is a standard non-web app that runs on a recurring Timer). The User Dev guides so far appear to be helpful, however a few sections I need appear to be missing? * Blueprint and CDI sections have links, but get 404 * There doesn't appear to be corresponding entries in the Dev Guide for how to use the JDBC JNDI services once installed into the Karaf environment? Any guidance/tips would be appreciated. I don't know anything about Blueprint, and event not much on CDI -- been traditionally a Spring-Web guy. But I'm hoping to develop an entire system around OSGI. Here's a summary of what the system currently does (it's an old embedded-perl system that I'm re-architecting): * about a dozen perl-scripts that run as CRON-jobs every x-minutes - each polls a different table in the database looking for work - when work arrives, each of them is responsible for updating a different service (various LDAPs, ADs, email servers, etc) * a web-app that interacts with the database to allow admins an easy way to submit the work (I'll be doing this piece later on; the immediate need is to replicate the cron-job scripts in a java ecosphere). I want to stick with this general approach because I think it's pretty good. But packaging it into a monolithic spring app is getting overwhelming. -- View this message in context: http://karaf.922171.n3.nabble.com/Broken-Dev-Guide-tp4033621.html Sent from the Karaf - Dev mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com