ekke a écrit :
> Guillaume Sauthier schrieb:
>> ekke a écrit :
>>> Guillaume,
>>>
>>> Bean A has @Local and @Remote
>>> so there should be 2 registered services for this bean:
>>> one for the local and one for the remote
>>>
>>> but if I have Beans A,B,C,D then there should be 8 services,
>>> buit there are 20:
>>> 8 for A
>>> 6 for B
>>> 4 for C
>>> 2 for D
>>>
>>> and if I list the services from OSGI console I see (looking at the id)
>>> that they are registered like the list below
>>
>> In this order ?
>> Or is D started first, and then C, then B and finally A ?
>
> see my other example I just sent before
>
>>
>> After a little digging in our code ,I've seen something wrong, but it
>> does not explains the behavior at first glance...
>> In EZB, we have the concept of BindingFactory, that manage how we
>> publishes business interfaces of the beans.
>> So there is a default one, that manages JNDI. And for OSGi, we added
>> an OSGiBindingFactory. This is that class that register/unregister
>> services for your bean's interfaces.
>> This factory is added in a singleton BindingManager.
>> It's added during the core component startup, but it's never removed.
>> You see where I wanna go ?
>> if you start multiple cores, the OSGiBindingFactory will be
>> registered multiple times, with the effect of adding 2 more services
>> (1 for @Local 1 for @Remote) for each of your beans ...
>>
>> So the question is: "Do you start multiple cores ?"
>>
> no, there's only one easybeans.core
>
> I'm using the EasyBeans agent to start all Easybeans components
The agent delete the existing configuration for all the old component's
Configurationµ.
It doesn't do that for the core...
Hmmm, it still doesn't explains that "incremental" behavior...
Can you check that there is no multiple EZBCoreService instances
registered ?
--G
> and I'm only waitong until all components are registered,
> then I wait until all datasources are available
> then I start my EJB bundle (containing SLSB and Interfaces in one bundle,
> also containing persistence.xml)
>
> 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