Hi everybody,
I'm trying to implement some logic that allows a network node to fetch
some bundles from other and install them into its own OBR service.
I will try to explain the problem better. Lets say I have two network
nodes (i.e. servers in some place of a network), each one has an OBR
service running. Then, what I try to do is the following:
- node N1 sends a bundle B to node N2 (in N1, B is correctly resolved)
- N2 tries to deploy B but it may have some missing dependencies
- N2 needs to satisfy B's missing dependencies so it may ask N1 for them.
At the end of the day , what I try to do is to be able to start B in N2.
The way this is achieved is what I would like to get some insights about.
Since N2 can receive bundles from different (and possibly several)
nodes, it's not feasible that the nodes synchronizes their repositories
so each one can know which bundles are missing and ask for them directly.
A valid approach is that N1 send a repository file containing all the
information about the bundles to which B is wired. However this approach
could mean unnecessary network traffic if N2 has already all the needed
dependencies for B.
Since I'm really new with OSGi, Felix and OBR, I would like to ask you
for some insights about this or better solutions to get the job done.
Hope I stated the problem clearly enough
Thank you for your help