Sharing Packages and Services between PARs
I'd like to set up a new project using DM Server. I've done some simple stuff and it looks very cool. Now I have a slightly more complicated setup that's stumping me.
In this app, I'm doing a main webapp PAR that can use dynamically loaded services. The PAR has two bundles: one that defines the Service interface, and one that has the actual web app, including a controller and the list of services.
The services themselves might be simple bundles, for simple services, or they might be other PARs, for services that need to do complex database work.
However, I'm running in to two problems. First, the Service interface is not being exported from the PAR. This prevents the various service bundles from loading.
If I copy the common bundle that defines Service into the pickup dir, the service bundles start, but the actual services still aren't visible in the web PAR.
Is there an easy way around this? This is just a mockup, the real application will have about 5 bundles in the web PAR and around a dozen services. It will be much more convenient to manage these as PARs than as plain bundles, and will lose a lot of what I'm hoping to gain from using DM Server.
I can make my test code available if needed.
Thanks!