Mail Archive Home | exoplatform List | April 2008 Index
| <-- Date Index --> | <-- Thread Index --> |
hi community, I'm facing to a strange behavior of the picontainer included in eXo...I have written a startable service (implements the org.picocontainer.Startable ) and I configure it with a configuration.xml file:
----------------------- <configuration> <component> <type>org.ow2.novabpm.admin.service.bonita.BonitaService</type> </component> </configuration> ------------------------I want to get this component in a method of an UIContainer, so I have written the next line:
-------------------- BonitaService bs = getApplicationComponent(BonitaService.class); ---------------------Ok, all sounds right, but when I run eXo, my service starts (cool) and my bs variable is null (not cool).
PS: To be sure that my service is well registered in my ExoContainer (aka PicoContainer), I have quickly (& dirty) written the next sample code and I found my service listed:
---------------WebuiRequestContext context = WebuiRequestContext.getCurrentInstance() ; ExoContainer container = context.getApplication().getApplicationServiceContainer() ;
List<Object> list = container.getComponentInstances();
Iterator<Object> iteO = list.iterator();
while(iteO.hasNext()) {
Object o = iteO.next();
System.out.println("COMPONENT OF TYPE : " +
o.getClass().toString());
}
---------------
Have you any idea about the reason of this strange behaviour?
Regards
--
Rodrigue, Le Gall
Portal Technologies' Leader
BULL R&D , BPM
Bull, Architect of an Open World TM
Phone: +33(0)4 7629 7464
email: rodrigue.le-gall@xxxxxxxx
http://www.bull.com
*Orchestra*, The BPEL open source project: http://orchestra.objectweb.org
*Bonita*, The XPDL open source project: http://bonita.objectweb.org
This e-mail contains material that is confidential for the sole use of the
intended recipient. Any review, reliance or distribution by others or
forwarding without express permission is strictly prohibited. If you are not
the intended recipient, please contact the sender and delete all copies.
begin:vcard fn:Rodrigue Le Gall n:Le Gall;Rodrigue org:BULL SAS;BULL R&D - BPM adr;quoted-printable:1 RUE DE PROVENCE B.P.208 CENTRE UNIX;;Boite courier: B1/397;Echirolles CEDEX ;Is=C3=A8re;38432 ;France email;internet:rodrigue.le-gall@xxxxxxxx title:Portal Technologies' Leader tel;work:+33(0)4 7629 7464 tel;fax:+33(0)4 7629 7777 note;quoted-printable:*Orchestra*, The BPEL open source project: http://orchestra.objectweb.org= =0D=0A= *Bonita*, The XPDL open source project: http://bonita.objectweb.org x-mozilla-html:FALSE url:http://www.bull.com version:2.1 end:vcard
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.