Posts

Showing posts with the label Jython

Jython Deployment automation in WebSphere

Image
We can have different JEE applications to install on IBM WebSphere Application Server such as: Enterprise applications .ear files Web Applications .war files Business Application Utility/shared libraries .jar files You need to know what type of application you wish to deploy. Where to install it in the Cell. If it is an EJB application you need to provide the binding details as an initial parameter. All application-related functions are available with AdminApp object. For making the application changes permanent you need to save the AdminConfig. Web application deployment with Jython wsadmin Let's see the war file installation process AdminApp.install(ear, '[-BindJndiForEJBBusiness [[ejb_1.jar ejb1 ejb_1.jar,META-INF/ejb-jar.xml test.ejb1 jndi1 ]]]') # For Web application inside .ear files you need to provide virtual host name. These virtual host varies in the ND cell. AdminApp.install('fullpath/yourApp.ear', ['-MapWebModToVH', [[...

Getting Node id, Cell ID, Server ID of Mbean in wsadmin

Image
Hey automation expert welcome to another interesting exploration on wsadmin basic commands that could build your Jython script much effectively. Let's jump into it. Basic understanding of wsadmin objects Here I've listed out what we need to consider as wsadmin objects which could help as build blocks for your Jython based automation scripts. Node – an individual system, either physical or virtual Node Manager – the process controlling the individual node and all servers in all cells, it executes the commands of the Deployment Manager Profile – a WebSphere entity similar to a node concept wise Application Server – a Java Virtual Machine (JVM) process Application – a Java enterprise application it could be .ear file with some modules Cluster – a group of Servers, all running the same applications Cell – an administrative domain of one or more servers Deployment Manager (DM) – the administration application for a cell How do all these pieces work togeth...