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

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

by ekke :: Rate this Message:

Reply to Author | View in Thread

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

so I think there must be something wrong

I think you have testcases with more then one bean to see if the
services are registered, but perhaps you only test if there's a service
found for the remote or local interface and not how many exist ?

ekke

Guillaume Sauthier schrieb:

> Yes, that's strange
> Business interfaces should be registered only when the ejbjar is started.
> Notice that all the business interfaces of the bean are registered, so
> if you have multiples local or remote interfaces, it ends up with
> multiple registration.
> Are your beans reusing the interfaces? so it's normal that they gets
> registered multiple times ...
>
> --G
>
> ekke a écrit :
>> just noticed a strange thing,
>> while tracking services I noticed, that Services for SLSB are
>> registered more then one time.
>>
>> think your loop is wrong
>>
>> it goes this way:
>>
>> ALocal
>> ARemote
>> ALocal
>> ARemote
>> BLocal
>> BRemote
>> ALocal
>> ARemote
>> BLocal
>> BRemote
>> CLocal
>> CRemoteALocal
>> ARemote
>> BLocal
>> BRemote
>> CLocal
>> CRemote
>> DLocal
>> DRemote
>>
>> and so on...
>> my service.id is > 80.000 ;-)
>>
>> should I report this as bug ?
>>
>> ekke
>> (using 1.1.0 snapshot 2008_07_23)
>>
>>
>>
>

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