Search code examples
weblogicwlstalsb

ALSB automation


One of the elegant things about WebLogic is WLST (Weblogic Scripting). Is it possible to script actions done in ALSB (Aqualogic Service Bus)?

For example: Exporting resources from the bus.


Solution

  • I found out how to export. You need to grab an instance of ALSBConfigurationMBean like so.

     if currentTree() != domainRuntime:
        domainRuntime()
    
    alsbConfigBean = findService(ALSBConfigurationMBean.NAME, ALSBConfigurationMBean.TYPE)
    

    From there you just do a query for the correct references. Documentation for ALSBConfigurationMBean is here

    Found some sample Jython code here