Tuesday, September 27, 2016

How to install IBM WebSphere Application Server

Launch IBM installation manager as shown in the screenshot below and add repository.

Note: Click here for IBM Installation Manager installation

Download and extract WAS installer and add repository.config file in the installation manager repository.

Open websphere customization toolbox and create new profile.

Open websphere application server first steps console and check the installation by clicking Installation verification. WAS will be started as part of the Installation verification. If WAS to start/stop navigate to WAS installed directory and start the services.

Start and access WAS admin console and login with admin credentials configured above.

-- Siva Pokuri.

How to install IBM Installation Manager 1.6.2

Download IBM installation manager installer from IBM website for linux as shown in the screenshot below. 

IBM installation manager will be used to install IBM products like IBM WebSphere & IBM HTTP server(IHS).

Extract and install the installation manager using account which has root privileges.

-- Siva Pokuri.

Wednesday, September 21, 2016

How to develop Oracle Virtual Directory 11g Custom Plugin

There are times where out-of-box OVD functionality is no sufficient for client requirements. We may need to write some custom plugins which will extend the OVD functionality.

I'm about to write a post on this but it seems like there is excellent post from Oracle A-team.




Based on the requirement you may need to extend the BasePlugin class methods.


1. postSearchEntry() is the method implementation to manipulate any search results.

2. get() is the method if needed to manipulate the search criteria even before it talks to backend DS.

Hope this helps.

-- Siva Pokuri.

Sample code of OAAM 11g API code to get user challenge questions

import com.bharosa.client.BharosaHelper;
import com.bharosa.client.BharosaSession;
import com.bharosa.client.enums.BharosaEnumAuthStatus;
import com.bharosa.client.enums.BharosaEnumChallengeResult;
import com.bharosa.vcrypt.auth.impl.VCryptAuthSOAPImpl;
import com.bharosa.vcrypt.auth.intf.VCryptAuthResult;
import com.bharosa.vcrypt.auth.intf.VCryptAuthUser;
import com.bharosa.vcrypt.auth.intf.VCryptLocalizedString;
import com.bharosa.vcrypt.auth.intf.VCryptQuestion;
import com.bharosa.vcrypt.common.util.VCryptResponse;
import com.bharosa.vcrypt.tracker.util.CookieSet;
import com.bharosa.vcryptclient.proxy.intf.BharosaProxy;

public class OAAMCQuestions {

* @param args
public static void main(String[] args) {
OAAMCQuestions ocqv =  new OAAMCQuestions();

public void getUserChallengeQuestions(){
String username = "spokuri";
try {
            VCryptAuthSOAPImpl auth = new VCryptAuthSOAPImpl();

            VCryptAuthUser user = new VCryptAuthUser();

            BharosaProxy proxy = BharosaProxyImpl.getInstance();
            String customerID = proxy.getUserByLoginId(username).getCustomerId();
            System.out.println("customerID " + customerID);
            user = proxy.getUser(customerID);
            user = proxy.getUserByLoginId(customerID);
            VCryptQuestion secretQuestion = proxy.moveToNextSecretQuestion(customerID);
            System.out.println("Secret Question " + secretQuestion);
            VCryptQuestion[] secretQuestion1 = proxy.getAllMappedSignOnQuestions(customerID);
            String q1 = secretQuestion1[0].toString();
            System.out.println("Question 1" + q1);
            String q2 = secretQuestion1[1].toString();
            System.out.println("Question 2" + q2);
            String q3 = secretQuestion1[2].toString();
            System.out.println("Question 3" + q3);
        } catch (Exception e) {