Monday, October 31, 2011

Building WSO2 Branch 3.2.2, Where all others are committing to it

Written by Madhuka

I was building branch where normally that easy to make, But I need to build 3.2.2 that is releasing soon. So all of them were committing to it. So it was breaking lot of time. But truly this help to learn lot in pom.xml and maven.

image

I was getting Build error on the way, In here I was missing some UI.jar

In there I move to

‘C:\WSO2\Branches\components\identity\org.wso2.carbon.identity.relyingparty.ui\3.2.2’

get up from there. (not make do svn from particular 2 root level, if so error will increase) better get root svn up, But in such time better to try to svn up only particular place because  lot of changes happening to it,

image

Try to build form break point

image

 

Above one was some far simple one. Some time, It say build issue when I try to make it say I have fix some in services stub then I try it say some in dependencies. so I have to move particular place and make it.

eg:

image

to the miss file place get update?

by the name of the jar we can find the dir of that missing jar

image

It have never org.wso2.carbon:org.wso2.carbon.reporting.api:jar:3.2.2 so I go to “C:\WSO2\Branches\components\reporting\org.wso2.carbon.reporting.api”

get svn up

then build WSO2 Carbon - Reporting API

finally this make it work.

See original post

Talk on “BAM in your SOA deployment”

My talk on Business Activity Monitoring in your SOA deployment which I did at WSO2Con 2011 is available at https://www.youtube.com/watch?v=zZKeKGheVHc


Summary: What is BAM? The 3 main sections of BAM. The revamp of WSO2 BAM concentrating on performance, scalability and customization.



See original post

WSO2Con 2011: Panel: Cloud and SOA: The good, the bad and the ugly

Written by Afkham Azeez



See original post

WSO2Con 2011: Building Cool Applications with WSO2 StratosLive

Written by Afkham Azeez



See original post

WSO2Con 2011: Building Cool Applications with WSO2 StratosLive

Written by Afkham Azeez



See original post

WSO2Con 2011: Building Cool Applications with WSO2 StratosLive

Written by Afkham Azeez



See original post

WSO2Con 2011: Building Cool Applications with WSO2 StratosLive

Written by Afkham Azeez



See original post

WSO2Con 2011: Open Source Middleware for the Cloud

Written by Afkham Azeez




See original post

WSO2Con 2011: Open Source Middleware for the Cloud

Written by Afkham Azeez




See original post

WSO2Con 2011: Open Source Middleware for the Cloud

Written by Afkham Azeez




See original post

Friday, October 28, 2011

A Good Primer on NoSQL

Written by Ganesh Prasad


NoSQL databases are all the rage, but the array of choices before us is bewildering. I must confess I'm still confused about the features and differences between CouchDB, MongoDB, Redis, Cassandra, Riak, HBase, Neo4j and so many other names that I have only recently begun to hear about. I'm sure many others would be in the same situation.

I was therefore happy to see that my colleague at WSO2, Dr Srinath Perera, has analysed the NoSQL landscape in depth, zeroed in on the characteristics of NoSQL databases that are relevant, and summarised this for our common understanding in an InfoQ article that provides a simple overview of the choices that designers and developers have today, choices that go beyond the traditional relational databases that we're familiar with.

I've often wondered about why NoSQL should be so popular in the first place. Srinath explains:

A few years ago, most systems were small and relational databases could handle [their requirements] without any trouble. Therefore, the storage choices for architects and programmers were simple. However, the size and scale of these systems have grown significantly over the last few years. High tech companies like Amazon and Google faced the challenge of scale before others. They soon observed that relational databases could not scale to handle those use cases.
In other words, this demanding new requirements wave has probably not hit most of us yet, but with the jump in the number of connected devices (smartphones, tablets and the coming "Internet of Things"), applications dealing with huge volumes of data are probably not going to be as rare as in the past. And when we say "huge", we're not even talking Gigabytes anymore. It's Terabytes and larger. As we learnt from Godzilla, size does matter. And drastic situations call for drastic measures, hence the NoSQL revolution.

Srinath refers to Eric Brewer's CAP theorem, which states that a distributed system can only have two of the three properties - Consistency, Availability, and Partition Tolerance. The NoSQL databases aim to break through the limitations imposed on traditional relational databases by loosening the fundamental principles on which these have been based, dropping one or more constraints as appropriate, to obtain a desired behaviour.

Depending on the constraints dropped, the resulting solution falls into one of several new categories:

  • Local memory
  • Distributed cache
  • Column Family Storage
  • Document storage
  • Name-value pairs
  • Graph DB
  • Service Registry
  • Tuple Space
...in addition to the traditional filesystems, relational databases and message queues that are familiar to IT practitioners today.

Perhaps the most important contribution of Srinath's article is his distilling of the four primary characteristics that are important from a usage point of view - data structure, the level of scalability required, the nature of data retrieval and the level of consistency required. He then puts these characteristics together in various combinations to show which of the above-listed categories of data store would be the most appropriate solution to use.

He's certainly succeeded in demystifying NoSQL for me, although I suspect I'll need to go back and read the article a few times till I've fully internalised the concepts in it. This is an overview article that I'd recommend to anyone trying to make sense of NoSQL and wanting to decide on the appropriate product category that would be right for their needs.

I can see the demand for a follow-up article from Srinath drilling down into each of these data storage categories and providing recommendations about actual products (e.g., Cassandra, Redis, CouchDB, etc.) While the sands shift more rapidly in the product space, it's also a more practically urgent decision for a developer or architect to make. So while such an article might need to be updated quite frequently, the advice in it would be more practical than this one, which provides the necessary initial understanding of the NoSQL landscape.

See original post

Sunday, October 23, 2011

JMS Proxy Services with Fail-Over Support

Written by Hiranya Jayathilaka

Rajika has written a very comprehensive article about setting up WSO2 ESB with JMS in a fail-over scenario.
The concept of fail-over endpoints is integral to WSO2 ESB. The user can define a fail-over endpoint in the ESB which in turns consists of two or more child endpoints. ESB will select one of the child endpoints to be the primary endpoint and will keep forwarding all messages to this primary endpoint. If the ESB detects some error while communicating with the primary endpoint, it will automatically fail-over to one of the available backup endpoints. User can also configure the endpoint error codes upon which to trigger a fail-over, endpoint suspend durations and timeout durations. However this is not what Rajika is talking about in his article. His article is about setting up a JMS proxy service with fail-over support in the ESB .
For an example imagine a situation where you have setup a proxy service to receive messages from a JMS queue. The ESB proxy service polls messages out of the queue and forwards them to a backend application for further processing. Now what if the ESB instance which hosts the above mentioned proxy service happens to fail (say due to a hardware failure). Actually in this case there's both good news and bad news. Good news is that no messages will get lost due to the persistent behavior of JMS messaging. If some messages were in flight within the ESB when the failure occurred those messages might get lost. But even that can be avoided by using something like JTA. The bad news however is that the backend application will not receive further requests to be processed. So as far as your overall system is concerned, your applications and services will stay idle while messages keep piling up on the JMS queue.
Rajika discusses a possible architecture to avoid such system downtime by having a backup proxy service (ideally deployed in a separate ESB instance) which listens on the same JMS queue. The backup proxy will be disabled by default to prevent contention between the two proxy services. His architecture also utilizes a scheduled task deployed on the backup ESB which sends periodic heartbeats to the other ESB node. If the backup ESB detects that the primary ESB instance is not responding, it will activate the backup proxy service which will start polling for JMS messages and resume operations in the system.
This is actually fairly simple to implement in WSO2 ESB and can be even further customized to suit the exact enterprise requirements. All the source code and relevant configurations are provided in the article itself.

See original post

 

Copyright 2009 All Rights Reserved Revolution Two Church theme modified by Milinda Pathirage