Saturday, January 30, 2010

Sharing info on MQ Cluster

A cluster is a network of queue managers that are logically associated in some way. In a Web Sphere MQ network using distributed queuing without clustering, every queue manager is independent. If one queue manager needs to send messages to another it must have defined a transmission queue and a channel to the remote queue manager.If you group queue managers in a cluster, the queue managers can make the queues that they host available to every other queue manager in the cluster.

Then, assuming that you have the necessary network infrastructure in place, any queue manager can send a message to any other queue manager in the same cluster without the need for explicit channel definitions, remote queue definitions, or transmission queues.There are two different reasons for using clusters: to reduce system administration and to improve availability and workload balancing.

Thursday, January 28, 2010

Use special characters from Windows

Symbols like £ (UK Pound), © (Copyright), ¥(Japanese Yen) can be easily used by following a few simple steps:
1. Firstly, these characters are not provided as keys with the keyboard. So stop staring at the keyboard.
2. Go to Start >> Programs >> Accessories >> System Tools >> Character Map.This opens the Character Map as shown below.
3. This window displays all the possible charaters you can enter.
  • Click on any of the symbols to get an enlarged view.
  • Then, click on the Select button to select a character.
  • To copy the selected symbol, press the Copy button (the symbol is actually copied to the clipboard).

4. That's it! Now you can paste the character where you need it.

Also notice the lower-right corner of the Character Map screen. This displays the keystroke required to produce the character you want.
In the figure above its Alt+0163. This means if you Press and Hold the ALT key and type 0163, you will get the UK Pound symbol.
( NOTE: the numbers must be typed from the keys to the right of your keyboard and NOT from the keys above the character keys).

Source: http://txpress.blogspot.com/2006/11/use-special-characters-from-windows.html

Tuesday, January 26, 2010

Few commands on MQM

To create a queue manager: crtmqm (to make it the default, specify theParameter /q)To start the queue manager: strmqm
To start the utility in an interactive mode: runmqsc
To run Mq commands in a wrapper : runmqadm

Sunday, January 24, 2010

cfinclude in ColdFusion

cfinclude
Embeds references to ColdFusion pages in CFML.
You can embed cfinclude tags recursively.

Syntax :


ColdFusion searches for included files in the following sequence:
In the directory of the current page
In directories mapped in the ColdFusion Administrator for the included file
The included file must be a syntactically correct and complete CFML page.For example, to output data from within the included page, you must have a cfoutput tag, including the end tag, on the included page, not the referring page. Similarly, you cannot span a cfif tag across the referring page and the included page; it must be complete within the included page.

Program:


Source :
http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p63.htm#wp1100248

Friday, January 22, 2010

Flex Development on Visual Studio

Well, this is came a little late but I think anticipated. Though not from Microsoft itself, but seems developers on Visual studio are also feeling it. After all the noise regarding the new front ends from all around; AJAX, SilverLight, JAVAFX etc, SWF seems to be on top. Here are two more IDEs for SWF development and that to on Flex Framework and on top of Visual Studio. Amethyst and Tofino.

Amethyst comes in 2 flavors Personal and Professional. Personal Edition is Free as well. According to its makers, SapphireSteel Software, The personal edition will be completely free and may optionally be installed into the free Visual Studio ‘shell’ edition. Amethyst Personal (beta) will be available from Amethyst site in the 2nd week of December 2008. Amethyst Professional will be released in beta in the first quarter of 2009 and the final version is expected to ship in the 2nd quarter.

Tofino is from the company named Ensemble . Its ready to be downloaded from their site and as per the company, Ensemble Tofino is available for free.

Wednesday, January 20, 2010

Some of the Control commands in CICS

Interval Control: All these commands can control the intervals(time)
- ASKTIME
- FORMATTIME
- DELAY
- POST
- WAIT EVENT
- START
- RETRIEVE
- CANCEL

ASKTIME:
- To request the current data and time

FORMATTIME:
- To receive information of date and time in various formats

DELAY:
- Used to DELAY the processing of a task

START:
- Used to start a transaction at the specified terminal and at the specified time or interval
- Data can be passed to the new transaction

RETRIEVE:
- Used to retrieve the data passed by the START

CANCEL:
- Used to cancel the Interval Control requests like DELAY,POST and START
- Identified by REQID.

Monday, January 18, 2010

Task control commands in CICS

Task Control: We have some commands to control the Task, and command are given below.
- SUSPEND
- ENQ
- DEQ

SUSPEND:
- After the execution of higher priority tasks, control will be returned to the suspended task

EXEC CICS
SUSPEND
END-EXEC

ENQ:
- To gain exclusive control over a resource

Syntax:
EXEC CICS ENQ
RESOURCE(data area)
[LENGTH(data value)]
[NOSUSPEND]
END-EXEC

DEQ:
- To free the exclusive control from the resource gained by ENQ

Syntax:
EXEC CICS DEQ
RESOURCE(data_area)
[LENGTH(data_value)]
[NOSUSPEND]
END-EXEC.

Saturday, January 16, 2010

cfhtmlhead in ColdFusion

Writes text to the head section of a generated HTML page. It is useful for embedding JavaScript code, or putting other HTML tags, such as meta, link, title, or base in an HTML page header.
Syntax:


Note:
If you use this tag after the cfflush tag on a page, an error is thrown.

Program:

">


Source: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p57.htm#wp1099843

Thursday, January 14, 2010

Rich Internet Applications(RIA’s)

Rich Internet applications (RIAs) offer a rich, engaging experience that improves user satisfaction and increases productivity. Using the broad reach of the Internet, RIAs can be deployed across browsers and desktops.

Benefits of RIAs:
RIAs offer organizations a proven, cost-effective way to deliver modern applications with real business benefits:
  • Offer users a richer, more engaging experience.
  • Keep pace with users' rising expectations.
  • Increase customer loyalty and generate higher profits.
  • Leverage existing personnel, processes, and infrastructure.


Source : http://www.adobe.com/resources/business/rich_internet_apps/

Tuesday, January 12, 2010

Technologies to develop Rich Applications

Technologies for building Rich applications:

Sunday, January 10, 2010

Building first Flex App

Prerequisites:
1.Download Flex Builder 3 from
http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3email
2.Install Flex Builder
3.Install Adobe Flash player 9 plugin for Internet explorer

Creating first project in Flex:
1.Run the Flex builder
2.Click on File -> New -> Flex Project
3.In the New Flex Project dialog: >Enter Project Name as "MyFirstApp" >Check the Use Default Location checkbox >Select Web application as Application type >Select Application Server type as None >Click on Finish
4.MyFirstApp.mxml will be opened in the editor
5.In between the tag add the line below, which adds a label with text My First Appin blue color to the application:

Friday, January 08, 2010

Windows tabs Shortcut

Try this shortcut !
Instead of using ALT + TAB,
Try, windows key + TAB.
Press ENTER to open the active window

Wednesday, January 06, 2010

END task in windows

If an application or a page is hanged, normally we would go to task manager and select that application or page and then we would click on End Task !
It would take sometime to end that application, we got look at the hanged monitor till it closes it and then resume our work.
But, do we know that we have an easier way to close that application ?
Here is it !
Goto the task manager window, and select the Processes tab, and then select the corresponding process and say end process.
It will immediately close it !
The only difficulty is, to find the corresponding process.
The key is that the process would be named in relation to the application.
For eg : notepad.exe, OUTLOOK.EXE, iexplore.exe ( Browser window )
You will get used to finding the process, once you start using it !

Monday, January 04, 2010

Unix Command on sessions

Unix command to check all the active sessions which are currently running.
ps –ef grep rts
ps : Reports the process status
-e: List information about every process now running.
-f: Generate a full listing
rts:Request To Send, RTS is a signal sent by a communications device, such as a modem, to verify if the other device is ready for data to be sent to it.

If you have some issues in unix for example like “license on the server expired”, by giving the above command you can find all the active sessions running on that server.So by killing all the unused or expired sessions your issue may be resolved.Command to kill the session
kill %pid
Kill: cancels a job
Pid-A job control job ID that identifies a background process group to be signaled.

Saturday, January 02, 2010

Reading a zip file

This sample code read the name of all files from a zip file. It uses ZipInputStream to read zip file.


import java.io.*;
import java.util.zip.*;

public class ZipFileRdrExp {

public static void main(String[] args) {

try {

FileInputStream fis = new FileInputStream("C:\\MyZip.zip");
ZipInputStream zis = new ZipInputStream(fis);
ZipEntry ze;
while((ze=zis.getNextEntry())!=null){
System.out.println(ze.getName());
zis.closeEntry();
}

zis.close();

} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}


Source: java-tips.org
Computers Add to Technorati Favorites Programming Blogs - BlogCatalog Blog Directory