• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

wsadmin: how can i determine resource reference referenceables uniquely?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic