Skip to main content

Posts

Experience with SFTP Clients

Say you want to transfer files over a network in a secured mannar.Here comes the usecase of SFTP[Secure File Transfer Protocol]. SFTP is a secured protocol which is an extention of the Secure Shell protocol(SSH) provides capabilities as file accessing,file transferring and file management. This protocol encrypts both commands and data and ensure not transmitting of passwords and sensitive information over the network.SFTP functionality is similar to FTP,but since FTP uses a different protocol,you cannot use FTP client to talk to an SFTP server. To use SFTP capabilities,you can try out either graphical SFTP client or either at the command line. At command line -[In Unix or Mac OS environment] Start a SFTP session by 'sftp username@hostname' Then enter the password when prompted. Then with using sftp commands you can try-out file operations.[To get SFTP commands type 'help'] When you are using command line to SFTP operations you'll mostly remember about SCP protocol...

WSO2 ESB Proxy Services

If you are have ever try-out WSO2 ESB[1],you are quite familiar with WSO2 ESB proxy services. A proxy service is a some kind of virtual service,which fronts an existing actual service end-point and which is hosted under WSO2 ESB. Clients can send requests for proxy servic es hosted in ESB,as the client sees that service hosted in ESB without knowing of actual service end-point.Such proxy service has own WSDL which can be view from '?wsdl' parameter. Advantage of such a proxy service is t hat proxy services can mediate the sending messages to the actual service,before they are delivered to the actual end-point and can mediate the responses before those reach the client. There are several templates for proxy services as below and you can get more info on proxy services from [2]. Pass Through Proxy- Create a simple proxy service on a specified endpoint. This proxy service does not perform any processing on the messages that pass through the proxy. Secure Proxy-Create a proxy serv...

Some Tips on Subversion

As the first post in 2012,thought of sharing some confusing error messages which will appear while going to commit on Subversion.This blog-post will continue further as I found more such svn warnings. 1) Aborting commit - has no Ancestry information Eg: .../rootFolder/svnProject$ svn commit . svn: '/path/to/my/rootFolder' has no ancestry information Reason: While SVN checking for folder structure,if some parts of the folder tree above the folder being commited have svn metadata and some do no t,this error will appear. Solution: Check the ancestor folders (especially above the folder reported in the commit failure message) and if you find an .svn/ folder in any of them,remove it. Alternatively, move the folder another location where it has no ancestor folder with .svn/ within it. 2) Aborting commit: remains in tree-conflict Reason: a) A file/directory is locally deleted but exists and is modified in the repository b) A file/directory was locally modified but is deleted i...

Me at WSO2Con 2011-Day 1

This blog will provide you my experience at WSO2Con 2011, as one of the witness from the large crowd participated in such a successful and valuable open-source programming conference. Location- Colombo,Sri Lanka Date- 12th Sep-16th Sep 2011 The key reason for blogging about this event is NOT due to I'm a member of the WSO2 team,but I want to share the value added knowledge and experience I was gained from the conference.The event continued with two tutorials days with three days of main conference.It's not only covered the technical stuff,but also cultural aspects with highlighting Sri Lankan signature in each of the conference day evenings. The agenda can be found from here Following is the summary what I learnt from some of the sessions out from the all sessions which I was able to participated in the conference.I'll  present the details of those sessions as linked multiple posts. Day 1-      12th of September 2011 Tutorial 1- ...

Good Bye!!!

It was nearly a month ago while a guest couple has chosen a wall lamp near to our in front-door as their home.Though the couple has not get any invitation from us or neither they had provided the boardin charge ;),but they started to build their house in the lamp.Guess who had come to acompany with us?? Yaa,it was a couple of birds. Unfortunately none of our family kn ew their names.That's because they are not from a kind as much as familiar in our gardens as 'demalichcha,polkichcha,mayna' does. As I observed they were hard workers and had a great relationship between them,hence they were able to buid their home step by step by going far-away to gather the home-made stuff as little plants,etc and finished the house building very fast. It was a small but a nice home.Later I saw birds has started to live in their home,but actually not both of them.Only the female-bird was lived in their home and male-bird was stayed at a tree in our garden.I noticed that t...

Add a new servlet to an OSGI bundle

Servlets are useful while handling requests coming from web browsers and setting responses according to the requests and after process them. In WSO2 carbon environment,OSGI UI bundles are exposed to web and sometimes there might be cases where we need to use a servlet and process on it according to web browser requests.Following steps will help you in such cases when you need to add a servlet for an UI bundle. Pre-requesties- Any product server from WSO2 Carbon products [1] IntelliJ IDEA 10.0 Maven 2.1.0 or higher JDK 1.6 or higher 1.First create a servlet class by extending HttpServlet abstract class inside an OSGI bundle.You can create a new UI-bundle by creating a new maven project and add this servlet class inside it..You can refer the WSO2 dashboard UI bundle code structure fro m here[2].Else For a new bundle you need to import 'javax.servlet' package from bundle pom.xml as we did for wso2 dashboard UI bundle pom.xml[3]. 2.Then you need to add...

Love Green...!!!

After staying a week in a dusty brown colored,busy town with full of vehicles noise as in Colombo,what do u prefer in your weekend? Get away from there right? Yaa,this weekend I was able to go through green colored village and have a wonderful time on there. Walk through paddy fields,listen to wind.Watch multi-colored birds,Wash hands from water canals. This facilitates me to come back Colombo on starting of next week with a fresh mind.But what about future?With current human actions,is it guaranteed future kids will get such moments in their lives.I think we have to think this for a while.Money is not all about life.We are part of the nature.We have to protect Nature in sake of survival of ourselves.Hence please don't sell nature for a bundle of money and watch it's end. The most valuable lession teach by Nature is ''Simplicity".If you obey this lession you will never hurt nature. :):):)