« Return to Thread: [OSGI] SLSB Business Interfaces registered multiple times as Services

Re: Re: Re: [OSGI] SLSB Business Interfaces registered multiple times as Services

by Guillaume Sauthier :: Rate this Message:

Reply to Author | View in Thread

Should be fixed now

Ekke, once the SNAPSHOT have been deployed and published (tomorow
morning should be OK) in the m2 repository of OW2, could you check that
the problem is fixed ?
If so, tell me so, and I will close the JIRA.

Cheers
--Guillaume

Guillaume Sauthier a écrit :

> I can reproduce the problem here with our test suite:
>
> org.ow2.easybeans.examples.osgi.SimpleInterface registered 1 times
> org.ow2.easybeans.examples.osgi.ISimpleDependency registered 2 times
>
> .... some time passed ....
>
> OK, I think I got it.
> the problem was not in easybeans-osgi after all :)
> It's directly in easybeans, we manage, at the EjbJarContainer level, a
> list of BindingReference (used to bind object in JNDI or register them
> as services).
> During the container startup, we collect a list of BindingRef (using
> @Local, @Remote + EJB2.x style interfaces), BUT, the usage of theses
> references is done at the bean level, so it ends up with the list
> binded for the first bean (1 reference in the list), then it is binded
> again for the 2nd EJB (now we have 2 interfaces in the list)... So,
> the first bean interface/reference is binded, rebinded and
> re-re-binded ...
>
> I should be able to make a fix quickly
> --G
>
> ekke a écrit :
>> Guillaume Sauthier schrieb:
>>> Hmmm, I still do not see what is going wrong.
>>> The only thing that could register mulitple OSGiBF is multiple
>>> start() of the EZBCoreService (or multiple easybeans-core bundles
>>> being activated).
>>>
>>> I'm adding a testcase to see if I can reproduce the problem here.
>>> I let you know the result ...
>>
>> thanbks
>>
>> 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


 « Return to Thread: [OSGI] SLSB Business Interfaces registered multiple times as Services