Coder Social home page Coder Social logo

WDR

Jython library which aims to greatly simplify WebSphere scripting.

Features

  • makes wsadmin scripts more "Pythonic" and readable and maintainable in result
  • allows interoperability with "legacy" Jython scripts including mixing of classic wsadmin and WDR code
  • works with currently supported WSAS versions (6.1 and later)
  • Open Source, Apache License, Version 2.0

Some highlights

Listing nodes and servers available in configuration

for node in listConfigObjects('Node'):
    print node.name
    for server in node.listConfigObjects('Server'):
        print " " + server.name

The same code in wsadmin would look like as follows:

for node in AdminConfig.list('Node').splitlines():
    print AdminConfig.showAttribute(node, 'name')
    for server in AdminConfig.list('Server', node).splitlines():
        print ' ' + AdminConfig.showAttribute(server, 'name')

Modifying configuration objects

jvm = getid1('/Server:dmgr/JavaProcessDef:/JavaVirtualMachine:/')
jvm.initialHeapSize = 64
jvm.maximumHeapSize = 512

Invoking MBean operations

dmgr = getMBean1(type='Server', process='dmgr')
dmgr.restart()

Configuration using manifests

Server
    *name sever1
    -processDefinitions
        JavaProcessDef
            -jvmEntries
                JavaVirtualMachine
                    -maximumHeapSize 1024
                    -systemProperties
                        Property
                            *name java.awt.headless
                            -value true

Getting started

  • Clone the latest repository with git clone https://github.com/WDR/WDR.git
  • run wsadmin with
    • -profile $WDR_HOME/profile.py
    • -javaoption "-Dpython.path=$WDR_HOME/lib/common:$WDR_HOME/lib/legacy"

Visit WDR home page for more...

For more documentation and examples check WDR home page.

wdr's Projects

wdr icon wdr

Jython framework aiming for simplified WebSphere Application Server scripting

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.