Thursday, 4 October 2012

List of Windows keyboard Shortcuts

  • ALT+- (ALT+hyphen) Displays the Multiple Document Interface (MDI) child window's System menu
  • ALT+ENTER View properties for the selected item
  • ALT+SPACEBAR Display the System menu for the active window
  • ALT+F4 Close the active item, or quit the active program
  • ALT+ESC Cycle through items in the order they were opened
  • ALT+Underlined letter Display the corresponding menu
  • ALT+TAB Switch between open items
  • BACKSPACE View the folder one level up in My Computer or Windows Explorer
  • CTRL+X Cut
  • CTRL+A Select all
  • CTRL+B Bold
  • CTRL+I Italics
  • CTRL+C Copy
  • CTRL+Z Undo
  • CTRL+O Open an item
  • CTRL+U Underline
  • CTRL+V Paste
  • CTRL while dragging Copy selected item
  • CTRL+F4 Close the active document
  • CTRL+SHIFT while dragging Create shortcut to selected iteM
  • CTRL+LEFT ARROW Move the insertion point to the beginning of the previous word
  • CTRL+DOWN ARROW Move the insertion point to the beginning of the next paragraph
  • CTRL+RIGHT ARROW Move the insertion point to the beginning of the next word
  • CTRL+UP ARROW Move the insertion point to the beginning of the previous paragraph
  • SHIFT+DELETE Delete selected item permanently without placing the item in the Recycle Bin
  • ESC Cancel the current task
  • F1 Displays Help
  • F2 Rename selected item
  • F3 Search for a file or folder
  • F4 Display the Address bar list in My Computer or Windows Explorer
  • F5 Refresh the active window
  • F6 Cycle through screen elements in a window or on the desktop
  • F10 Activate the menu bar in the active program
  • SHIFT+F10 Display the shortcut menu for the selected item
  • CTRL+ESC Display the Start menu
  • SHIFT+CTRL+ESC Launches Task Manager
  • SHIFT when you insert a CD Prevent the CD from automatically playing
  • WIN Display or hide the Start menu
  • WIN+BREAK Display the System Properties dialog box
  • WIN+D Minimizes all Windows and shows the Desktop
  • WIN+E Open Windows Explorer
  • WIN+F Search for a file or folder
  • WIN+F+CTRL Search for computers
  • WIN+L Locks the desktop
  • WIN+M Minimize or restore all windows
  • WIN+R Open the Run dialog box
  • WIN+TAB Switch between open items

       Windows Explorer Shortcuts:
  • ALT+SPACEBAR - Display the current window’s system menu
  • SHIFT+F10 - Display the item's context menu
  • CTRL+ESC - Display the Start menu
  • ALT+TAB - Switch to the window you last used
  • ALT+F4 - Close the current window or quit
  • CTRL+A - Select all items
  • CTRL+X - Cut selected item(s)
  • CTRL+C - Copy selected item(s)
  • CTRL+V - Paste item(s)
  • CTRL+Z - Undo last action
  • CTRL+(+) - Automatically resize the columns in the right hand pane
  • TAB - Move forward through options
  • ALT+RIGHT ARROW - Move forward to a previous view
  • ALT+LEFT ARROW - Move backward to a previous view
  • SHIFT+DELETE - Delete an item immediately
  • BACKSPACE - View the folder one level up
  • ALT+ENTER - View an item’s properties
  • F10 - Activate the menu bar in programs
  • F6 - Switch between left and right panes
  • F5 - Refresh window contents
  • F3 - Display Find application
  • F2 - Rename selected item

       Internet Explorer Shortcuts:
  • CTRL+A - Select all items on the current page
  • CTRL+D - Add the current page to your Favorites
  • CTRL+E - Open the Search bar
  • CTRL+F - Find on this page
  • CTRL+H - Open the History bar
  • CTRL+I - Open the Favorites bar
  • CTRL+N - Open a new window
  • CTRL+O - Go to a new location
  • CTRL+P - Print the current page or active frame
  • CTRL+S - Save the current page
  • CTRL+W - Close current browser window
  • CTRL+ENTER - Adds the http://www. (url) .com
  • SHIFT+CLICK - Open link in new window
  • BACKSPACE - Go to the previous page
  • ALT+HOME - Go to your Home page
  • HOME - Move to the beginning of a document
  • TAB - Move forward through items on a page
  • END - Move to the end of a document
  • ESC - Stop downloading a page
  • F11 - Toggle full-screen view
  • F5 - Refresh the current page
  • F4 - Display list of typed addresses
  • F6 - Change Address bar and page focus
  • F1 - Display Internet Explorer Help
  • ALT+RIGHT ARROW - Go to the next page
  • SHIFT+CTRL+TAB - Move back between frames
  • SHIFT+F10 - Display a shortcut menu for a link
  • SHIFT+TAB - Move back through the items on a page
  • CTRL+TAB - Move forward between frames
  • CTRL+C - Copy selected items to the clipboard
  • CTRL+V - Insert contents of the clipboard
  • ENTER - Activate a selected link
  • HOME - Move to the beginning of a document
  • END - Move to the end of a document

Matrix Effect using notepad








        This is amazing notepad trick which will display matrix effect like you might have seen in movies, that is numbers flashes in green colour. Basically we will be creating a small batch file in notepad.

  • Go to Notepad and copy below codes
@echo off

color 02

:start

echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

goto start
  • Save this file as matrix.bat 
  • Now open this file as see matrix effect on your screen.

Change your IP Address in less then 1 minute



  • Click on "Start" in the bottom left corner of the screen.
  • Click on "RUN"
  • Type in "command" and click OK

      You should now be at MSDOS prompt Screen

  • Type "ipconfig /release" just like that, and press "enter"
  • Type "exit" and leave the prompt
  • Right-click on "Network Places" or "My Network Places" on your desktop.
  • Click on "properties"

     Now you should  be on a screen with something titled "Local Area Connection", or something  similar to that, and, if you have a network hooked up, all of your other networks.

  •  Right click on "Local Area Connection" and click "properties"
  • Double-click on the "Internet Protocol (TCP/IP)" from the list under the "General" tab
  • Click on "Use the following IP address" under the "General" tab
  • Create an IP address (It doesn't matter what it is)
  • Press "Tab" and it should automatically fill in the "Subnet Mask" section with default numbers.
  • Press the "Ok" button here
  • Hit the "Ok" button again

     Now you should be back to the "Local Area Connection" screen.

  • Right-click back on "Local Area Connection" and go to properties again.
  • Go back to the "TCP/IP" settings
  • This time, select "Obtain an IP address automatically"
  • Click on "Ok"
  • Hit "Ok" again.
  • Now you have a New IP address.

WebSphere MQSI commands 

----------------------------------------

1.Mqsisetdbparams
Mqsisetdbparms–brokername– -n –DataSourceName -u –DataSourceUserId -p DataSourcePassword
To delete the set dbparams command
Mqsisetdbparms–brokername– -n –DataSourceName

2.mqsisetcapacity  
The mqsisetcapacity command to set the number of valid product licenses on your system.
mqsisetcapacity -c n
where n is the number of valid licences

3. mqsilistaclgroup 
Use the mqsilistaclgroup command to view or list the currently defined:
• User groups
• Users
• Objects
• Access control lists
mqsilistaclgroup--+--------------------+--------------------><
+- -g --GroupName ---+
+- -u --UserName ----+
 +- -b --Broker-------+
+- -e --ExeGroup-----+
 ---+
‘- -t —————

4.mqsidisplaycapacity 
The mqsidisplaycapacity command to display the number of valid product licenses and the processor count values on
the system
 Mqsidisplaycapacity

5.mqsideploy
mqsideploy command to make a deploy request to the Configuration Manager
mqsideploy –b broker name – complete  delta/complete –topic topic name –topology topology name -cancel –r –w
timeoutValue – connection  connection filename –e   execution  groupname –bar bar file name  -rmMsgFlow name

6.mqsideleteaclgroup
 The mqsideleteaclgroup command to delete the Configuration Manager database table relating to the group or user access control lists that you have defined
Mqsideleteaclgroup –f filename –g groupname –u username –b broker name –e exegroup –s subscription –r –t filename: File from which to import the configuration. The output of the mqsilistaclgroupcommand is the correct forma

7.Mqsicustomize
      Mqsicustomize command to customize the broker from the root directory of your broker,  for example,    
/var/wmqi/MQP1BRK.This command is supported

8.Mqsicreatemsgdefs
    This command is used to create the message defination files in ma message sets
Syntax is
    Mqsicreatemsgdefs -p  -d    -rmp -rmd

9.mqsicreatebar
     The mqsicreatebar command provides a command line compiler that creates deployable broker archive files
containing message flows and dictionaries.
Syantax
Mqsicreatebar –data  workspacepath –b barfile –version vesionstring –p projectname –o file path
In the above command barflies and file path are required attributes.

10.mqsichangeflowstats
       The mqsichangeflowstats command to:
• Turn on or off accounting and statistics snapshot publication, or archive record output.
• Specify that the command be applied to a specific flow message flow, or all flows in an execution group, or
all execution groups belonging to a broker.
• Modify the granularity of the data collected in addition to the standard message flow accounting and
statistics. This extra data can include thread related data, node related data, node terminal related data, or a
mixture of this data.
Sample command
Mqsichangeflowstats BrokerA -s -g -j -b none

11.mqsireportflowstats
       mqsireportflowstats command to display the current options for accounting and statistics that have been set
using the mqsichangeflowstats command
mqsireportflowstars –reportflowwstars –a=yes –rs –s

Publish/subscribe commands
12.Mqsiclearmqpubsub
       The mqsiclearmqpubsub command to remove an MQSeries Publish/Subscribe broker as a neighbor of this
WebSphere Business Integration Event Broker broker.
Syntax
Mqsiclearmqpubsub – brokername –n neighborqueuemanagename

 13.mqsijoinmqpubsub
     The mqsijoinmqpubsub command to join this WebSphere Business Integration Event Broker broker to an Miseries Publish/Subscribe broker network. The command identifies a specific Miseries Publish/Subscribe broker to be the
parent of the WebSphere Business Integration Event Broker broker
Syntax
Mqsijoinmqpubsub –brokername –p –parentQueueManagerName

14.Mqsilistmqpubsub
The mqsilistmqpubsub command to display the status of the Miseries Publish/Subscribe neighbor brokers to the
specified WebSphere Business Integration Event Broker broker
Syntax
Mqsilistmqpubsub–brokername.

Migration commands
15.Mqsimigratemsgflows
       The mqsimigratemsgflows command to create new flows in the WebSphere Business Integration Event Broker
V5.0 format, based on existing exported flows from a WebSphere MQ Event Broker V2.1 Configuration Manager.
Mqsimigratemsgflows –data workspacepath –p projectname –d directoryname –rm –log logfilename

16.mqsimigratemsgsets
      The mqsimigratemsgsets command imports all the files with the extension .mrp in the directory specified by the -d
parameter. Files with any other extension are ignored.
Syntax
Mqsimigratemsgsets –d , -d ata workspace –rm –g –log -v

17.Mqsimigratetables
    The mqsimigratetables command to migrate the database tables for brokers or the Configuration Manager.
Syntax
Mqsimigratetables –brokername  -I serviceuseid –a service password
Mqsimigratetables –Configmgr  -I serviceuseid –a service password
Properties commands
Mqsichangeproperties,Mqsireportproperties

Trace Commands
18.Mqsichangetrace
    The mqsichangetrace command to set the tracing characteristics for a component
Syntax
usertrace
Mqsichangetrace – borker name u – e executiongroupname –f flow –r –l level – m mode –
Service trace
Mqsichangetrace – borker name -t – e executiongroupname –f flow –r –l level – m mode

19.mqsiformatlog
    The mqsiformatlog command to process the XML log created by mqsireadlog.
 Syntax
Mqsiformatlog –I inputfilename –o outfilename.

20.Mqsireadlog
    The mqsireadlog command to retrieve the trace log for the specified component
mqsireadlog –componet –u –e egroup –f flowname–o outfilename

21.mqsireporttrace
    The mqsireporttrace command to display the trace options currently in effect. This command is valid for:syntax
mqsireporttrace –componet –u –e egroup –f flowname –o outfilename

22.Mqsicreateusernameserver
     This command is used to create the usename server
Mqsicreateusernameserver –I service userid –a servicepassword –q queuemanagername –r intervel

23.Mqsichangeusernameserver
Mqsichangeusernameserver command to change various properties of the User Name Server.

24.Deleteusernameserver
Deleteusernameserver is used to delete the usenameserver
ConfigManager Commands

25.MqsicreateConfigMgr
      Syntax>>-mqsicreateconfigmgr– -i –ServiceUserID –a serviecpassword –q queuemanagername –n databasename
–u databaseuserid –p databasepassword –d securitydomainname –s username serverqueumanagername –w work path

26.MqsichangeconfigMgr
 syntax
MqsichangeconfigMgr – a servicepassword –I serviceuserid –p databasepassword –g usernameserver queuemgrname
–d securitydomainname –j maxjvmheapsize

Broker Commands
27.Mqsicreatebroker
Syntax
Mqsicreatebroker brokername –I serviceuserid –a servicepassword –q queuemanagername –n datasourecname –u
datasourecuserid –p datasourcepassword –s unsqm -w workpath –l userlilpath –g configurationtiemout –p http port

28.Mqsichangebroker
Syntax
Mqsicreatebroker brokername ––a servicepassword I serviceuserid   –p datasourcepassword –s unsqm -w workpath
–l userlilpath –g configurationtiemout –p http port

29.Mqsideletebroker
Syntax
Mqsideletebroker brokername

30 .Mqsireload  
To request the broker to stop and restart execution groups.
Syntax
Mqsireload brokername –egroup

31.mqsicbrreport
    The mqsicbrreport command to help identify applications that use a content-based routing filter. The program
inspects a broker’s subscriptions table, and reports any filters it finds that might cause incompatible behavior.
Syntax
Mqsicbrreport brokername

32.Mqsideleteconfigmg
Syntax mqsideleteconfigMgr

Publish Subscribe Concept in MQ

 ------------------------------------------------------------

1) First of all create a QueueManager(QM1).

2) Runmqsc QueueManagerName(QM1)

3) Create Topic:
 
      define topic(topic name) topicstr(topic string name)

4) Create Subscription:

       define sub(Subscription name) topicstr(topic string name) destqmgr(destination Queue Manager   Name) dest(Subscription Queue Name)

5) Test Publication:

        amqspub TopicStringName DestinationQueueManagerName

PAN Card  explained

                                                                                                                                                                        PAN is a 10 digit alpha numeric number, where the first 5 characters are letters, the next 4 numbers and
the last one a letter again. These 10 characters can be divided in five parts as can be seen below. The
meaning o
f each number has been explained further.
1. First three characters are alphabetic series running from AAA to ZZZ
2. Fourth character of PAN represents the status of the PAN holder.
• C — Company
• P — Person
• H — HUF(Hindu Undivided Family)
• F — Firm
• A — Association of Persons (AOP)
• T — AOP (Trust)
• B — Body of Individuals (BOI)
• L — Local Authority
• J — Artificial Juridical Person• G — Government
3. Fifth character represents first character of the PAN holder’s last name/surname.
4. Next four characters are sequential number running from 0001 to 9999.
5. Last character in the PAN is an alphabetic check digit.
Nowadays, the DOI (Date of Issue) of PAN card is mentioned at the right (vertical) hand side of the
photo on the PAN card.

SSL configuration in WebSphere Message Broker


What this exercise is about
This article shows you how to set up SSL communication in WebSphere Message Broker on Windows System. It also includes an example of testing the SSL using a flow.
In the first part of the exercise you will go through steps involved in configuring SSL
In the second part of the exercise you will go through How to Configure Message Broker to serve HTTP/HTTPS requests
In the third part of the exercise you will go through How to Set up ports exclusively for execution groups
In the fourth part of the exercise you will go through How to Set up JVM attributes for execution groups
In the fifth part of the exercise you will go through Testing SSL with MB.

What you should be able to do

At the end of the exercise you will be able to :
  • Generate a .jks keystore.
  • Generate a certificate signing request (CSR) for the existing keystore.
  • Import a root or intermediate Certificate Authority (CA) certificate to the existing keystore of extension “.crt”.
  • Import a signed certificate of extension “.cer”to the existing keystore.
  • Validate the certificate details.
  • Testing the SSL

Introduction
     Java Keytool is a key and certificate management utility which allows users to manage their own public/private key pairs and certificates. It also allows users to cache certificates. Java Keytool stores the keys and certificates in what is called a keystore. By default the Java keystore is implemented as a file. It protects private keys with a password. A Keytool keystore contains the private key and any certificates necessary to complete a chain of trust and establish the trustworthiness of the primary certificate.

    Each certificate in a Java keystore is associated with a unique alias. When creating a Java keystore you will first create the .jks file that will initially only contain the private key. You will then generate a CSR and have a certificate generated from it. Then you will import the certificate to the keystore including any root certificates. Java Keytool also several other functions that allow you to view the details of a certificate or list the certificates contained in a keystore or export a certificate.


Part 1: Steps for Configuring SSL

Step 1:- Generate a Java keystore and key pair

keytool -genkey -alias mydomain -keyalg RSA -keystore keystore.jks -keysize 2048

Inorder to issue this command,open IBM Command console & change the path as per your requirement

where
<Keytool> is a key & certificate management utilityu tool
<genkey> Generate a pair of keys ( Private key and Public key)
<alias> is the alias name used for the private key for security.
<keyalg> identifies the algorithm we used
<keystore> identifies the keystore.
<keysize> specifies the size in bits format.
2048 is the bit structure used.It also depends on the OS used.

On issuing this command it prompts for Keystore password.Then it asks for some more security questions.This command generates a keystore.jks file in the specified path.

Step 2:- Generate a certificate signing request (CSR) for an existing Java keystore

keytool -certreq -alias mydomain -keystore keystore.jks -file mydomain .csr

After entering the password,if no errors were found within the command,it moves to path without showing any message ,otherwise it displays error message like “keyttool error”

where
<certreq> Location where csr file is stored.Used to generate a certificate request to send to the certificate authority
<alias> is the alias used for the key. By default set to “mykey”.
<keystore> using the -genkey command to generate a key pair (public and private key)
<file> indicates the file name with path.

Step 3:- Import a root or intermediate CA certificate to the existing keystore

Here we have to send the .csr file to the Certificate Authority team to get the certificates generated.For this visit www.verisign.com & get free trials.Then it asks for some personal details like our email id & server name.Then we have to upload our csr file.The generated crt file will then be sent to our email id.
After receiving the signed certificate from the CA, save it in notepad with extension.crt & proceed with the following steps:
keytool -import -trustcacerts -alias root -file Cert.crt -keystore MBV7Broker.jks

where
<keystore> file name is MBV7Broker.jks and the intermediate CA cert is Cert.crt.This file can be generated by using third party CA's like GlobalSign and VeriSign.

<trustcacerts> used to provide additional certificates for the chain of trust, namely the certificates
<file> indicates the file name with path.
<keystore> using the -genkey command to generate a key pair (public and private key)
<printcert> Reads the certificate from the file cert_file, and prints its contents in a human-readable format.

Step 4:-Import a signed primary certificate to an existing Java keystore

keytool -import -trustcacerts -alias MBV7Broker -file certificate.der -keystore MBV7Broker.jks

where
<trustcacerts> used to provide additional certificates for the chain of trust, namely the certificates

Step 5:- Validate the certificate details

To List all certificates available in the keystore

keytool -list -keystore miracle.jks


Part 2 :- Configuring Message Broker to serve HTTP/HTTPS requests

  1. To List the broker registry
mqsireportproperties MBV7Broker -o BrokerRegistry -r
where
o – objects
r – includes listing of child elements also if present.

  1. Import root certificates and server certificates to the broker truststore

keytool -import -trustcacerts –alias Certificate.Cert -file “C:\IBM\MQSI\7.0\Cert.crt”
-keypass <password> -keystore cacerts –storepass changeit

3. Enable SSL on the broker instance
This command enables SSL for the HTTP listener object:
mqsichangeproperties MBV7Broker -b httplistener -o HTTPListener -n enableSSLConnector -v true

  1. Modify broker properties to point to the keystore file
mqsichangeproperties MBV7Broker -b httplistener -o HTTPSConnector -n keystoreFile -v “C:\IB\MQSI\7.0\ MBV7Broker.jks”

  1. Add broker keystore file to broker registry
mqsichangeproperties MBV7Broker -o BrokerRegistry -n brokerKeystoreFile
-v “C:\IBM\MQSI\7.0\ MBV7Broker.jks”

6. Add broker truststore file to broker registry
mqsichangeproperties MBV7Broker -o BrokerRegistry -n brokerTruststoreFile -v “C:\IBM\MQSI\7.0\jre16\lib\security\cacerts”


7. Set the registry password for keystore
mqsisetdbparms MBV7Broker -n brokerTruststore::password -u temp -p changeit


8. Associate the broker with keystore password
mqsichangeproperties MBV7Broker -b httplistener -o HTTPSConnector -n keystorePass -v <password>


9. Associate a port for broker to serve HTTPS requests
mqsichangeproperties MBV7Broker -b httplistener -o HTTPSConnector -n port -v 7094


10. Associate a port for broker to serve HTTP requests
mqsichangeproperties MBV7Broker -b httplistener -o HTTPConnector -n port -v 7091


11. Change the JVM attributes
You can change JVM heap sizes according to your requirements by modifying the object ComIbmJVMManager:

mqsichangeproperties MBV7Broker -o ComIbmJVMManager -n jvmMaxHeapSize -v 1048576000

mqsichangeproperties MBV7Broker -o ComIbmJVMManager -n jvmMinHeapSize -v 134217728


12. Verify the broker properties
mqsireportproperties MBV7Broker -b httplistener -o HTTPConnector -n port 7091

mqsireportproperties MBV7Broker -b httplistener -o HTTPSConnector -n port 7094


  1. Restart the broker
 mqsistop MBV7Broker
 mqsistart MBV7Broker
 mqsistop MBV7Broker
 mqsistart MBV7Broker

Part 3:- Setting up ports exclusively for execution groups
To serve the HTTP requests, a port needs to be configured at the execution group (EG) level.

1. Configure the SSL protocol
First tell the EG which SSL protocol type are using. SSLv3 is the default SSL protocol.
mqsichangeproperties MBV7Broker -e <EG Name> -o HTTPSConnector -n sslProtocol -v SSLv3
2. Associate the keystore file with the broker EG
The keystore file created earlier needs to be associated with the broker instance in order for it to know its repository file. To avoid confusion, do not have multiple keystore files on the server.

mqsichangeproperties MBV7Broker -e default -o HTTPSConnector 
    -n keystoreFile -v “C:\IBM\MQSI\7.0\MBV7Broker .jks”


3. Associate the keystore type.
You should configure the keystore type on the broker, because there are several other keystore types supported by broker. Information on these types is outside the scope of this article, which uses a Java Keystore (JKS).
mqsichangeproperties MBV7Broker -e default -o HTTPSConnector -n keystoreType -v JKS


4.Associate the keystore password
Associate the keystore password to the broker so that it can save it in its registry for authentication purpose, which is required when querying the new requests:
mqsichangeproperties MBV7Broker -e default -o HTTPSConnector -n keystorePass -v <password>


Part 4 : Setting up JVM attributes for execution groups
When an execution group is started in WebSphere Message Broker, it creates a JVM that is primarily used by the IBM primitive nodes that make use of Java functionality. The DataFlowEngine JVM can be configured either by passing parameters to it directly, or through the broker. When using the broker JVM by any of the means above, the DataFlowEngine memory may continue to grow and may cause resource problems. Use the following few commands to set up your min and max JVM heap size:

mqsichangeproperties MBV7Broker -e default -o ComIbmJVMManager -n keystoreFile 
    -v “C:\IBM\MQSI\7.0\MBV7Broker.jks”


mqsichangeproperties MBV7Broker -e default -o ComIbmJVMManager -n keystoreType 
    -v JKS

mqsichangeproperties MBV7Broker -e default -o ComIbmJVMManager -n keystorePass 
    -v brokerKeystore::password


mqsichangeproperties MBV7Broker -e default -o ComIbmJVMManager -n truststoreFile 
    -v “C:\IBM\MQSI\7.0\MBV7Broker.jks”


In this command, the keystore file type is associated with the ComIbmJVMManager object.

mqsichangeproperties MBV7Broker -e default -o ComIbmJVMManager -n truststoreType -v JKS


When querying new requests, associate the keystore password with the broker’s ComIbmJVMManager object so that it can be saved it in its registry for authentication purposes:
mqsichangeproperties MBV7Broker -e default -o ComIbmJVMManager -n truststorePass 
    -v brokerTruststore::password



Testing SSL using a Message flow:-
Message Flow Creation
Request Flow


Inorder to fire a message,we used MQInput node where we give some BLOB data to fire the flow.The HTTPRequest invokes the service at http://localhost:7091/test1 where 7091 is the port no. which we have configured earlier using commands.


Node Name
Node type
Properties
MQInput
MQInput
(Basic) Queue Name : q1
(Input Message parsing) Message Domain : BLOB : For messages with an unspecified format
(Security) Identity Token Type : Transport Default
HTTPRequest
HTTPRequest
(Basic) Web service URL : http://localhost:7091/test1
(Input Message parsing) Message Domain : XMLNSC : For XML messages (namespace aware, validation, low memory use)
(SSL) SSLProtocol:SSLV3
Enable SSL Certificate Hostname Checking - check this box
(Advanced) Response Message Location in Tree - OutputRoot.BLOB
Compute
Compute
Default Properties

MQOutput
MQOutput
(Basic) Queue Name : q2



Response Flow


HTTPInput
HTTPInput
HTTPReply
HTTPReply
Default Properties




Configuring an HTTPRequest node to use SSL

Creating a message flow to make HTTPS requests

The following message flow creates a generic message flow for converting a WebSphere® MQ message into an HTTP Request:
  1. Create a message flow with the nodes MQInput->HTTPRequest->Compute->MQOutput.
  2. On the MQInput node, set the queue name to “q1” and create the WebSphere MQ queue.
  3. On the MQOutput node, set the queue name to “q2” and create the WebSphere MQ queue.
  4. On the HTTPRequest node, set the Web Service URL to point to the HTTP server to call. To call the HTTPInput node, use http://localhost:7091/test1.
  5. On the Advanced properties tab of the HTTPRequest node, set the Response message location in tree property to OutputRoot.BLOB.
  6. On the Compute node, add the following ESQL code:
The message flow is now ready to be deployed to the broker.

Configuring HTTPInput and HTTPReply nodes to use SSL

For this we have to Configure the HTTPInput and HTTPReply nodes to communicate with other applications that use HTTPS by creating a keystore file, configuring the broker to use SSL, and creating a message flow to process HTTPS requests.

Creating a message flow to process HTTPS requests

Create a simple message flow to use HTTPS by connecting an HTTPInput node to an HTTPReply node. The two most important properties to set on the HTTPInput node are:
  • Path suffix for URL; for example, /* or /testHTTPS.
  • Use HTTPS.
/* means that the HTTPInput node matches against any request that is sent to the HTTP listener on a designated port.
You can now deploy the message flow to the broker. If you have completed all the documented steps, message BIP3132 is written to the local system log (on Windows, the event log), stating that the HTTPS listener has been started.
You can now test the system.

Testing the example

To test that the example works, complete the following steps:
  1. After Succesful creation of request & response flow.
  2. Deploy the HTTPRequest message flow.
  3. Put a message to the WebSphere MQ queue HTTPS.IN1. If successful, a message appears on the output queue. If the process fails, an error appears in the local error log (which is the event log on Windows).

Testing your configuration

The simplest method of testing whether HTTPS is configured correctly is to use a Web browser to make a request to the broker over HTTPS.
Start a Web browser and enter the following URL:
 http://localhost:7091/test1
Change values in the URL to reflect the changes that you have made in your broker configuration; for example, the port number. When a window is displayed asking you to accept the certificate, select Yes. The browser refreshes the window and displays an empty HTML page:

  • In Mozilla browsers, the empty HTML page looks like the following example:

  • In Internet Explorer, the following information is displayed:
XML document must have a top level element. Error processing resource
'http://localhost:7091/test1'



These responses mean that a blank page was returned, indicating that the setup worked correctly. To add content to the empty page, you can add a Compute node to the flow.
You can use another HTTPS client to process HTTPS requests. Read the documentation for the client to find out how to configure it to make client connections over SSL.
You can also use another HTTPS client, such as a Java or .net client, instead of the Web browser. Depending on the type of client, you might need to export the certificate (which was created with keytool) from the keystore file associated with the HTTP listener, then import it into the keystore for the client. Read the client documentation to find out how to configure the client to make client connections over SSL.


We can also test this Flow by using SOAPUI or by pasting url in the address bar and hitting enter key.
1.On pasting the url “http://172.17.5.110:7091/test1” into the address bar,the response flow begins


& then it displays a message on the browser like


2.Using SOAPUI tool:-
Open SOAPUI tool then goto file -->preferences to do all the necessary configurations for ssl.


Then a preferences window appears like this:-


It asks for jks path along with keystore password along with port no.which we configured earlier.


Then start the request flow by putting some sample BLOB message in MQInput nodeThen the flow starts
then click on “submit request to specific endpoint URL” from SOAPUI tool

Then it hits the response flow

then again back to the request flow to process the compute node

and finally the message is sent to the MQOutput node.

After processing we can see the response in the SOAPUI Tool

Installing Certificates in Internet Explorer
Step1:-Goto Tools → Internet Options

Step 2:- Browse to Content Tab and in the Certificates are click certificates button

Step 3:-The certificates window opens there find Import button & click on it

Step 4:- Goto path where you stored the certificates

and click open..
Step 5:- Here choose Automatically select the certificate store based on the type of certificate

Finally click on Finish...

Then you see this window.

Finally To check whether our certificate was imported successfully into the browser:-






Situations where Collector node can be used in Websphere Message Broker

A collector node can wait for  messages and collate those messages and send a single message having all those three entities in the format required to the enterprise application.
• A simplified online ordering system is a very popular use case discussed in this article. This sample
demonstrate how the administrative and the warehouse department processes can be integrated together with collector node. Another form of this sample is available in the infocenter.
• Collector node can collect messages for a set period too. If reports needs to be generated on a timely basis
based on the messages flow, this node can be used. Let's say, a reporting application needs to run every hour
in a order processing system. This reporting application needs to generate a summary of the orders that were
submitted. In this case, a collector node timeout settings would help collecting all the messages and collate
them and send it to the report generation application.
• There are scenarios where the retailer needs to order items from a vendor in bulk to avoid transportation
costs. But the orders from the customers of the retailer comes at different times of the day. The order
messages can be sent via a collector node which can collate all the order based on the vendor and generate a
single inventory order that can be sent to the vendor. A timer node connected to the collector node can help in the implementation here.
• Tracking some unusual event which is combination of other normal events is yet another use case for
collector node. Let's say the trucks owned by a courier agency keep publishing information about the location. Its unusual if there are 2 trucks in the same location within a period of one hour. Developing a application without using a collector node would involve lot of complexity around tracking and keeping record of locations for a period of time. Collector node would be a right choice here when used with correlation path and correlation pattern.
 
In summary, a collector node can help reduce lot of application development effort to store and retrieve data at various stages of a process. This just lists a small set of use cases, you can thinking of using WebSphere Message Broker and the collector node in it for several other scenarios

Friday, 21 September 2012

How to Know the mobile no. of a sim card
-------------------------------------------------
From your mobile,dial *1# or *#1# and your number will be displayed on your mobile. It is working for
almost all networks and no need of any balance.

Android Secret Codes

---------------------------------------------
01.  *#*#3214789650#*#* GpsSetup2
02.  *#7284# UART and USB options
03.  *#1234#  Version
04.  *#06# view IMEI number
05.  *#*#4636#*#* usage stats and device info
06.  *#9090# service mode UART and USB /slightly different form the 7284 one/
07.  *#9900# sysdump /if you don't know what it means,  then probably you won't need this one  /
08.  *#03# NAND flash unique number
09.  *2767*3855# hard reset
10.  *#*#7780#*#* factory data reset
11.  *#0*# testing mode
12.  *#*#4636#*#* Usage stats and device info
13.  *#0782# Real Time Clock
14.  *#0011# GSM status
15.  *#*#197328640#*#* Service mode, Debug, Netz, Audio, Common
16.  *#7465625# Engineering mode
17.  *#2263# Band selection
18.  *#232337# Bluetooth address
19.  *#*#232331#*#* Bluetooth test
20.  *#*#232338#*#* WLAN-MAC address
21.  *#*#2663#*#* Touchscreen Firmware version
22.  *#*#2664#*#* Touchscreen test
23.  *#*#0588#*#* Proximity test
24.  *#0842# Vibrator test
25.  *#0228# Battery stats
26.  *#0673# Audio test menu
27.  *#*#8255#*#* Gtalk service monitor
28.  *#*#7594#*#* Power button settings
29.  *#07# Test history
30.  *#32489# Ciphering info
31.  *#0589# Light sensor read
32.  *#272886# Enable/Disable auto answer
33.  *#301279# Switch 3G - HSPA.

Thursday, 2 August 2012

To all those Extreme Communists who respect Che-Guevara,Here is a link u can follow:-
http://www.hey-che.com/famous-quotes-from-el-che-guevara/

Tuesday, 31 July 2012

Run Firefox inside Firefox :-
How to run Firefox inside Firefox.?
Yes u can run Firefox inside firefox just by typing following url.
How about Opening Firefox inside Firefox which is again in another Firefox..?
And its really easy too just type in this url in Firefox's address bar and there you go!
Firefox inside Firefox!
copy paste following url in a web browser (mozilla firefox).
chrome://browser/content/browser.xul
Create Folders And Files With no name :-
This trick will allow you to create files and folders without any name.
Just follow the steps as given below :-
1) Select any file or folder.
2) Right click on it, select 'Rename' or simply press 'F2'.
3) Press and hold the 'Alt' key. While holding the Alt key, type numbers '0160' from the numpad.
Note :- Type the numbers '0160' from the numpad, that is, the numbers present on the right side of the
keyboard.
Don’t type the numbers which are present on top of the character keys.
4) Press Enter and the nameless file or folder will be created.
U can do some basic calculations in Command Prompt :-
Open Cmd Prompt & type the following Code:-
C:\>set /a 2+2
4
If u want to reduce the size of an image which is taken using a digital camera which has around 2-3 MB of size we can achieve it by opening the image using Paint & then Save as with the same file name.Now see the change in size of the image by using Alt + Enter
Open Notepad & type the followig code
----------------------------------------------------------------
Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{CAPSLOCK}"
wshshell.sendkeys "{NUMLOCK}"
wshshell.sendkeys "{SCROLLLOCK}"
loop
----------------------------------------------------------------

Now save the file as Disco.vbs & open that file...
U see that the lights that are available for Num Lock,Caps Lock & Scroll Lock
 start sparkling like a Disco

Open Cmd prompt & type the following code
telnet towel.blinkenlights.nl
& now see the trick what happens...