EventAdmin-1.4.6 - Is it safe to dynamically reduce the pool size?

2018-07-05 Thread Erwin Hogeweg
Hi - Is it safe to reduce the threads in the pool in a running system? I monitored the behavior with JConsole while doing that and it looks like a new set of threads is created while the existing ones are retired when they complete the task. So it seems safe. I would sleep better though if if s

Re: Is EventAdmin-1.4.6 really loosing events?

2017-11-29 Thread Erwin Hogeweg
eceived 980007 events >>> so far. >>> [org.apache.felix.eventadmin.ittests.StressTestIT] : Received 980007 events >>> so far. >>> [org.apache.felix.eventadmin.ittests.StressTestIT] : Received 980007 events >>> so far. >>> [org.apache.felix.eventadm

Re: Is EventAdmin-1.4.6 really loosing events?

2017-11-29 Thread Carsten Ziegeler
che.felix.eventadmin.ittests.StressTestIT] : Received 980007 events >> so far. >> [org.apache.felix.eventadmin.ittests.StressTestIT] : Received 980007 events >> so far. >> [org.apache.felix.eventadmin.ittests.StressTestIT] : Received 980007 events >> so far. >> [org.a

Re: Is EventAdmin-1.4.6 really loosing events?

2017-11-29 Thread Carsten Ziegeler
cziege...@apache.org>> > wrote: > > Hi, > > we haven't experienced anything like this so far and I wouldn't know if > any better out of the box way to trouble shoot. I guess the best would > be to add additional logging to event admin, so you can follow what's > h

Re: Is EventAdmin-1.4.6 really loosing events?

2017-11-29 Thread Erwin Hogeweg
tEvent to sendEvent could also help in identifying whether there is a problem in the postEvent handling (which is more complicated than sendEvent). Regards Carsten Erwin Hogeweg wrote Hi, I have a really bizarre problem. It looks like the eventAdmin is intermittent but frequently loosing eve

Re: Is EventAdmin-1.4.6 really loosing events?

2017-11-29 Thread Carsten Ziegeler
d additional logging to event admin, so you can follow what's > happening inside event admin. > > If it is somehow reproducible, then switching from postEvent to > sendEvent could also help in identifying whether there is a problem in > the postEvent handling (which is more

Re: Is EventAdmin-1.4.6 really loosing events?

2017-11-29 Thread Erwin Hogeweg
ling (which is more complicated than sendEvent). Regards Carsten Erwin Hogeweg wrote Hi, I have a really bizarre problem. It looks like the eventAdmin is intermittent but frequently loosing events. I find this very hard to believe but the evidence seems to support my suspicion. I spit out a lo

Re: Is EventAdmin-1.4.6 really loosing events?

2017-11-15 Thread Carsten Ziegeler
then switching from postEvent to sendEvent could also help in identifying whether there is a problem in the postEvent handling (which is more complicated than sendEvent). Regards Carsten Erwin Hogeweg wrote > Hi, > > I have a really bizarre problem. It looks like the eventAdmin is interm

Is EventAdmin-1.4.6 really loosing events?

2017-11-15 Thread Erwin Hogeweg
Hi, I have a really bizarre problem. It looks like the eventAdmin is intermittent but frequently loosing events. I find this very hard to believe but the evidence seems to support my suspicion. I spit out a log msgs just before the event is posted and also when the event is handled. There is

Re: How to avoid EventAdmin blacklisting while keeping the timeout.

2015-09-02 Thread Carsten Ziegeler
gt; Thanks for your prompt reply. >> >>> I don’t understand what you want. >> Sorry about that. I want the handler to time-out after 5 seconds, but I >> DON’T want the handler to be black-listed. So next time there is an event >> for that handler the EventAdmin

Re: How to avoid EventAdmin blacklisting while keeping the timeout.

2015-09-02 Thread Neil Bartlett
; want the handler to be black-listed. So next time there is an event for that > handler the EventAdmin should try again, and possibly time-out again. > >> If you still have timeout, but the handler isn’t blacklisted right away… >> this is simply a non-zero timeout, isn’t it? &g

Re: How to avoid EventAdmin blacklisting while keeping the timeout.

2015-09-02 Thread Erwin Hogeweg
Neil, Thanks for your prompt reply. > I don’t understand what you want. Sorry about that. I want the handler to time-out after 5 seconds, but I DON’T want the handler to be black-listed. So next time there is an event for that handler the EventAdmin should try again, and possibly time-

Re: How to avoid EventAdmin blacklisting while keeping the timeout.

2015-09-02 Thread Neil Bartlett
gt; I see some suggestions to kick the handler off in a separate thread, but I am > wondering if this is the only solution. > > FWIW, I am using eventadmin-1.4.2. > > Any suggestions are greatly appreciated. > > > Regards, > > Erwin > --

How to avoid EventAdmin blacklisting while keeping the timeout.

2015-09-02 Thread Erwin Hogeweg
-event-admin.html) correctly. I see some suggestions to kick the handler off in a separate thread, but I am wondering if this is the only solution. FWIW, I am using eventadmin-1.4.2. Any suggestions are greatly appreciated. Regards, Erwin

Re: Memory leak in AsyncDeliverTasks, EventAdmin 1.3.2

2014-10-03 Thread Hartmut Lang
for 1.3.x and rather suggest to use the > latest 1.4.x version. The only new requirement of the 1.4 version is Java > 6. > > Carsten > > 2014-10-02 22:21 GMT+02:00 Hartmut Lang : > > > Hi all, > > > > using EventAdmin 1.3.2 we run in an OutOfMemory issue caus

Re: Memory leak in AsyncDeliverTasks, EventAdmin 1.3.2

2014-10-03 Thread Carsten Ziegeler
; Hi all, > > using EventAdmin 1.3.2 we run in an OutOfMemory issue caused be not > delivered async events. > Drilling down the problem i found that the problem is caused by an > interrupted thread which issues an log-event. > In EventAdmin 1.3.2 the async-delivery uses DefaultThreadPool

Memory leak in AsyncDeliverTasks, EventAdmin 1.3.2

2014-10-02 Thread Hartmut Lang
Hi all, using EventAdmin 1.3.2 we run in an OutOfMemory issue caused be not delivered async events. Drilling down the problem i found that the problem is caused by an interrupted thread which issues an log-event. In EventAdmin 1.3.2 the async-delivery uses DefaultThreadPool based on

Re: EventAdmin Bundle Installation

2014-02-02 Thread Neil Bartlett
You need to cast it to the interface org.osgi.service.event.EventAdmin. If you get a ClassCastException, then it means the eventadmin bundle is importing the org.osgi.service.event package from a different place than your client is importing it from. If you are bridging the embedding application

Re: EventAdmin Bundle Installation

2014-02-02 Thread masti whoknows
on "1.3.2" bundle.   Now pushing the events using the following example: http://felix.apache.org/site/apache-felix-event-admin.html is not clear with as how the casting will work.  if (ref != null) { EventAdmin eventAdmin = (EventAdmin) context.getService(ref); Here EventAdmin should be

Re: EventAdmin Bundle Installation

2014-02-02 Thread Neil Bartlett
On Sun, Feb 2, 2014 at 4:16 PM, masti whoknows wrote: > Thanks Marcel for the quick response. > > Can someone help clarify: Can I use EventAdmin to pass the event data from > an non-osgi bundle to an osgi bundle? Or is the eventAdmin only used for > communicating between osgi

Re: EventAdmin Bundle Installation

2014-02-02 Thread masti whoknows
Thanks Marcel for the quick response.   Can someone help clarify: Can I use EventAdmin to pass the event data from an non-osgi bundle to an osgi bundle? Or is the eventAdmin only used for communicating between osgi bundles?   My main application receiving the metrics data/event is non-osgi and

Re: EventAdmin Bundle Installation

2014-02-01 Thread Marcel Offermans
On 01 Feb 2014, at 23:20 pm, masti whoknows wrote: > Here is simple Java code that I am using to install the EventAdmin bundle > //now install the EventAdmin: org.apache.felix.eventadmin 1.3.2 > Bundle eventAdminBundle = > framework.getBundleContext().i

Re: EventAdmin Bundle Installation

2014-02-01 Thread masti whoknows
rvice reference is always null. In short EventAdmin reference is always null.    I am sure I need to install the EventAdmin as a bundle. How can I do it at the top level application? Can you please help me the actual Java code/pseudo that would install the bundle?   Dependencies in m

EventAdmin Bundle Installation

2014-02-01 Thread masti whoknows
don't have issues with OSGi bundle as I am able to install the bundle and also added the EventHandler there.My issue occurs when I send the events from my main application. My service reference is always null. In short EventAdmin reference is always null.      I am sure I need to instal

Re: EventAdmin Blacklist

2013-10-21 Thread Adam Wilson
ice in question. Thanks! Adam From: Carsten Ziegeler To: users@felix.apache.org, Date: 10/20/2013 08:58 AM Subject: Re: EventAdmin Blacklist Hi, the event admin spec states that an event handler should consume the event as fast as possible. So in most cases you should pr

Re: EventAdmin Blacklist

2013-10-20 Thread Carsten Ziegeler
> circumstances lead to a blacklisting, but we have also experienc > > From: Benjamin Debeerst > To: "users@felix.apache.org" , > Date: 10/18/2013 12:46 PM > Subject: RE: EventAdmin Blacklist > -- > > > > Hi Adam, > > I'm

RE: EventAdmin Blacklist

2013-10-18 Thread Adam Wilson
10/18/2013 12:46 PM Subject: RE: EventAdmin Blacklist Hi Adam, I'm not exactly sure which circumstances lead to a blacklisting, but we have also experienced blacklisting in case of Exceptions and long-running event processing. You should keep in mind that the EventAdmin may proces

RE: EventAdmin Blacklist

2013-10-18 Thread Benjamin Debeerst
Hi Adam, I'm not exactly sure which circumstances lead to a blacklisting, but we have also experienced blacklisting in case of Exceptions and long-running event processing. You should keep in mind that the EventAdmin may process the event delivery for each event synchronously to the diff

EventAdmin Blacklist

2013-10-18 Thread Adam Wilson
Hi all, We're experiencing a blacklist of a crucial service on a remote system and have not been able to replicate it locally. Once a service has been blacklisted, what can we do about it? From the EventAdmin code, it emits a log message and releases the service. There doesn't ap

Re: InterruptedException throw by EventAdmin when Felix HTTP Service 2.2.0 starts

2013-01-21 Thread Ryan Heinen
ndy wrote: > >> > >> I'm also have the same problem here, latest felix framework with > >> http.jetty > >> 2.2.0. > >> Is this a Bug? > >> > >> On Tue, Dec 11, 2012 at 11:44 PM, Nick Smith > >> wrote: > >> >

Re: InterruptedException throw by EventAdmin when Felix HTTP Service 2.2.0 starts

2013-01-21 Thread Carsten Ziegeler
andy wrote: >> >> I'm also have the same problem here, latest felix framework with >> http.jetty >> 2.2.0. >> Is this a Bug? >> >> On Tue, Dec 11, 2012 at 11:44 PM, Nick Smith >> wrote: >> >>> Hi all, >>> >>> I&#

Re: InterruptedException throw by EventAdmin when Felix HTTP Service 2.2.0 starts

2013-01-07 Thread Nick Smith
felix framework with http.jetty 2.2.0. Is this a Bug? On Tue, Dec 11, 2012 at 11:44 PM, Nick Smith wrote: Hi all, I'm seeing the exception below being consistently thrown by the EventAdmin when the Felix HTTP Service 2.2.0 starts. I'm using Karaf 2.3.0 (containing EventAdmin 1.3.0) and Felix H

Re: InterruptedException throw by EventAdmin when Felix HTTP Service 2.2.0 starts

2013-01-06 Thread LongkerDandy
I'm also have the same problem here, latest felix framework with http.jetty 2.2.0. Is this a Bug? On Tue, Dec 11, 2012 at 11:44 PM, Nick Smith wrote: > Hi all, > > I'm seeing the exception below being consistently thrown by the EventAdmin > when the Felix HTTP Service 2.2.0

InterruptedException throw by EventAdmin when Felix HTTP Service 2.2.0 starts

2012-12-11 Thread Nick Smith
Hi all, I'm seeing the exception below being consistently thrown by the EventAdmin when the Felix HTTP Service 2.2.0 starts. I'm using Karaf 2.3.0 (containing EventAdmin 1.3.0) and Felix HTTP 2.2.0 (for which I require for the extended API for registering servlet filters).

Re: Pojo Support for EventAdmin

2012-10-18 Thread Christian Schneider
ultimately looking for is a non intrusive way for publish / subscribe communication inside a container as well as across containers. This is why I also did a prototype for the EventAdmin -> jms bridge. Of course EventAdmin is not the only way to solve this. I am also looking into dosgi combin

Re: Pojo Support for EventAdmin

2012-10-18 Thread Neil Bartlett
The main issue is that all the receiving bundles will need to understand (i.e., import) the types of the objects you put into the event. This, along with the immutability requirement, is the main reason why EventAdmin supports only primitive types + String. Neil On Thu, Oct 18, 2012 at 3:02 PM

Pojo Support for EventAdmin

2012-10-18 Thread Christian Schneider
Hi all, I really like the publish / subscribe concept of EventAdmin. It provides a great way to decouple senders and receivers. The downside is that the events are limited to a simple map and using anything else than simple types for the values is discouraged. What I am missing is a simple

RE: EventAdmin 1.2.15

2012-08-31 Thread Joel Schuster
Great! Thanks! > -Original Message- > From: Carsten Ziegeler [mailto:cziege...@apache.org] > Sent: Friday, August 31, 2012 12:58 AM > To: users@felix.apache.org > Subject: Re: EventAdmin 1.2.15 > > Hi, > > yes I agree a new release is long overdue. Ac

Re: EventAdmin 1.2.15

2012-08-30 Thread Carsten Ziegeler
ould have a new release. Regards Carsten 2012/8/30 Joel Schuster : > The 1.2.15-SNAPSHOT of EventAdmin has some marked performance improvements. > I would love to see those released soon. > > > > Any eta on getting a new version of EventAdmin out? > > > > > > - Jo

EventAdmin 1.2.15

2012-08-30 Thread Joel Schuster
The 1.2.15-SNAPSHOT of EventAdmin has some marked performance improvements. I would love to see those released soon. Any eta on getting a new version of EventAdmin out? - Joel

Re: EventAdmin Performance

2012-04-10 Thread Marcel Offermans
o make it publically available :) >>>> But if we have snow at Easter (which might really happen), i might >>>> have some time to look into this. Anyway, promised: i'll commit >>>> something in the next two weeks >>>> >>>> Carsten >>

Re: EventAdmin Performance

2012-04-10 Thread Carsten Ziegeler
>>> Carsten >>> >>> 2012/4/4 Marcel Offermans : >>>> How about just putting those bundles in your sandbox? I would be >>>> interested to have something to measure the performance of EventAdmin. It >>>> does not necessarily need to be a Pax Exam

Re: EventAdmin Performance

2012-04-05 Thread Carsten Ziegeler
your sandbox? I would be interested >>> to have something to measure the performance of EventAdmin. It does not >>> necessarily need to be a Pax Exam compatible test. >>> >>> Greetings, Marcel >>> >>> >>> On Apr 4, 2012, at 19:50 PM,

Re: EventAdmin Performance

2012-04-05 Thread Marcel Offermans
s. Anyway, promised: i'll commit > something in the next two weeks > > Carsten > > 2012/4/4 Marcel Offermans : >> How about just putting those bundles in your sandbox? I would be interested >> to have something to measure the performance of EventAdmin. It does

Re: EventAdmin Performance

2012-04-05 Thread Carsten Ziegeler
ndles in your sandbox? I would be interested > to have something to measure the performance of EventAdmin. It does not > necessarily need to be a Pax Exam compatible test. > > Greetings, Marcel > > > On Apr 4, 2012, at 19:50 PM, Carsten Ziegeler wrote: > >> I

RE: EventAdmin Performance

2012-04-04 Thread Joel Schuster
minis.nl] > Sent: Wednesday, April 04, 2012 12:40 PM > To: users@felix.apache.org > Subject: Re: EventAdmin Performance > > How about just putting those bundles in your sandbox? I would be > interested to have something to measure the performance of EventAdmin. > It does not necessa

Re: EventAdmin Performance

2012-04-04 Thread Marcel Offermans
How about just putting those bundles in your sandbox? I would be interested to have something to measure the performance of EventAdmin. It does not necessarily need to be a Pax Exam compatible test. Greetings, Marcel On Apr 4, 2012, at 19:50 PM, Carsten Ziegeler wrote: > I've a per

Re: EventAdmin Performance

2012-04-04 Thread Carsten Ziegeler
ds Carsten 2012/4/4 Marcel Offermans : > Out of curiosity, did anybody ever write a "test" that we can run to > benchmark the performance of EventAdmin. I don't mean an ad-hoc test but > something we can put in the Felix repository (in a sandbox). > > Greetings

Re: EventAdmin Performance

2012-04-04 Thread Marcel Offermans
Out of curiosity, did anybody ever write a "test" that we can run to benchmark the performance of EventAdmin. I don't mean an ad-hoc test but something we can put in the Felix repository (in a sandbox). Greetings, Marcel On Apr 4, 2012, at 19:30 PM, Carsten Ziegeler wrote: >

Re: EventAdmin Performance

2012-04-04 Thread Carsten Ziegeler
easier to track this down (if it still happens) Regards Carsten 2012/4/4 Joel Schuster > Carsten et al., > > ** ** > > I've been running some profiling against some test components using > EventAdmin. I'm seeing some really degenerate behavior that's

EventAdmin Performance

2012-04-04 Thread Joel Schuster
Carsten et al., I've been running some profiling against some test components using EventAdmin. I'm seeing some really degenerate behavior that's causing some real slowdowns for message delivery coming from a few places. Environment: running 400+ messages per second and

Re: EventAdmin Asynchronous/Parallel EventHandler

2012-01-24 Thread Carsten Ziegeler
an eye out for an implementation of this > feature. > > Thanks again > Chris > > > > Holger Hoffstätte-4 wrote: >> >> On 18.01.2012 03:35, DBinSD wrote: >>> Does the felix implementation of the EventAdmin service support the >>> delivery >>&

Re: EventAdmin Asynchronous/Parallel EventHandler

2012-01-18 Thread DBinSD
on of this feature. Thanks again Chris Holger Hoffstätte-4 wrote: > > On 18.01.2012 03:35, DBinSD wrote: >> Does the felix implementation of the EventAdmin service support the >> delivery >> of events, asynchronously and in parallel to multiple listeners at once? >> I

Re: EventAdmin Asynchronous/Parallel EventHandler

2012-01-18 Thread Holger Hoffstätte
On 18.01.2012 03:35, DBinSD wrote: > Does the felix implementation of the EventAdmin service support the delivery > of events, asynchronously and in parallel to multiple listeners at once? It This was addressed as part of RFC 157 ("Updates to EventAdmin") sometime in 2010 and ac

Re: EventAdmin Asynchronous/Parallel EventHandler

2012-01-17 Thread Neil Bartlett
EventAdmin implementation complies with the specification but it is not the most powerful or feature-ful implementation that one could imagine. It's possible that a commercial implementation exists with the features you want. Regards, Neil On Wednesday, 18 January 2012 at 02:35, DBinSD

EventAdmin Asynchronous/Parallel EventHandler

2012-01-17 Thread DBinSD
Does the felix implementation of the EventAdmin service support the delivery of events, asynchronously and in parallel to multiple listeners at once? It appears as though the EventAdmin.postEvent( ) call properly immediately returns to the caller as one would expect, however, the receivers of

RE: Felix EventAdmin configuration in Karaf

2011-11-10 Thread Zhemzhitsky Sergey
Achim, Carsten, Thanks a lot for clarification. Regards, Sergey -Original Message- From: Achim Nierbeck [mailto:bcanh...@googlemail.com] Sent: Friday, November 11, 2011 1:08 AM To: users@felix.apache.org Subject: Re: Felix EventAdmin configuration in Karaf Well I might jump in on

Re: Felix EventAdmin configuration in Karaf

2011-11-10 Thread Achim Nierbeck
Well I might jump in on the karaf part :) you need a cfg file which reflects the pid of the EventAdmin Service. org.apache.felix.eventadmin.impl.EventAdmin.cfg (taking a look at the ServicePID this seems to be it :) ) and yes the etc folder is the right place it'll be picked up b

Re: Felix EventAdmin configuration in Karaf

2011-11-10 Thread Carsten Ziegeler
I don't know how to do things in Karaf, but for your second question: > 2.       How to set org.apache.felix.eventadmin.IgnoreTimeout property of > event admin properly? > > Is the following configuration right: > org.apache.felix.eventadmin.IgnoreTimeout= org.osgi.framework., org.foo.*, > org.

Felix EventAdmin configuration in Karaf

2011-11-10 Thread Zhemzhitsky Sergey
Hi there, I'd like to use felix EventAdmin as centralized event handler/dispatcher in my application in Karaf. I know that EventAdmin can blacklist slow event handlers. However I would not like event handlers to be blacklisted at all. So could you please answer to the following questions

EventAdmin: Exception during event dispatch [org.osgi.service.event.Event

2011-10-28 Thread Oliver Zemann
Hello, i got the following error message in one of my projects: WARNING: SvcRef [org.osgi.service.event.EventHandler] EventAdmin: Exception during event dispatch [org.osgi.service.event.Event [topic=gui/browser/SEARCHSONG] | [org.osgi.service.event.EventHandler] | Bundle(JamendoPlugin [19

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-06-14 Thread Alexander Broekhuis
Hi, I've created an issue: https://issues.apache.org/jira/browse/FELIX-2997 On 13 June 2011 18:22, Carsten Ziegeler wrote: > Am 08.06.11 10:19, schrieb Alexander Broekhuis: >> Hi Carsten, >> >> It has been some time since I last tried newer versions of the >>

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-06-13 Thread Carsten Ziegeler
Am 08.06.11 10:19, schrieb Alexander Broekhuis: > Hi Carsten, > > It has been some time since I last tried newer versions of the > EventAdmin, but I am now testing the 1.2.12 version. > While I don't see the IllegalState problem any more, I do see a NPE > when shutting d

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-06-08 Thread Alexander Broekhuis
Hi Carsten, It has been some time since I last tried newer versions of the EventAdmin, but I am now testing the 1.2.12 version. While I don't see the IllegalState problem any more, I do see a NPE when shutting down the framework while sending events. The stacktrace is: Exception in thread &

Re: iPojo EventAdmin Handler Release

2011-05-11 Thread Clement Escoffier
notations bundle is > up-to-date and has @Publisher deprecated (replaced with @Publishes) but the > eventadmin bundle is still 1.6.0 and therefore the new handler isn't > available in Nexus. > > > > BTW - just got

iPojo EventAdmin Handler Release

2011-05-10 Thread Joel Schuster
Friends, Is there an eta on a 1.7.0 or above build of the org.apache.ipojo.hander.eventadmin bundle? The annotations bundle is up-to-date and has @Publisher deprecated (replaced with @Publishes) but the eventadmin bundle is still 1.6.0 and therefore the new handler isn't available in

iPojo EventAdmin Handler 1.6 ->

2011-05-10 Thread Joel Schuster
Friends, Is there an eta on a 1.7.0 or above build of the org.apache.ipojo.hander.eventadmin bundle? The annotations bundle is up-to-date and has @Publisher deprecated but the eventadmin bundle is still 1.6.0 and therefore the new handler isn't available in Nexus. BTW - just got &#x

Re: Eventadmin and producer consumer pattern

2011-03-31 Thread Carsten Ziegeler
Per-Erik Svensson wrote > Hi, > > Maybe java.util.concurrent.BlockingQueue can help out if you need to > implement a producer-consumer. There are unbounded queues > (LinkedBlockingQueue) so you should be able to just put the information on > the queue (unbounded shouldn't block on put operations)

Re: Eventadmin and producer consumer pattern

2011-03-30 Thread Per-Erik Svensson
Hi, Maybe java.util.concurrent.BlockingQueue can help out if you need to implement a producer-consumer. There are unbounded queues (LinkedBlockingQueue) so you should be able to just put the information on the queue (unbounded shouldn't block on put operations) and process it elsewhere (in an Exec

Re: Eventadmin and producer consumer pattern

2011-03-29 Thread Peter Kriens
What do you think? :-) There is often a confusion about OSGi specs. Unlike many other specs, OSGi specs are not made to make your life easier, they're made to enable collaboration. Simplicity is very much in the eye of the beholder and is thus better left up to libraries that service a certain

Eventadmin and producer consumer pattern

2011-03-25 Thread LongkerDandy
Hi One of my event handler fetch info from internet and tends to block, And this makes it timeout since pending event keep coming. I wondered if event admin service can be used as producer/consumer pattern. Or I have to implement the pattern myself, by using the event handler as a producer. Thank

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-02-14 Thread Carsten Ziegeler
t; Thanks; >>>>> /pierre >>>>> >>>>> >>>>> On Tue, Jan 11, 2011 at 2:42 PM, Alexander Broekhuis >>>>> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>&

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-01-17 Thread Alexander Broekhuis
t;>>> On Tue, Jan 11, 2011 at 2:42 PM, Alexander Broekhuis >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> I created a small example with 2 bundles. >>>>> >>>>> When stopping execution u

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-01-17 Thread Carsten Ziegeler
11 at 2:42 PM, Alexander Broekhuis >>> wrote: >>> >>>> Hi, >>>> >>>> I created a small example with 2 bundles. >>>> >>>> When stopping execution using ctrl-c the interrupted exception is >>>> thrown. Someh

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-01-17 Thread Alexander Broekhuis
is >>> given, >>> and the shutdown stops. Trying to list bundles results in >>> IllegalStateException. The only way to stop it is by killing the >>> process. >>> >>> The code is a simple sender and receiver. The Dependency manager is >>>

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-01-11 Thread Alexander Broekhuis
results in >> IllegalStateException. The only way to stop it is by killing the >> process. >> >> The code is a simple sender and receiver. The Dependency manager is >> used to get a reference to the EventAdmin. >> >> >> On 7 January 2011 12:47, Carsten Ziege

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-01-11 Thread Pierre De Rop
StateException. The only way to stop it is by killing the > process. > > The code is a simple sender and receiver. The Dependency manager is > used to get a reference to the EventAdmin. > > > On 7 January 2011 12:47, Carsten Ziegeler wrote: > > Alexander Broekhuis wr

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-01-11 Thread Richard S. Hall
used to get a reference to the EventAdmin. On 7 January 2011 12:47, Carsten Ziegeler wrote: Alexander Broekhuis wrote From the stacktrace below I have the feeling that the AbcGenerator is using the EventAdmin although the service is already down. How do you handle the unregister event of the event

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-01-11 Thread Alexander Broekhuis
op it is by killing the process. The code is a simple sender and receiver. The Dependency manager is used to get a reference to the EventAdmin. On 7 January 2011 12:47, Carsten Ziegeler wrote: > Alexander Broekhuis  wrote >>> >>> From the stacktrace below I have the feelin

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-01-07 Thread Carsten Ziegeler
Alexander Broekhuis wrote >> >> From the stacktrace below I have the feeling that the AbcGenerator is >> using the EventAdmin although the service is already down. How do you >> handle the unregister event of the event admin service? > > The EventAdmin is tracked u

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-01-05 Thread Alexander Broekhuis
the feeling that the AbcGenerator is > using the EventAdmin although the service is already down. How do you > handle the unregister event of the event admin service? The EventAdmin is tracked using the DependencyManager. If the service is actually down, I would expect a NPE at the point where

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-01-05 Thread Carsten Ziegeler
Hi, Alexander Broekhuis wrote > Hi, > > I am using version 1.2.8. > > Also, it seems that the InterruptedException only occurs when starting > with no cache. What cache do you mean? >From the stacktrace below I have the feeling that the AbcGenerator is using the Ev

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-01-05 Thread Alexander Broekhuis
Hi, I am using version 1.2.8. Also, it seems that the InterruptedException only occurs when starting with no cache. Stacktraces: WARNING: EventAdmin: Exception: java.lang.InterruptedException (java.lang.InterruptedException) java.lang.InterruptedException at

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-01-05 Thread Carsten Ziegeler
Hi, which version of the event admin are you using? And can you post all exception stack traces you see? Thanks Carsten Alexander Broekhuis wrote > Hello, > > I also see the following exception: > > WARNING: EventAdmin: Exception: java.lang.Inter

Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-01-05 Thread Alexander Broekhuis
Hello, I also see the following exception: WARNING: EventAdmin: Exception: java.lang.InterruptedException (java.lang.InterruptedException) java.lang.InterruptedException at EDU.oswego.cs.dl.util.concurrent.LinkedQueue.offer(Unknown Source) at

How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown

2011-01-04 Thread Alexander Broekhuis
Hi all, In my project I am upgrading Felix (1.0.3) and the EventAdmin (1.0.0) to the latest version, and now during shutdown (using the shutdownhook and ctrl-c), I get an IllegalStateException indicating the eventadmin is stopped. The exception is thrown when trying to send events during shutdown

EventAdmin handler in web applications

2010-11-07 Thread LongkerDandy
Hi I have a design problem about eventadmin. The EventAdmin handler must be registered as a OSGi service. My app has a web page, and when doing some asynchronized work, I want to web page to be updated when the work is done (by receiving a event). But I can't register the web page

Re: EventAdmin best pratices

2010-11-04 Thread Steven Siebert
essaging system to rely. > > > > I read Guillaume article about NMR and went on Service Mix web page. My > first impression is that it is a very big and complex stuff :-), while > EventAdmin is included in OSGi. If I don't need all Service Mixes, can I > just pick on

Re: EventAdmin best pratices

2010-11-04 Thread Guillaume Nodet
what messaging system to rely. > > I read Guillaume article about NMR and went on Service Mix web page. My first > impression is that it is a very big and complex stuff :-), while EventAdmin > is included in OSGi. If I don't need all Service Mixes, can I just pick one? > > B

Re: EventAdmin best pratices

2010-11-04 Thread Thiébault Benoît
page. My first impression is that it is a very big and complex stuff :-), while EventAdmin is included in OSGi. If I don't need all Service Mixes, can I just pick one? Ben Le 4 nov. 2010 à 11:02, Steven Siebert a écrit : > Hi Ben, > > His statement is true, there could be a

Re: EventAdmin best pratices

2010-11-04 Thread Steven Siebert
your statement, it appears your pub/sub operations are all within the same runtime? I don't think this could be an issue. Even if you did have a distributed pub/sub model using the EventAdmin service, other EE spec services, roll-your-own RMI protocol, etc...it is often the case that ensurin

Re: EventAdmin best pratices

2010-11-04 Thread Guillaume Nodet
/2010/08/easy-useful-nmr-monsieur-nodet-vous.html 2010/11/4 Thiébault Benoît : > Hi everyone, > > I have read this very interesting article regarding OSGi EventAdmin Service > (http://wiki.eclipse.org/E4/Event_Processing) and one of the references > provided( > http://w

EventAdmin best pratices

2010-11-04 Thread Thiébault Benoît
Hi everyone, I have read this very interesting article regarding OSGi EventAdmin Service (http://wiki.eclipse.org/E4/Event_Processing) and one of the references provided( http://www.dynamicjava.org/articles/osgi-compendium/event-admin-service). In the latter, it is said that "Placin

Re: EventAdmin

2010-06-15 Thread Karl Pauls
On Tue, Jun 15, 2010 at 8:20 AM, Carsten Ziegeler wrote: > Lucas Galfaso  wrote >> This was my understanding, but reading >> >> >> 113.7.2 Asynchronous Event Delivery >> ... >> The Event Admin service can use more than one thread to deliver >> events. If it does then it must guarantee that each h

Re: EventAdmin

2010-06-14 Thread Carsten Ziegeler
Lucas Galfaso wrote > This was my understanding, but reading > > > 113.7.2 Asynchronous Event Delivery > ... > The Event Admin service can use more than one thread to deliver > events. If it does then it must guarantee that each handler receives > the events in the same order as the events were

Re: EventAdmin

2010-06-14 Thread Lucas Galfaso
010, at 08:06, Carsten Ziegeler wrote: > >> Lucas Galfaso  wrote >>> Hi All, >>>  I am trying to figure out how EventAdmin actually works. Is it >>> possible for an EventAdmin implementation to call an >>> EventHandler::handleEvent while this handler is

Re: EventAdmin

2010-06-14 Thread Peter Kriens
>> I am trying to figure out how EventAdmin actually works. Is it >> possible for an EventAdmin implementation to call an >> EventHandler::handleEvent while this handler is processing another >> event by another thread? Is this different if the event is synchronous >> or

Re: EventAdmin

2010-06-13 Thread Carsten Ziegeler
Lucas Galfaso wrote > Hi All, > I am trying to figure out how EventAdmin actually works. Is it > possible for an EventAdmin implementation to call an > EventHandler::handleEvent while this handler is processing another > event by another thread? Is this different if the event

EventAdmin

2010-06-13 Thread Lucas Galfaso
Hi All, I am trying to figure out how EventAdmin actually works. Is it possible for an EventAdmin implementation to call an EventHandler::handleEvent while this handler is processing another event by another thread? Is this different if the event is synchronous or asynchronous? And if the event

Re: EventAdmin and Import-Service optional

2010-03-02 Thread Arjun Panday
. This is almost certainly why bindex does not pay attention to an attempt to set a resolution attribute. Alasdair On 2 March 2010 11:25, Arjun Panday wrote: Hi all, I'm not sure whether this is an EventAdmin or Bindex issue, or both.. The EventAdmin bundle has an Import-Service i

  1   2   >