Description
Actually, I just noticed issue #944 sorted, and my interest coincides with that isse in general, but at this time most specifically regarding deployment of custom mbeans (we have several, for both authorization and auditing for example). I figured I'd put this as separate issue so as not to cloud the original.
===
I'm researching how to convert our present domain-creation style to use WDT instead. But at present I'm in a bind :-(
For this issue I've created a repro'able setup; project attached. I have created a nonsense Auditor ('local.ken1.SampleWlsAuditor') that does nothing except printing to stdout on calls. My goal is to model this and deploy it using WDT, during a createDomain. I'm using WDT 1.9.16, Java 11 and WLS14.
Once I started reading up on it, The Documentation is pretty clear - I apparently have to put the mbean jar (and the schema jar) inside the Oracle_Home in order for this to work (and it does). This is really bad IMHO; at least for us.
I have experimented far and wide to break this limitation, but no success.
My problem is first, that our WLS installs are effectively read-only - the Oracle_Home should not be touched by projects using it. The second problem is that even if we managed to relax this, there is simply no good answer as to what would happen when multiple projects use a single Oracle_Home. At best, they would simply contaminate it for everyone (e.g. project A would see securityproviders particular to project B), but at worst they would need to use different versions of the 'same' provider. I can't see any provision to handle that situation (other than installing 'private' Oracle_Home's for every project - while theoretically possible, not very palatable...).
I believe that there must be a mechanism to allow WDT/WLST to find the requisite mbean/schema jars by some alternate mechanism so the Oracle_Home will not need to be touched. The weblogic.alternateTypesDirectory property appears not to impact domain creation (and unclear if that would work for a schema jar also?).
I'm hoping there is a possible workaround for this - or, one can be devised (likely in terms of #944). At present, this is a bit of a deal-breaker for me. I appreciate the suggestion on using WIT, but involving docker containers at this point would complicate the situation too much (we're moving in that direction, but for the vast majority of several thousand projects this is not practical just now).
Any suggestions? Please? :-)
Thanks,
ken1