WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

how to get the object representation of websphere objects using wsadmin

  • 1.  how to get the object representation of websphere objects using wsadmin

    Posted 03/22/11 08:17 AM
    Hi,

    i was wondering how it is possible to get the object representation of websphere configuration objects.

    The AdminConfig.show(id) command will always return a String representation, of the object which has the given id.  however, if you need (parts of) the result of that command for a new command you have to parse the result yourself, which is not very nice, especially if the result consists of a list with key value pairs. For example,
    i am getting the following value for the defaultForwardRoutingPath of a SIBus Destination:

    '[bus MY_INTEGRATION_BUS]\r\n[destination "my.destination. IN"]'

    Parsing this string is no fun, so i was wondering if there is a possibility to get the
    object represenation instead of the string representation.

    thanks in advance,
    cheers,
    andy