MQSeries commands




MQSeries commands

•         runmqsc < amqscos0.tst >test.out

Create a  Queue Manager

            crtmqm –q  qmDefault

Start the queue manager

            strmqm qmDefault

Create a Queue

•         runmqsc  (To enable MQSC commands)
•         define qlocal (‘qTest’)
•         end (To stop MQSC)

Create a default queue manager called QMSENDER

•         crtmqm -q QMSENDER

Start the default queue manager. Enter the following command:

•         strmqm QMSENDER

Enable MQSC commands. Enter the following command:

•         Runmqsc
In the MQSC command window, define a sender channel. Enter the following command: 
• define channel(QMSENDER.QMRECEIVER) chltype(sdr) conname("con-name(port)") xmitq(TRANSMITQSENDER) trptype(tcp)

Alog

•         mqConnect();// queue manager connection
•         mqOpen();// Opens the queue & browse
•         mqClose();// close the queue
•         mqDisconnect();// disconnects the queue manager

mqConnect()

•         MQEnvironment contains static member variables that control the environment in which an MQQueueManager object is constructed.
•         MQEnvironment.hostname= hostName;
•         MQEnvironment.channel= channel;
•         MQEnvironment.port= Integer.parseInt(port);
•         mqQueueManager = new    MQQueueManager(qmgrName);

mqOpen()

•         openOption = MQC.MQOO_OUTPUT;
•         queue = mqQueueManager.accessQueue(qName, openOption,null,null,null);
•         MQMessage message = new MQMessage();
•         MQPutMessageOptions pmo = new MQPutMessageOptions();
•         queue.put(message, pmo);

mqClose

•         queue.close();

MQException

•         C:\>mqrc 2009


Read More Add your Comment 0 comments
Blogger Tricks

WebSphere MQ Objects




WebSphere MQ objects

•         The WebSphere MQ objects are:
•                     Queue managers
•                     Queues
•                     Process definitions
•                     Channels
•                     Listeners

Queue managers

•         A queue manager supplies an application with WebSphere MQ services. A program must have a connection to a queue manager before it can use the services of that queue
•         MQueueManager  mqQueueManager = new MQQueueManager(qmgrName);

Attributes of Queue managers
•         Associated with each queue manager is a set of attributes (or properties) that define its characteristics. Some of the attributes of a queue manager are fixed when it is created; you can change others using the WebSphere MQ commands.
•         The fixed attributes include:
•         The name of the queue manager
•         The maximum priority that you can assign to messages processed by the queue manager
•         The maximum length of messages the queue manager can process
Changeable attributes include:
•         A text description of the queue manager
•         The identifier of the character set the queue manager uses for character strings when it processes MQI calls
•         The name of the queue manager’s dead-letter (undelivered message) queue
•         The name of the queue manager’s default transmission queue
The maximum number of open handles for any one connection

Queues

•         A WebSphere MQ queue is a named object on which applications can put messages, and from which applications can get messages. Messages are stored on a queue, so that if the putting application is expecting a reply to its message, it is free to do other work while waiting for that reply.

Types of Queues:
•         Local and remote queues
•         A queue is known to a program as local if it is owned by the queue manager to which the program is connected; the queue is known as remote.
Alias queues
                  To your program, an alias queue appears to be a queue, but it is really a WebSphere MQ object that you can use to access another queue.
Model and dynamic queues
      A model queue is a template of a queue definition used only when you want to create a dynamic local queue.

Process definitions

•         To allow an application to be started without the need for operator intervention

Channels

•         A channel is a communication link used by distributed queue managers.

Listeners

Listeners are processes that accept network requests from other queue managers, or client applications, and start associated channels. Listener processes can be started using the runmqlsr control command. Listeners are available on all platforms.


Read More Add your Comment 0 comments

WebSphere MQ messages




WebSphere MQ messages

•         WebSphere MQ messages are made up of two parts:
•         1. Message descriptor
•         2. Application data


Message descriptor

•         You can access message control information using the MQMD structure.

            Types of message

•         There are four types of message defined by WebSphere MQ:
•                     Datagram 
•         Request
•         Reply 
•         Report
Datagrams

•         Use a datagram when you do not require a reply from the application that receives the message (that is, gets the message from the queue).
•         An example of an application that could use datagrams is one that displays flight information in an airport lounge. A message could contain the data for a whole screen of flight information.

Request messages

•         Use a request message when you want a reply from the application that receives the message.

Reply messages

•         Use a reply message when you reply to another message.
•          When you create a reply message, respect any options that were set in the message descriptor of the message to which you are replying.

Report messages

•         Report messages inform applications about events such as the occurrence of an error when processing a message. They can be generated by:
•          A queue manager,
•          A message channel agent (for example, if they cannot deliver the message), or
•          An application (for example, if it cannot use the data in the message).

Types of Report messages

•         Exception report message.
•         This is sent in response to a message with the exceptions flag set
•         Expiry report message.
•         This indicates that an application attempted to retrieve a message that had reached its expiry threshold.
•         confirmation of arrival (COA) report message
•         This indicates that the message has reached its target queue
•         Confirmation of delivery (COD) report message.
•         This indicates that the message has been retrieved by a receiving application
•         Negative action notification (NAN) report message. This indicates that a request has not been successfully serviced


Read More Add your Comment 0 comments

Message Queuing Concepts




•This technology builds on two basic concepts: messages and queues:

Queues:
•A Queue is a container of messages. New messages are placed at the end of the queue, and messages
•are usually retrieved from the front of the queue.
Queuing is the mechanism by which messages are held until an application is ready to process them.
 Queuing allows you to:
   1. Communicate between programs
   2. Select the order in which a program processes messages.
   3. Balance loads on a system
   4. Increase the availability of your applications 

Provides a buffer between the producer and consumer
•Asynchronous
•Producer and consumer communicates in Asynchronous mode . i.e. No wait state.
•Synchronous
•Producer must wait for the consumer to become available and complete the processing of the message before being able to continue
•Batch processing
•A server might not want to process  and consume each message as it arrives on a particular queue and process them in one batch.

Message:
•A node in a system often needs to communicate information to, or request a service from, another node in that system or an interconnected system. This
•piece of information or request can be considered a message
•In message queuing, a message is a collection of data sent by one program and intended for another program.•
•WebSphere MQ defines four types of message:
•  Datagram A simple message for which no reply is expected
•  Request A message for which a reply is expected
•  Reply A reply to a request message
•  Report A message that describes an event such as the  
•  occurrence of an error
•A WebSphere MQ message consists of control information and application data.
•The control information is defined in a message descriptor structure (MQMD) and contains such things as:
•The type of the message
• An identifier for the message
• The priority for delivery of the message

Types of Messaging:
-- Point-to-point
-- Publish/Subscribe

Point-to-point Messaging

•Many messages are intended to be consumed exactly once. The point within the system that consumes the message might or might not be known to the producer of the message.
•The producer provides enough information for the messaging infrastructure to deliver the message to a single consumer.
•In point-to-point messaging a message arrives once, and once only, at a single and correct destination.
Categories of PTP Messaging
•Send and forget messaging:
•A message is sent to a service that performs an action based on that message.
•Request/reply messaging:
•A message is sent to a service that performs an action based on that message and then returns a reply to the originator of the message.

Publish/Subscribe Messaging

•Publish/subscribe messaging provides the concept of a topic on which any
•number of interested consumers of information can subscribe in order to register
•their interest. This is similar to the way that a person might subscribe only to
•magazines about topics in which they are interested. Each topic provides
•particular event or state information.












Read More Add your Comment 0 comments

WebSphere MQ




The WebSphere MQ is an IBM product on Message Queuing .
It is a product that enable programs to communicate with one another across a network of unlike components (processors, operating systems, subsystems and communication protocols) using a consistent application programming interface.




Read More Add your Comment 0 comments

What Is Message Queuing ?



Message Queuing


•Message Queuing (aka MQ) is a way for applications running on various platforms, at various times and various servers, to communicate with each other across heterogeneous networks that may be temporarily off-line. It provides a form of communication between applications without the hassle of dealing with low-level communication interfaces/protocols. 

•In a queuing environment, messages between therefor only the queuing system must be available. After the message is put in the queuing system, it is made available by the queuing system to the receiving application .
•Messages are stored in queues until an application is ready to read and process them; this is an asynchronous communications method. A synchronous method is also possible, using the Request-Reply mechanism

This is one of important technology of Application servers and enterprise applications.

Main features of Message queuing:

•1. There are no direct connections between programs.
•2. Communication between programs can be time-independent.
•3. Work can be carried out by small, self-contained programs.
•4. Communication can be driven by events.
•5. Applications can assign a priority to a message
•6. Security.
7. Data integrity.
•8. Recovery support.



Read More Add your Comment 0 comments

Where to find oracle database installers ?



Oracle database installers can be found and installed from official oracle website.
Below are the links to download oracle database

  • From Oracle 11g Release2,  database installers can be found at below location http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
  • Oracle Database 10.2 and 11.1 are no longer available for download from oracle website. The software is available as a media or FTP request for those customers who own a valid Oracle Database product license for any edition
  • These previously release version of database can be found on My Oracle Support
All the downloads of oracle database are on license basis so adhere to oracle licensing policy and contact oracle database sales group.





Read More Add your Comment 0 comments

What is MySql ?



MySQL is the world’s most popular open source database, enabling the cost-effective delivery of reliable, high-performance and salable Web-based and embedded database applications.It is based on RDBMS database i.e. Relational database management system.

MySQL is a popular choice of database for use in web applications, and is a central component of the widely used LAMP open source web application software stack. LAMP is an acronym for "Linux, Apache, MySQL, Perl/PHP/Python." Free-software-open source projects that require a full-featured database management system often use MySQL.


MySql was product of Sun microsystems but few years back iSUN was bought by Oracle. Since then it became part of Oracle product.

MySql products can be downloaded from link


MySQL Editions
In addition to MySQL's ease of use, high performance and reliability you can benefit from advanced features, management tools and technical support to develop, deploy and manage your MySQL applications.
  • MySQL Enterprise Edition
  • MySQL Standard Edition
  • MySQL Classic Edition
  • MySQL Cluster CGE
  • MySQL Embedded (OEM/ISV)






Read More Add your Comment 0 comments
 

© 2010 Codes & Concepts All Rights Reserved Thesis WordPress Theme Converted into Blogger Template by Hack Tutors.info