Monday, September 6, 2010
Sunday, August 29, 2010
Introduction to Apache camel integration frame work
It implements many of the widely used EIPs (enterprise integration patters) and provides connectivity to a great variety of transports (http,ftp,mail etc.,) and APIs easy to use Domain Specific Language (DSL) to wire EIPs and transports together.
It doesn't require a container and can be run in any Java-based environment.
Camel can also be used for BAM (Business Activity Monitoring). Rather than using RouteBuilder, you can use ActivityBuilder to listen for activities and create event notifications.
High level camel architecture :
Components, Endpoints, Processors, and the Domain Specific Language (DSL) are the main core integral partos of camel.
Components are the extension point in Camel to add connectivity to other systems. The core of Camel is very small to keep dependencies low, promote embeddability, etc. and as a result contains only 12 essential components. There are over 60 components outside the core. To expose these systems to the rest of Camel, Components provide an Endpoint interface. By using URIs, you can send or receive messages on Endpoints in a uniform way. For instance, to receive messages from a JMS queue aQueue and send them to a file system directory "c:/tmp", you could use URIs like "jms:aQueue" and "file:c:\tmp".
Processors are used to manipulate and mediate messages in between Endpoints. All of the EIPs are defined as Processors or sets of Processors. As of, Camel supports more 40 patterns from the EIP book, 6 other integration patterns, and many other useful Processors.
To wire Processors and Endpoints together, Camel defines a Java DSL. The term DSL is used a bit loosely here as it usually implies the involvement of a compiler or interpreter that can process keywords specific to a particular domain. In Camel, DSL means a fluent Java API that contains methods named like terms from the EIP book
Camel-spring integration - event listeners
Sunday, May 2, 2010
Install jboss App server in Ubuntu
jey@jey-laptop:~$ sudo useradd -d /usr/local/jboss -s /bin/sh jboss
[sudo] password for jey:
jey@jey-laptop:~$ sudo passwd jboss
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
ubuntu shortcut url
https://help.ubuntu.com/community/PartitioningSchemes
Change the default OS in grub using Ubuntu 9.10
How to change the default OS to windows.(Whenever a new version of Ubuntu is installed, the bootloader will always point to Ubuntu itself.
You switch on the computer and come across with number of weird options in GRUB starting with Ubuntu, memtest, something else and last option is reserved for windows.
Here is how you can change the default OS to windows:
1. Login to Ubuntu
2. open the terminal => Alt+F2 => type gnome-terminal
3. at the prompt,type
sudo gedit /etc/default/grub
4. The system will ask for an admin password as you are trying to make changes to one of the important files
5. in the editor, search for the parameter GRUB_DEFAULT, It will be set to 0(for Ubuntu) by default
6. change the value to 2,3,4 (wherever the option of windows is indexed at in the GRUB). Typically, it is 4 in a dual boot.
7. save the file
8. you will return back to the terminal
9. type in
sudo update-grub
This will regenerate the file /boot/grub/grub.cfg
You are done. The next time you see the GRUB, the default pointer will be at windows OS.
Saturday, May 1, 2010
Installing Inter wirelss drive to ubuntu
your module is part of compat-wireless. So you will have to try to compile compat-wireless on your system. This way you'll get newest iwlagn module.
1. You have to get compat-wireless snapshot from the latest dated tarball in the compat-wireless-2.6 download directory. or
a. http://wireless.kernel.org/en/users/Download - section "Where to download bleeding edge"
2. Install package build-essential
3. Unpack driver using command: tar -jxvf compat-wireless-2.6.tar.bz2
4. enter newly created directory and type:
./scripts/driver-select iwlwifi
if no errors then type: make
if no errors then type: sudo make install
just to be certain: sudo depmod -a
5. reboot

