Currently, I have no other good suggestion.
I think that our components maybe should register another interface than
only EZBComponent (which can be seen as a management interface, with
start/stop, ...): the business interface of the component should be
exposed too, so that it simplify defining dependencies with OSGi...
If you could open an improvement in JIRA, please :)
--G
ekke a écrit :
> I found a way:
>
> I wait until
>
> ConnectionManager.getConnectionManager(DATASOURCE_NAMES[i])
>
> for all my Data Sources != null
>
> or do you have another idea ?
>
> ekke
>
> ekke schrieb:
>> hi,
>>
>> have you an idea how I can test if the JDBCPoolComponent.start was
>> executed for all my Datasources ?
>>
>> they must be started before I can start my EJB bundles
>>
>> I can test using ServiceTracker if the jdbcpool-component-factory was
>> started, but its not enough - if I try to start my EJB bundle before
>> the Datasources are available, EasyBeans uses standard DS "jdbc"_1
>> and - of course - gets an exception because this is not bopund to a
>> JNDI name
>>
>> thx
>>
>> ekke
>>
>>
>
>
>
[Guillaume_Sauthier.vcf]
begin:vcard
fn:Guillaume Sauthier
n:Sauthier;Guillaume
org:<a href="http://www.ow2.org"><img title="OW2" alt="OW2 Consortium" border="0" src="http://www.ow2.org/xwiki/bin/skin/XWiki/DefaultSkin/logoOW2.png" /></a>
adr:;;;;;;France
email;internet:guillaume.sauthier@...
title:<a href="http://jonas.ow2.org">JOnAS Application Server</a>
x-mozilla-html:TRUE
url:http://jonas.ow2.org
version:2.1
end:vcard