A late announcement, a little more than 2 years, I moved to Medium. I won't be making any new posts here in this blog. Please refer/follow https://medium.com/@callkalpa for the latest articles.
Welcome to WSO2 Application Server 6.0.0, the successor of WSO2 Carbon based Application Server. WSO2 Application Server 6.0.0 is a complete revamp and is based on vanilla Apache Tomcat. WSO2 provides a number of features by means of extensions to Tomcat to add/enhance the functionality.
Welcome to WSO2 Application Server, the successor of WSO2 Carbon based Application Server. WSO2 Application Server 6.0.0 is a complete revamp and is based on vanilla Apache Tomcat. WSO2 provides a number of features by means of extensions to Tomcat to add/enhance the functionality.
Introduction to Go for Java Programmers" is a tech talk I delivered recently at WSO2.

In this talk I briefly introduced Go (aka golang) and compared Go with Java in key aspects I thought are important. Slide deck used is embedded below.
We are pleased to announce the alpha release of WSO2 Carbon Kernel 5.0.0. It is now available to download from here. The source and tag location for this release are available here.

WSO2 Carbon Kernel 5.0.0 is the core of the next-generation WSO2 Carbon platform.
We are pleased to announce that the sixth milestone release of Carbon Kernel 5.0.0 is now available to download from here. The Source and Tag Location for this release are available here.

Carbon Kernel 5.0.0 is the core of the next-generation WSO2 Carbon platform.
The WSO2 Application Server is an enterprise-ready cloud-enabled application server, powered by Apache Tomcat, and Apache TomEE, it integrates Apache CXF framework. It provides first class support for standard Web applications, JAX-WS/JAX-RS applications and Jaggery scripting applications.
I was using enrich mediator in WSO2 ESB to add a child to a parent element in the payload. The new element got added as the last element of the children where I wanted it as the first. I tried action="sibling" but as per the synapse code it also adds the element after the target element [1].
After using Ubuntu (13.10) for like almost one year I decided to move back to Fedora (Fedora 21). This is going to be a short post on my experience on mounting the same /home I used in Ubuntu for Fedora.
In WOS2 ESB, VFS transport can be used to access SFTP file system. The issue is that we cannot use absolute paths with SFTP and this affects to WSO2 ESB 4.8.1 and prior versions.
I recently came across this requirement where a xsd:datetime in the payload is needed to be converted to a different date time format as follows,

Original format : 2015-01-07T09:30:10+02:00

Required date: 2015/01/07 09:30:10

In WSO2 ESB, I found that this transformation can be achieved through a


I recently came across this requirement where a xsd:datetime in the payload is needed to be converted to a different date time format as follows,

Original format : 2015-01-07T09:30:10+02:00
Required date: 2015/01/07 09:30:10

In WSO2 ESB, I found that this transformation can be achieved through a XSLT mediator, class mediator or a script mediator. In an overview, XSLT mediator uses a XSL stylesheet to format the xml payload passed to the mediator whereas in class mediator and script mediator we use java code and javascript code respectively to manipulate the message context. In this blog post I am going to present how this transformation can be achieved by means of the XSLT mediator.

XSL Stylesheet
<?xml version="1.0" encoding="UTF-8"?>
<localEntry xmlns="http://ws.apache.org/ns/synapse" key="dateTime.xsl">
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0">
        <xsl:output method="xml" omit-xml-declaration="yes" indent="yes" />
        <xsl:param name="date_time" />
        <xsl:template match="/">
            <dateTime>
                <required>
                    <xsl:value-of select="format-dateTime(xs:dateTime($date_time), '[Y0001]/[M01]/[D01] [H01]:[m01]:[s01] [z]')" />
                </required>
            </dateTime>
        </xsl:template>
    </xsl:stylesheet>
    <description />
</localEntry>


Proxy configuration
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="DateTimeTransformation" transports="https http" startOnLoad="true" trace="disable">
    <target>
        <inSequence>
            <property name="originalFormat" expression="$body/dateTime/original" />
            <xslt key="dateTime.xsl">
                <property name="date_time" expression="get-property('originalFormat')" />
            </xslt>
            <log level="full" />
        </inSequence>
    </target>
</proxy>

dateTime.xsl XLS style sheet is stored as an inline xml local entry in ESB.

In the proxy, the original date is passed as an parameter ("date_time") to the XLS style sheet. I have used format-dateTime function, a function of XSL 2.0, to do the transformation.

Sample request
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header />
    <soap:Body>
        <dateTime>
            <original>2015-01-07T09:30:10+02:00</original>
        </dateTime>
    </soap:Body>
</soap:Envelope>

Console output
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Body>
        <dateTime xmlns="http://ws.apache.org/ns/synapse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
            <required>2015/01/07 09:30:10 GMT+2</required>
        </dateTime>
    </soap:Body>
</soap:Envelope>
0

Add a comment

I am a bit late to announce, but here it is...

Hi Folks,

WSO2 Carbon team is pleased announce the release of the Carbon Kernel 4.3.0.
This is sort of note to self, came across while testing depsync in WSO2 Application Server [1].

What I wanted to do was to cd into the directly named "-1234", this denoted the artifact repo for the super user in WSO2 AS.
Original Post:  http://blog.hanthana.org/2012/09/16/entering-its-3rd-year-the-latest-release-hanthana-linux-17-sithija-is-available-now/

Project began with the goals of Introducing and promoting Free and Open Source Software to the masses, especially to those with low technical knowledge, no access
Help spread the word.
Latest Browse (based on gtk3) failed to start on fedora 16 and Manuel has a fix. It's a matter of two commit reverts. Find steps and more info at the ticket[1]

Sugar 0.96 is released. Release notes can be found here [2]

[1] http://bugs.sugarlabs.org/ticket/3513

[2] http://wiki.sugarlabs.org/go/0.
to-doo [1] is a simple to-do list application written by me using google app engine [2] and python [3]. I wanted to make it as simple as possible yet serve the purpose. The syntax used is simple, more information are there in the 'help' link of to-doo.
I was trying to build sugar on my fedora 16 (64 bit) box as instructed here [1]. git clone was successful but ./sugar-jhbuild update failed although I have all the dependencies installed.
Recently I was sponsored by Peter Robinson [1] to become a package maintainer for Fedora. The first I packaged were sugar [2] activities.
Hanthana Linux [1] project released Hanthana Linux 15 which is the 5th consecutive release of the project. Hanthana Linux 15 ships with Gnome 3 and many more features.

Read more about Hanthana Linux 15 release from here [2].
It was day before yesterday (01) this idea hit my mind. The basic I wanted to do was to code something. Develop an app, a small one but I wandered with no proper idea. I had two things in mind. One to develop a facebook app and the other a twitter app.
It was three or four years back when I first saw this MAGIC at an  event organized to celebrate Software Freedom Day at Olcut College, Galle. This MAGIC was to put the glmatrix screensaver as the background of gnome desktop. It was Anuradha Rathnaweera on stage demonstrating the power of linux.
This is the second lucky month that the Empathy icon lies on the top gnome-panel of my desktop. Well it is... let's say ok when compared with Pidgin. I love see Empathy developers add the buddy pounce function too. It was after the fresh F13 installation that I tried to give Empathy a try.
GDM is for GNOME Display Manager, the graphical login program in GNOME. I recently (though it's been a couple of years I started using GNOME. Well I actually started using a touch pad recently :-) ) found that mouse tap is not working there. Called google and the was able to solve the prob.
About Me
About Me
Subscribe
Subscribe
Popular Posts
Popular Posts
  • "The Snare is a poem which evokes positive attitudes within the reader." (1) Which kind of attitudes are evoked? (2) Show them wit...
  • "Island Spell" by Wendy Whatmore vividly describes a beautiful island. The starts her poem saying that she was caught in an island...
  • Try configuring your SLT ADSL connection yourself. Don't WASTE money for SLT . Here are the settings. Type : PPP...
  • To use java tools (javac, java, applet viewer etc.) from anywhere in the dos prompt java should be configured. Suppose that you have already...
  • A late announcement, a little more than 2 years, I moved to Medium. I won't be making any new posts here in this blog. Please refer/foll...
  • SOURCE: http://www.avidtrader.com/wordpress/wp-content/uploads/2013/01/reports.jpg Recently I was involved in developing a registration...
  • Welcome to WSO2 Application Server 6.0.0, the successor of WSO2 Carbon based Application Server. WSO2 Application Server 6.0.0 is a complet...
  • I recently came across this requirement where a  xsd:datetime  in the payload is needed to be converted to a different date time format as ...
  • Dialog GSM offers its latest service,Budget SMS, to both post paid and pre paid customers. With this service you will be able to send D2D SM...
  • Photo Credit : Prima Yogi FAD Singapore 2015 was held on 5th and 6th of December in Singapore and I participated at the event. FAD (F...
Labels
My Links
Blogs I read
Blogs I read
Loading