Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Custom Lifecycle Policies

Hi,

I would like to gain some insight into how custom extensions work. I currently have three policy governors (for the purposes of logical separation), however currently they are all contained in a single JAR.

If I load the three governors into custom extensions (the same JAR three times, with different governor class), and then attempt to modify one of those extensions, it doesn't appear to pick up the changes.

I suspect the problem is that all extensions share the same classloader, so will not be guaranteed to load classes from the JAR file associated with the relevant governor. Is there a recommended/required approach to dealing with multiple custom policy governors?

regards,
ben

0 votes



2 answers

Permanent link
Sorry I forgot to mention this is with RAM 7.5.0.2.

Also, if I change the name of the policy governor (but the class name is the same), when I modify the custom extension the new name is not populated. So either the name is being cached from when the original JAR was loaded, or RAM isn't picking up the new policy governor.

I have tried this test with a new governor class that isn't in any of the other extension JARs, so it doesn't seem to be a classloader issue. Can anyone confirm whether the policy governor name is cached from the first load of a custom extension, or should I expect the name to change after loading the new JAR?

Many thanks.

reagrds,
ben

0 votes


Permanent link
Just to answer my own question, it looks like the name is cached from the first time the extension is loaded. I assume this is because it is the name of the asset created for the extension, and any update via the 'modify' function will just replace the JAR artifact associated with the asset.

I can confirm the JAR was updated by exporting the custom extension.

regards,
ben

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Mar 26 '12, 1:23 a.m.

Question was seen: 6,842 times

Last updated: Mar 26 '12, 1:23 a.m.

Confirmation Cancel Confirm