On 2/26/10 10:08 PM, Charles Moulliard wrote:
Hi,

Is it possible to customize the ServiceEvent class of the osgi
framework (= create a new type of Event, by example RECEIVE_FEEDBACK)
in order to notify and provide information to a bundle which has
created a ServiceListener  ?

No.

Bundle A
-->  register a ServiceListener (context.addServiceListener(this);
-->  implement : event.getServiceReference().getProperty("objectClass");
         if (event.getType() == ServiceEvent.RECEIVE_FEEDBACK)
blablabla

Bundle B
-->  Will notify Bundles that an event RECEIVE_FEEDBACK occured

Question : How can the bundle A receive a message when event
RECEIVE_FEEDBACK is fired from bundle B ?

Do you need something like Event Admin?

-> richard

Kind regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com
twitter : http://twitter.com/cmoulliard
Linkedlin : http://www.linkedin.com/in/charlesmoulliard

Apache Camel Group :
http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to