posted 8 years ago
Hello guys,
I'm currently having some issues with wsadmin. My task is to create a Resource Environment for my application server via wsadmin scripting library.
I succeeded in creating a Resource Environment Provider (that was easy)
But here is my problem:
My Resource Environment Provider has 2 Referenceables. Creating these was easy too.
Now i have to create two Resource Environment Entries what makes me struggling with it.
After i createt the two referenceables, i have to get the unique ID of them. But how can i determine the ID?
AdminConfig.getid('Cell:mycell/Node:mynode/Server:myserver/ResourceEnvironmentProvider:myresourceenvirnomnetprovider/Referenceable:/') lists both of the referenceables.
an Example of one referenceables looks like this:
<referenceables xmi:id="Referenceable_1450877781880" factoryClassname="de.usu.s3.VMConfigFactory1" classname="de.usu.s3.VMConfiguration1"/>
<referenceables xmi:id="Referenceable_1450877741714" factoryClassname="de.usu.s3.VMConfigFactory2" classname="de.usu.s3.VMConfiguration2"/>
My Question is: How can i uniquely identify the second Referenceable? It doesn't contain a name, which i can append to the AdminConfig.getid Statement, mentioned above.
I hope, somebody can help me
Best Regards from Germany
Lukas