Re: [osgi-dev] DS & Concurrency

2016-11-24 Thread Matt Sicker
Very nice article! I feel that it helped me understand how to properly
understand the dynamics of DS components. I typically refer to the javadocs
when working with OSGi APIs, and they're usually rather terse about things,
so then I end up falling back to tutorial articles which generally don't go
into this level of detail.

On 24 November 2016 at 06:44,  wrote:

> Great article Peter.
>
> It's a good summary of "Java Concurrency in Practice" and the examples for
> different DS scenarios are extremely helpfull.
>
> Thanks a lot for sharing
> Marc
>
> ___
> Sparda-Datenverarbeitung eG
> AD-POR
> Freiligrathstrasse 32, 90482 Nürnberg
> Tel.: 0911/5486-722
> mailto: marc.schle...@sdv-it.de
>
> Sitz der Genossenschaft: Nürnberg
> Amtsgericht Nürnberg, GnR 271
> Vorstand: Ludwig Oberhammer (Vorsitzender), Burkhard Kintscher
> Aufsichtsratsvorsitzender: Manfred Stevermann
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten Sie diese E-Mail. Das unerlaubte Kopieren und die unbefugte
> Weitergabe dieser E-Mail sind nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient or have received this e-mail in error,
> please notify the sender immediately and delete this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
>
>
>
> Von:Peter Kriens 
> An:OSGi Developer Mail List ,
> Datum:23.11.2016 16:06
> Betreff:[osgi-dev] DS & Concurrency
> Gesendet von:osgi-dev-boun...@mail.osgi.org
> --
>
>
>
> I’ve just created an app note about DS and concurrent patterns:
>
> *http://enroute.osgi.org/appnotes/concurrency.html*
> 
>
> Feedback appreciated, kind regards,
>
> Peter Kriens[Anhang "smime.p7s" gelöscht von Marc Schlegel/sdv]
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] DS & Concurrency

2016-11-24 Thread marc . schlegel
Great article Peter.

It's a good summary of "Java Concurrency in Practice" and the examples for 
different DS scenarios are extremely helpfull.

Thanks a lot for sharing
Marc

___
Sparda-Datenverarbeitung eG
AD-POR
Freiligrathstrasse 32, 90482 Nürnberg
Tel.: 0911/5486-722
mailto: marc.schle...@sdv-it.de

Sitz der Genossenschaft: Nürnberg 
Amtsgericht Nürnberg, GnR 271
Vorstand: Ludwig Oberhammer (Vorsitzender), Burkhard Kintscher
Aufsichtsratsvorsitzender: Manfred Stevermann

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
vernichten Sie diese E-Mail. Das unerlaubte Kopieren und die unbefugte 
Weitergabe dieser E-Mail sind nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you 
are not the intended recipient or have received this e-mail in error, 
please notify the sender immediately and delete this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.




Von:Peter Kriens 
An: OSGi Developer Mail List , 
Datum:  23.11.2016 16:06
Betreff:[osgi-dev] DS & Concurrency
Gesendet von:   osgi-dev-boun...@mail.osgi.org



I?ve just created an app note about DS and concurrent patterns:

http://enroute.osgi.org/appnotes/concurrency.html

Feedback appreciated, kind regards,

Peter Kriens[Anhang "smime.p7s" gelöscht von Marc Schlegel/sdv] 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] DS & Concurrency

2016-11-24 Thread Peter Kriens
I think having another place to go is imho not helpful. Best is for people to 
link to the OSGi enRoute site so that things are easy findable on Google.

Anyway, it is out of my hands …

Kind regards,

Peter Kriens

> On 24 Nov 2016, at 10:18, Christian Schneider  wrote:
> 
> Hi Peter,
> 
> this is a very helpful article. I learned quite a few new things reading it.
> As a pure app note it might be hard to find though.
> 
> Generally there are many documentations for DS scattered around enroute.
> I wonder if we could combine them to something like a DS reference 
> documentation.
> How about providing a separate site ds.osgi.org that is all about declarative 
> services.
> I am really missing such a place. Currently I often search for some detail of 
> DS and then have some difficulties finding 
> it in enroute or some things are even only outside enroute.
> 
> Then enroute could concentrate on being the place for examples, concepts and 
> best practices.
> 
> Christian
> 
> On 23.11.2016 16:06, Peter Kriens wrote:
>> I’ve just created an app note about DS and concurrent patterns:
>> 
>>  http://enroute.osgi.org/appnotes/concurrency.html 
>> 
>> 
>> Feedback appreciated, kind regards,
>> 
>>  Peter Kriens
>> 
>> 
>> ___
>> OSGi Developer Mail List
>> osgi-dev@mail.osgi.org 
>> https://mail.osgi.org/mailman/listinfo/osgi-dev 
>> 
> 
> -- 
> Christian Schneider
> http://www.liquid-reality.de 
> 
> Open Source Architect
> http://www.talend.com 
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev

___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] DS & Concurrency

2016-11-24 Thread Christian Schneider

Hi Peter,

this is a very helpful article. I learned quite a few new things reading it.
As a pure app note it might be hard to find though.

Generally there are many documentations for DS scattered around enroute.
I wonder if we could combine them to something like a DS reference 
documentation.
How about providing a separate site ds.osgi.org that is all about 
declarative services.
I am really missing such a place. Currently I often search for some 
detail of DS and then have some difficulties finding

it in enroute or some things are even only outside enroute.

Then enroute could concentrate on being the place for examples, concepts 
and best practices.


Christian

On 23.11.2016 16:06, Peter Kriens wrote:

I’ve just created an app note about DS and concurrent patterns:

http://enroute.osgi.org/appnotes/concurrency.html

Feedback appreciated, kind regards,

Peter Kriens


___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev



--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com

___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] DS & Concurrency

2016-11-23 Thread Erwin Hogeweg
Excellent article Peter! Very helpful. Thanks for sharing.

Erwin

> On Nov 23, 2016, at 10:06, Peter Kriens  wrote:
> 
> I’ve just created an app note about DS and concurrent patterns:
> 
>   http://enroute.osgi.org/appnotes/concurrency.html 
> 
> 
> Feedback appreciated, kind regards,
> 
>   Peter Kriens
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev

___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] DS & Concurrency

2016-11-23 Thread Daghan ACAY
Hi Peter

I saw it on twitter it is very welcomed article. An initial scan is very 
promising. I will read in full and possibly add some things about locks and 
latches.

I did much of it with bluetooth protocol and they are hopefully correct  :)

Cheers
Daghan

Sent by MailWise<http://www.mail-wise.com/installation/2> – See your emails as 
clean, short chats.


 Original Message 
From: Peter Kriens <peter.kri...@aqute.biz>
Sent: Thursday, November 24, 2016 03:00 AM
To: OSGi Developer Mail List <osgi-dev@mail.osgi.org>
Subject: Re: [osgi-dev] DS & Concurrency

Feel free to add a section with such rules … Though I am not a fan of them 
because they tend to be in the way when I am thinking and are too often not 
that useful for experienced people; I prefer good code reviews.

Kind regards,

Peter Kriens


On 23 Nov 2016, at 16:47, Raymond Auge 
<raymond.a...@liferay.com<mailto:raymond.a...@liferay.com>> wrote:

Hi Peter,

I've read about 1/4 of the document so far (if only I had more time) and so far 
I like it.

As you've already found this is a much needed piece of work. We (Liferay) 
struggle with this in our company to a high degree to the point that we have 
many source formatting checks/rules in place which attempt to capture as many 
concurrency oversights as possible. These checks are actually REALLY annoying 
but I classify it with baseline in that even the smartest developers will 
occasionally let their fingers write code that their brain hasn't compiled and 
such checks keep them honest. Oops I accidentally broke binary compat... Oops I 
accidentally exposed a concurrency issue.

So, yes I think this is very useful and I promise to read it fully.

Sincerely,
- Ray

On Wed, Nov 23, 2016 at 10:06 AM, Peter Kriens 
<peter.kri...@aqute.biz<mailto:peter.kri...@aqute.biz>> wrote:
I’ve just created an app note about DS and concurrent patterns:

http://enroute.osgi.org/appnotes/concurrency.html

Feedback appreciated, kind regards,

Peter Kriens

___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto:osgi-dev@mail.osgi.org>
https://mail.osgi.org/mailman/listinfo/osgi-dev



--
Raymond Augé<http://www.liferay.com/web/raymond.auge/profile> (@rotty3000)
Senior Software Architect Liferay, Inc.<http://www.liferay.com/> (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance<http://osgi.org/> (@OSGiAlliance)
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto:osgi-dev@mail.osgi.org>
https://mail.osgi.org/mailman/listinfo/osgi-dev

___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] DS & Concurrency

2016-11-23 Thread Raymond Auge
On Wed, Nov 23, 2016 at 11:00 AM, Peter Kriens 
wrote:

> Feel free to add a section with such rules … Though I am not a fan of them
> because they tend to be in the way when I am thinking and are too often not
> that useful for experienced people; I prefer good code reviews.
>

Honestly, I completely agree!
- Ray


>
> Kind regards,
>
> Peter Kriens
>
>
>
> On 23 Nov 2016, at 16:47, Raymond Auge  wrote:
>
> Hi Peter,
>
> I've read about 1/4 of the document so far (if only I had more time) and
> so far I like it.
>
> As you've already found this is a much needed piece of work. We (Liferay)
> struggle with this in our company to a high degree to the point that we
> have many source formatting checks/rules in place which attempt to capture
> as many concurrency oversights as possible. These checks are actually
> REALLY annoying but I classify it with baseline in that even the smartest
> developers will occasionally let their fingers write code that their brain
> hasn't compiled and such checks keep them honest. Oops I accidentally broke
> binary compat... Oops I accidentally exposed a concurrency issue.
>
> So, yes I think this is very useful and I promise to read it fully.
>
> Sincerely,
> - Ray
>
> On Wed, Nov 23, 2016 at 10:06 AM, Peter Kriens 
> wrote:
>
>> I’ve just created an app note about DS and concurrent patterns:
>>
>> http://enroute.osgi.org/appnotes/concurrency.html
>>
>> Feedback appreciated, kind regards,
>>
>> Peter Kriens
>>
>> ___
>> OSGi Developer Mail List
>> osgi-dev@mail.osgi.org
>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>>
>
>
>
> --
> *Raymond Augé* 
>  (@rotty3000)
> Senior Software Architect *Liferay, Inc.* 
>  (@Liferay)
> Board Member & EEG Co-Chair, OSGi Alliance 
> (@OSGiAlliance)
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
>
>
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>



-- 
*Raymond Augé* 
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* 
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance  (@OSGiAlliance)
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] DS & Concurrency

2016-11-23 Thread Peter Kriens
Feel free to add a section with such rules … Though I am not a fan of them 
because they tend to be in the way when I am thinking and are too often not 
that useful for experienced people; I prefer good code reviews.

Kind regards,

Peter Kriens


> On 23 Nov 2016, at 16:47, Raymond Auge  wrote:
> 
> Hi Peter,
> 
> I've read about 1/4 of the document so far (if only I had more time) and so 
> far I like it. 
> 
> As you've already found this is a much needed piece of work. We (Liferay) 
> struggle with this in our company to a high degree to the point that we have 
> many source formatting checks/rules in place which attempt to capture as many 
> concurrency oversights as possible. These checks are actually REALLY annoying 
> but I classify it with baseline in that even the smartest developers will 
> occasionally let their fingers write code that their brain hasn't compiled 
> and such checks keep them honest. Oops I accidentally broke binary compat... 
> Oops I accidentally exposed a concurrency issue.
> 
> So, yes I think this is very useful and I promise to read it fully.
> 
> Sincerely,
> - Ray
> 
> On Wed, Nov 23, 2016 at 10:06 AM, Peter Kriens  > wrote:
> I’ve just created an app note about DS and concurrent patterns:
> 
>   http://enroute.osgi.org/appnotes/concurrency.html 
> 
> 
> Feedback appreciated, kind regards,
> 
>   Peter Kriens
> 
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org 
> https://mail.osgi.org/mailman/listinfo/osgi-dev 
> 
> 
> 
> 
> -- 
> Raymond Augé  (@rotty3000)
> Senior Software Architect Liferay, Inc.  (@Liferay)
> Board Member & EEG Co-Chair, OSGi Alliance  (@OSGiAlliance)
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev



smime.p7s
Description: S/MIME cryptographic signature
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] DS & Concurrency

2016-11-23 Thread Raymond Auge
Hi Peter,

I've read about 1/4 of the document so far (if only I had more time) and so
far I like it.

As you've already found this is a much needed piece of work. We (Liferay)
struggle with this in our company to a high degree to the point that we
have many source formatting checks/rules in place which attempt to capture
as many concurrency oversights as possible. These checks are actually
REALLY annoying but I classify it with baseline in that even the smartest
developers will occasionally let their fingers write code that their brain
hasn't compiled and such checks keep them honest. Oops I accidentally broke
binary compat... Oops I accidentally exposed a concurrency issue.

So, yes I think this is very useful and I promise to read it fully.

Sincerely,
- Ray

On Wed, Nov 23, 2016 at 10:06 AM, Peter Kriens 
wrote:

> I’ve just created an app note about DS and concurrent patterns:
>
> http://enroute.osgi.org/appnotes/concurrency.html
>
> Feedback appreciated, kind regards,
>
> Peter Kriens
>
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>



-- 
*Raymond Augé* 
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* 
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance  (@OSGiAlliance)
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev