Thursday, 31 May 2018

Websphere Basics

Questions & Answers
1. What is master repository?

A. Deployment manager contains the MASTER configuration and application files.
   All updates to the configuration files should go through the deployment manager.

2. What about IHS?

A. IHS (IBM HTTP Server) is one of the web servers.
   It serves the static content only and it takes up only http requests.

3. What about plug-in?

A. Plug-in is one of the modules it is interface between application server and web server,
   the plug-in process receives the request from the client first.
   If the request is for dynamic content,
   the plug-in diverts the request to the websphere application server.
   If the request is for static content,
   the plug-in forwards it to the Http server.

4. What is SSL?

A. ssl(secure socket layer) is a protocol for providing encrypted data communications between two processes.

5. What is the difference between web server and application server?

A. Application Server: takes care of Security, Transaction, Multithreading, Resource pooling,
   load balancing, clustering, performance, highly availability, scalability, etc.
   Exposes business logic to client applications through various protocols, possibly including HTTP.
   Supports deployment of .war and .ear files Application server = web server + EJB container.


6. Diff b/w weblogic and websphere?

A. Both BEA Weblogic and IBM’s WebSphere provide J2EE based application servers which are competitors.
   WebSphere leverages more on connectivity issues with MQ and legacy systems with strong dominance in J2EE.

Sunday, 26 November 2017

How to select a substring string between two special characters in a String using Oracle sql

SELECT SUBSTRING('abc(praveen)def()tutorial',INSTR('abc(praveen)def()tutorial','(',-1,1)-1,INSTR('abc(praveen)def()tutorial',')',-1,1)-1-INSTR('abc(praveen)def()tutorial','(',-1,1)-1) from DUAL;

The above query output is null

SELECT SUBSTRING('abc(praveen)def()tutorial',INSTR('abc(praveen)def()tutorial','(',-1,2)-1,INSTR('abc(praveen)def()tutorial',')',-1,2)-1-INSTR('abc(praveen)def()tutorial','(',-1,2)-1) from DUAL;

 The above query output is praveen

Wednesday, 24 August 2016

Unix Shell Scripting (day 2)

Shell Scripting:
Command for                                                              command
1.creating text file with some text                               cat  >  text_file_name
Note:To end the above created text document press ctrl+d on ur key board.
2.To view the content of the text file                           cat  <  text_file_name
3.To merge the content of 2 different
      files into another file                                              cat  file_name_1 file_name_2  >  file_name_3
4.renaming a file                                                          mv  Old_file_name  New_file_name
5.removing a file                                                          rm  file_name
6.removing a directory                                                 rm -r  directory_name
7.removing a directory                                                 rmdir  directory_name
8.to copy a existing file from one place to another      cp  file_name1  folder_name/file_name2
Note: Copying a "file name1" existed in home folder into a folder_name "music"  with name "file name2" 
9.to create a link between two files(replica)                ln file_name_1  file_name_2
Note:In 9th command whatever the changes made in file_name_1 it reflected in file_name_2
10.to create a soft link for the hard link                       ln  -s  file1  file2
 Note :In 10nth command file1 is hard link and file2 is soft link. it will not reflect anything to hard     
           link  when we remove the soft link. If we remove the hard link then soft link will not open since hard link of it was not exist.

Unix Shell Scripting(day 1)

Shell Scripting:
All Unix Commands should be in Lower Case only

       Command for                                             command                                
1.The time at which i login                         -   who am i       
2.present working directory                        -   pwd           
3.present calender                                       -    cal            
4.calender of a particular date                     -   cal 7 2009    
                                                                         cal feb 2003    
5.current date                                               -   date                                                                      
6.customized date                                        -   date '+DATE:%m-%y%nTIME:%H:%M:%S'
7.creating empty text files                           -   touch text_file_name1,... 
8.creating directories                                   -   mkdir directory_name           
9.folder inside a folder                                -   mkdir existingfolder_name/new folder_name
10.change directory  from one to another   -   cd directory name
                                                                                 

Monday, 22 August 2016

SWIFT Messages in Banking

SWIFT stands "Society for WorldWide Interbank Financial Telecommunication".

It is a messaging network that financial institutions use to securely transmit information and instructions through a standardized system of codes.

Swift assigns  each financial organization a unicode that has either 8 characters or 11 characters.
The code is called Interchangeably the Bank Identifier Code(BIC),Swift Code,Swift ID or ISO 9362.

Example for SWIFT code:
UNCRITMM it is a swift code for ITALIAN bank UniCredit Banca head quartered in Milan.
The first four characters UNCR  in above swift code represents the bank code
The Next two letters IT represents country code
The next two letters MM represents the Location/City Mode 

If you want to know structure of the swift message in detail it is explained in below link
http://www.sepaforcorporates.com/swift-for-corporates/read-swift-message-structure/

instanceof VS isInstance()

instanceof vs isInstance():

instanceof: It is used to find the Object is a particular type or not .

Example:
Thread t=new Thread();
System.out.println(t instanceof Runnable);

In above example we know particular type i.e., Runnable,we are checking whether the given object 't' is Runnable type or not.

isInstance(): when we don't know the particular type at starting to check whether the given object is of particular type or not. For this we have to check the type of the given object dynamically at run time as shown below example

Example:
class Test {
public static void main(String args) throws Exception{
Thread t=new Thread();
System.out.println(Class.forName(args[0]).isInstance(t));
}
}
output:
java Test java.lang.Runnable
o/p:true
java Test String
o/p:false