You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Jean-Baptiste Onofré <jb...@nanthrax.net> on 2017/01/15 18:15:01 UTC

[PROPOSAL] Add convenient and "starter" examples in Karaf Container distribution

Hi guys,

In the preparation for the Karaf 4.1.0 release, I'm working on the final 
touches on the developer guide.

As part of this, I created simple example projects:
- Service with pure OSGi (registration/reference)
- Configuration management with ConfigAdmin service
- Configuration with ManagedService
- Configuration with ManagedServiceFactory
- Service with Blueprint (registration/reference)
- Service with DS/SCR (registration/reference)
- Create a custom Command
- Create a custom MBean
- Create a custom URL NamespaceHandler
- Logging custom appender
- Create a custom deployer
- Create a custom JAAS LoginModule
- Security realm usage
- Encryption service usage
- Create a servlet
- Create a WAB and use service
- Use Karaf JNDI
- Use and manipulate JDBC service
- Use and manipulate JMS service
- Use of JPA & JTA
- Use of CDI
- Use of CXF for WebServices (very quick and simple, README is 
referencing CXF website/samples)
- Use of Camel in Karaf (very quick and simple, README is referencing 
Camel website/samples)
- Profiles

I tried basically to list the most common questions/requests we got from 
users when they start with Karaf.

These samples and new developer guide are already ready, I will create a 
pull request tonight or Tuesday (I'm traveling tomorrow).

I did:
- a samples module containing those samples, including a README for each 
sample
- moved the content of demo in samples (demo is removed)
- updated the developer guide based on README in those samples
- add new archetypes ("starter") to create the code of the samples too

The idea is to provide quick ways (starters) for end-users to start with 
Karaf, providing practical samples. It's a first start/transition 
waiting for Karaf Boot. However, as Karaf Boot

I plan to add the same things in Decanter (create custom collector, 
appenders, alerters, ...) and Cellar (use of distribution map, DOSGi, ...).

Thoughts ?

Regards
JB
-- 
Jean-Baptiste Onofr�
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: [PROPOSAL] Add convenient and "starter" examples in Karaf Container distribution

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi guys,

quick update about this topic.

I started the following branch:

https://github.com/jbonofre/karaf/tree/DEV_GUIDE

You can see:

https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples

that will be included in the Karaf distribution and used in the coming 
Developer Guide.
I will push new examples today.

Again, the goal is to have "ready to use" simple examples allowing 
beginners/end-users to easily start with Karaf and some of the cool 
features.

Related to that, I'm also preparing the update notes and new content for 
the website (list and description of features available, ...).

Regards
JB

On 01/15/2017 07:15 PM, Jean-Baptiste Onofr� wrote:
> Hi guys,
>
> In the preparation for the Karaf 4.1.0 release, I'm working on the final
> touches on the developer guide.
>
> As part of this, I created simple example projects:
> - Service with pure OSGi (registration/reference)
> - Configuration management with ConfigAdmin service
> - Configuration with ManagedService
> - Configuration with ManagedServiceFactory
> - Service with Blueprint (registration/reference)
> - Service with DS/SCR (registration/reference)
> - Create a custom Command
> - Create a custom MBean
> - Create a custom URL NamespaceHandler
> - Logging custom appender
> - Create a custom deployer
> - Create a custom JAAS LoginModule
> - Security realm usage
> - Encryption service usage
> - Create a servlet
> - Create a WAB and use service
> - Use Karaf JNDI
> - Use and manipulate JDBC service
> - Use and manipulate JMS service
> - Use of JPA & JTA
> - Use of CDI
> - Use of CXF for WebServices (very quick and simple, README is
> referencing CXF website/samples)
> - Use of Camel in Karaf (very quick and simple, README is referencing
> Camel website/samples)
> - Profiles
>
> I tried basically to list the most common questions/requests we got from
> users when they start with Karaf.
>
> These samples and new developer guide are already ready, I will create a
> pull request tonight or Tuesday (I'm traveling tomorrow).
>
> I did:
> - a samples module containing those samples, including a README for each
> sample
> - moved the content of demo in samples (demo is removed)
> - updated the developer guide based on README in those samples
> - add new archetypes ("starter") to create the code of the samples too
>
> The idea is to provide quick ways (starters) for end-users to start with
> Karaf, providing practical samples. It's a first start/transition
> waiting for Karaf Boot. However, as Karaf Boot
>
> I plan to add the same things in Decanter (create custom collector,
> appenders, alerters, ...) and Cellar (use of distribution map, DOSGi, ...).
>
> Thoughts ?
>
> Regards
> JB

-- 
Jean-Baptiste Onofr�
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

R: [PROPOSAL] Add convenient and "starter" examples in Karaf Container distribution

Posted by Andrea Cosentino <an...@yahoo.com.INVALID>.
+1.
Thanks JB 
 
  Il dom, 15 gen, 2017 alle 19:15, Jean-Baptiste Onofré<jb...@nanthrax.net> ha scritto:   Hi guys,

In the preparation for the Karaf 4.1.0 release, I'm working on the final 
touches on the developer guide.

As part of this, I created simple example projects:
- Service with pure OSGi (registration/reference)
- Configuration management with ConfigAdmin service
- Configuration with ManagedService
- Configuration with ManagedServiceFactory
- Service with Blueprint (registration/reference)
- Service with DS/SCR (registration/reference)
- Create a custom Command
- Create a custom MBean
- Create a custom URL NamespaceHandler
- Logging custom appender
- Create a custom deployer
- Create a custom JAAS LoginModule
- Security realm usage
- Encryption service usage
- Create a servlet
- Create a WAB and use service
- Use Karaf JNDI
- Use and manipulate JDBC service
- Use and manipulate JMS service
- Use of JPA & JTA
- Use of CDI
- Use of CXF for WebServices (very quick and simple, README is 
referencing CXF website/samples)
- Use of Camel in Karaf (very quick and simple, README is referencing 
Camel website/samples)
- Profiles

I tried basically to list the most common questions/requests we got from 
users when they start with Karaf.

These samples and new developer guide are already ready, I will create a 
pull request tonight or Tuesday (I'm traveling tomorrow).

I did:
- a samples module containing those samples, including a README for each 
sample
- moved the content of demo in samples (demo is removed)
- updated the developer guide based on README in those samples
- add new archetypes ("starter") to create the code of the samples too

The idea is to provide quick ways (starters) for end-users to start with 
Karaf, providing practical samples. It's a first start/transition 
waiting for Karaf Boot. However, as Karaf Boot

I plan to add the same things in Decanter (create custom collector, 
appenders, alerters, ...) and Cellar (use of distribution map, DOSGi, ...).

Thoughts ?

Regards
JB
-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
  

Re: [PROPOSAL] Add convenient and "starter" examples in Karaf Container distribution

Posted by Matt Sicker <bo...@gmail.com>.
Sounds amazing! I've always found the hardest part about getting developers
to use OSGi is the lack of clear, up to date examples. It's probably why
Spring Boot has been so successful, and it's also why I've started working
on a similar project in Log4j.

A related tool that might super useful for Karaf in the future is Atomist <
https://www.atomist.com/> which can be used to provide project
templates/editors to add or configure optional features and such with new
and existing projects.

On 15 January 2017 at 12:15, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:

> Hi guys,
>
> In the preparation for the Karaf 4.1.0 release, I'm working on the final
> touches on the developer guide.
>
> As part of this, I created simple example projects:
> - Service with pure OSGi (registration/reference)
> - Configuration management with ConfigAdmin service
> - Configuration with ManagedService
> - Configuration with ManagedServiceFactory
> - Service with Blueprint (registration/reference)
> - Service with DS/SCR (registration/reference)
> - Create a custom Command
> - Create a custom MBean
> - Create a custom URL NamespaceHandler
> - Logging custom appender
> - Create a custom deployer
> - Create a custom JAAS LoginModule
> - Security realm usage
> - Encryption service usage
> - Create a servlet
> - Create a WAB and use service
> - Use Karaf JNDI
> - Use and manipulate JDBC service
> - Use and manipulate JMS service
> - Use of JPA & JTA
> - Use of CDI
> - Use of CXF for WebServices (very quick and simple, README is referencing
> CXF website/samples)
> - Use of Camel in Karaf (very quick and simple, README is referencing
> Camel website/samples)
> - Profiles
>
> I tried basically to list the most common questions/requests we got from
> users when they start with Karaf.
>
> These samples and new developer guide are already ready, I will create a
> pull request tonight or Tuesday (I'm traveling tomorrow).
>
> I did:
> - a samples module containing those samples, including a README for each
> sample
> - moved the content of demo in samples (demo is removed)
> - updated the developer guide based on README in those samples
> - add new archetypes ("starter") to create the code of the samples too
>
> The idea is to provide quick ways (starters) for end-users to start with
> Karaf, providing practical samples. It's a first start/transition waiting
> for Karaf Boot. However, as Karaf Boot
>
> I plan to add the same things in Decanter (create custom collector,
> appenders, alerters, ...) and Cellar (use of distribution map, DOSGi, ...).
>
> Thoughts ?
>
> Regards
> JB
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Matt Sicker <bo...@gmail.com>