Undeploy/remove application from weblogic admin server (wlst/example)

Given weblogic application server. Undeploy/remove application from weblogic admin server using WLST (WebLogic Scripting Tool). We will execute deployment script from wlst console (oracle_common/common/bin/wlst.sh) 1. Steps required to remove/undeploy application from weblogic admin server: Connect to admin server using admin server credentials. Start edit operation to deploy application. Undeploy/remove/delete application from weblogic admin server Save… Read More »

Install/deploy application to weblogic admin server using WLST (script/example)

Given a application war file (*.war). We would like to install/deploy it to weblogic server using WLST (WebLogic Scripting Tool). We will execute deployment script from wlst console (oracle_common/common/bin/wlst.sh) 1. Steps required to install/deploy application to weblogic server: Connect to admin server using admin server credentials. Start edit operation to deploy application. Deploy application to… Read More »

CountDownLatch concurrency example in java

A CountDownLatch allows one or more threads to wait until a set of operations being performed in other threads completes. A CountDownLatch is initialized with a given count. The await methods block until the current count reaches zero due to invocations of the countDown() method. 1. Scenario: Synchronize resources using CountDownLatch (concurrency) Friends has planned… Read More »

Concurrency – Synchronize resources using ReentrantLock in java (example)

Given shared resources in java. Synchronize shares resources using Lock interface. We will use ReentrantLock to protect share resources. A lock is a tool for controlling access to a shared resource by multiple threads. Lock implementations provide more extensive locking operations than can be obtained using synchronized methods and statements. We create five threads, which… Read More »

Concurrency – Producer & Consumer in java (Wait notify example)

Given multi-threading application in java. Create Producer & Consumer threads. Producer thread will produces the data. Consumer thread will consumes the data. Synchronize Producer & Consumer thread using wait & notify methods. 1. DataStore class: DataStore class contains LinkedList to store integer values. DataStore class contains two synchronized methods i.e. get & put put method:… Read More »