Another option you have is the following:

Develop your code as if you are developing two separate bundles: Use different packages, give each one an Activator, and publish and consume services (even those you label as "private"). Now instead of packaging and deploying two separate bundles, create a new Activator that simply invokes both other activators, and package everything in a single bundle. Do NOT export your "private" services, just keep them in a private package. That way, nobody else can ever see or use them (without going through considerable trouble). Obviously, one activators could be our wrapper to instantly make one of the activators multi-tenant aware, whilst the other activator is not.

Downsides?

  1. There are a couple of extra services in the registry, that nobody really sees outside of your bundle.
  2. You probably need to be a bit extra careful with the private bundle data area as this is now shared between all your activators (if that leads to conflicts, an extra wrapper might help out).
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers

Reply via email to