<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4620343371413045603</id><updated>2025-10-31T08:33:05.305-07:00</updated><category term="Logging"/><category term="WSO2 ESB"/><category term="WSO2 Data Services"/><category term="Music Technology"/><category term="SSIS"/><category term="ChordATune"/><category term="Music"/><category term="WSO2 Stratos"/><category term="Log4J"/><category term="Cloud Computing"/><category term="Music Programming"/><category term="WSO2 BAM"/><category term="WSO2 BAM 2.0"/><category term="Autism"/><category term="Business Activity Monitoring"/><category term="Data Cubes"/><category term="Data warehousing"/><category term="E-Learning"/><category term="ETL"/><category term="HMM"/><category term="Harmonization"/><category term="Interactive Education"/><category term="MYSQL"/><category term="RDF"/><category term="SOAP"/><category term="Technology for Education"/><category term="WSO2 Storage Server"/><category term="AI"/><category term="APICTA"/><category term="ActiveMQ"/><category term="Ariane 5"/><category term="Autism Apps"/><category term="Behavioural Theories"/><category term="Big Data"/><category term="Carbon"/><category term="Carbon Conversion Characters"/><category term="Cassandra"/><category term="Configure Hadoop"/><category term="DTS"/><category term="Data Sources"/><category term="Databases"/><category term="Design by Contract"/><category term="Developmental Disorder"/><category term="Devstack"/><category term="Disk fragmentation"/><category term="Distributed Transaction"/><category term="Domain Validation"/><category term="Dynamic Programming"/><category term="Education Psychology"/><category term="Educational Tools"/><category term="Eeyore"/><category term="Eventing"/><category term="File Management"/><category term="Gadgets"/><category term="GitHub"/><category term="Hadoop"/><category term="Hadoop Clustering"/><category term="Hive"/><category term="IEEE"/><category term="IIT"/><category term="JMS"/><category term="Kanga"/><category term="Kids"/><category term="Kolb’s Learning theory"/><category term="Kreyonic"/><category term="Leamo"/><category term="LiliPond"/><category term="Linux"/><category term="MDX"/><category term="Magic Bus"/><category term="NBQSA"/><category term="OLEDB"/><category term="OpenStack"/><category term="Operant Conditioning"/><category term="Owl"/><category term="PETER TOWNSHEND"/><category term="Piglet"/><category term="Pivoting"/><category term="Project Management"/><category term="Proxy Services"/><category term="RBT"/><category term="RSS"/><category term="Rabit"/><category term="SMTP"/><category term="SPARQL"/><category term="SQL"/><category term="SSRS"/><category term="Slowly Changing Data"/><category term="Steve Jobs"/><category term="Testing"/><category term="Tiger"/><category term="Tomcat"/><category term="Ubuntu"/><category term="VSF Transports"/><category term="Validate Mediator"/><category term="Version Control"/><category term="Viterbi Algorithm"/><category term="WSO2"/><category term="WSO2 CEP"/><category term="WSO2 Development Studio"/><category term="Web Applications"/><category term="Web harvesting"/><category term="Who"/><category term="Winnie The Pooh"/><category term="XA datasources"/><category term="git"/><category term="jMusic"/><category term="postgres"/><category term="roo"/><title type='text'>sparkle tech thoughts</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>72</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-8173633163325316217</id><published>2016-09-05T22:24:00.000-07:00</published><updated>2016-09-06T10:45:26.947-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Autism"/><category scheme="http://www.blogger.com/atom/ns#" term="Autism Apps"/><category scheme="http://www.blogger.com/atom/ns#" term="Educational Tools"/><category scheme="http://www.blogger.com/atom/ns#" term="Interactive Education"/><category scheme="http://www.blogger.com/atom/ns#" term="Technology for Education"/><title type='text'>iPad Apps helps autistic children to spread their wings</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Today there is app for everything, for maths, science, history, music and many more. Can these apps be useful for children with special needs? Kids with special needs cannot use the traditional approaches in learning, specially kids with autism need extra help than the rest of these children. They find it bit hard to focus on the things you teach, and process the information that is targeted. For kids like this Apps can be a life saver.&lt;/div&gt;
&lt;div style=&quot;font-family: times; font-size: medium; font-style: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #b4a7d6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #b4a7d6;&quot;&gt;There &amp;nbsp;is an app for every skill you want to impart. For example there are apps targeted:&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinhOh1_dEV_70xi3iFql1YPckRwoyqG1mn-SWe8zulY95SGCv2YdXbL5oaVAN02PjOFuVQS_xgSXqL67M6cdEsndTy3aRFDJGVfJjk_HqKa4XDJ0swyvE_356OfsK_bdDnsZkP0TZxEL0/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinhOh1_dEV_70xi3iFql1YPckRwoyqG1mn-SWe8zulY95SGCv2YdXbL5oaVAN02PjOFuVQS_xgSXqL67M6cdEsndTy3aRFDJGVfJjk_HqKa4XDJ0swyvE_356OfsK_bdDnsZkP0TZxEL0/s320/1.jpg&quot; width=&quot;320&quot; /&gt;&amp;nbsp; &amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;ul&gt;&lt;ul&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Improve Attention Span&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Communication&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Eye Contact&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Social Skills&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Motor co-ordination&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Language and literacy&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Time Management&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Emotional Skills and Self Care&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There are many apps in the appstore that facilitate Augmentative and Alternative Communication (AAC ) which can be highly use for autistic kids who are non verbal or speech partially impaired. These apps use text to speech technology, where kids can type words, or drag and drop images to communication&amp;nbsp;with others on their needs.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Here are some of the reasons why iPad apps are so attractive for the kid&#39;s with autism and why they simply love it.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Visual Learning - Children with autism tend to learn more visually or by touch. In most cases they struggle with instructions given in the traditional school setting. Therefore, ipad provides an interactive educational environment to help them learn.&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Structured and Consistent - Autistic children prefer devices compared to humans mostly because they are structured and constant. The voice is constant phase is constant, and they like things to be orderly and the ipad waits, which is something most human educators lack.&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Promote independent learning and gives immediate feedback - Some apps which were build for ASD gives sensory re-enforcement to the child and when giving negative feedback, it chose to give it smoothly without any loud noises to distract the child.&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Diverse Therapeutic Resource - Technology evolves and expand rapidly, so every day you see new apps with lot of creativity. Kids will not get bored, and the apps they use will get updated time to time&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Cost Effective - Compared to other therapeutic resources ipad is inexpensive. For example Assistive Technology Devices such as Saltillo, Dynavox, Tobil cost much more than the iPad.&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Socially Desirable and Portable- Most of therapeutic devices can lead to bullying in school, for kids with special needs. But if you give a child with an iPad, this makes the child popular at school (because every other kid likes to use iPad).&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Apps can be easily customised - Most apps which were developed targetting autism can be customised, you can add your unique videos, images and voice to these apps. Specially the language and communication apps, so the child can learn from the things they see in their day to day life.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEih6sjmEhwGRx3CjTxEwR6Om9GiorBYptStm4cdH72E5OeEwZm0suXMEIryoGgSk5YpSW8BAmpfwEeFqOD8-PpGhOUQv6ISFIDbDAf17Lj0jziX9iJY4JW99SLXXUDmK0FMqOZocXNEPOE/s1600/2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: right;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEih6sjmEhwGRx3CjTxEwR6Om9GiorBYptStm4cdH72E5OeEwZm0suXMEIryoGgSk5YpSW8BAmpfwEeFqOD8-PpGhOUQv6ISFIDbDAf17Lj0jziX9iJY4JW99SLXXUDmK0FMqOZocXNEPOE/s320/2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Here are some of the common iPad apps which target Communication, Social, Emotional and Linguistic Skills.&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;ul&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Communication - Tap to talk, iComm, Look2Learn, voice4u, My Talk Tools, iCommunicate, Proloqu2go, Inner Voice.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;ul&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Social Skills - Model Me Going Places, Ubersense, TherAd, iMove (these apps will mostly do video self modelling social stories and give step by step &amp;nbsp;guidance for social stories such as brushing their teeth, going for a hair cut etc).&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;ul&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Linguistic Skills - First Phrases, iLanguage/ Language Builder, Rainbow Sentences, Interactive Alphabet, Touch and Write.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #8e7cc3;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;ul&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Emotional Skills - Smarty Pants.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #8e7cc3;&quot;&gt;Special Note for Educators, Teachers and Parents&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #8e7cc3;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLH4juOTeMlykZUIeaX7i9DowxRNqPFZMZMDmnyzLViAVftppcC_P7dv0EUAOsZ07TXpXgVydsCZ91txFnLvIJlCZhnAnz9oKSambu6edAKSx2XSoq6I0S6jHALt1TH8E8QM7a7BIzEkA/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;82&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLH4juOTeMlykZUIeaX7i9DowxRNqPFZMZMDmnyzLViAVftppcC_P7dv0EUAOsZ07TXpXgVydsCZ91txFnLvIJlCZhnAnz9oKSambu6edAKSx2XSoq6I0S6jHALt1TH8E8QM7a7BIzEkA/s320/1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Even though, there is a vast amount of apps available today, iPad is not a baby sitter, you should always be present when educating your child. The educational apps are their to help your child develop some cognitive processors or enhance their skills at reading, writing, spatial reasoning or just a way of communication. However, in order your child to grow, there should be an educator present when child is learning.. It can be a great tool and a resource for educational development but all things should come in moderation and also under supervision. It&#39;s actually quality of teaching and support that gives a positive out come, not just the device.&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/8173633163325316217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2016/09/ipad-apps-helps-autistic-children-to.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/8173633163325316217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/8173633163325316217'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2016/09/ipad-apps-helps-autistic-children-to.html' title='iPad Apps helps autistic children to spread their wings'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinhOh1_dEV_70xi3iFql1YPckRwoyqG1mn-SWe8zulY95SGCv2YdXbL5oaVAN02PjOFuVQS_xgSXqL67M6cdEsndTy3aRFDJGVfJjk_HqKa4XDJ0swyvE_356OfsK_bdDnsZkP0TZxEL0/s72-c/1.jpg" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-2323377788400144917</id><published>2016-09-04T01:44:00.000-07:00</published><updated>2016-09-05T06:34:40.695-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Autism"/><category scheme="http://www.blogger.com/atom/ns#" term="Developmental Disorder"/><title type='text'>Autistim  ..the good, the bad and the ugly</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Autism or Autism Spectrum Disorder is a brain based disorder which makes the brain function in a different way compared to the rest of the wold.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8DlfJ4wf7nuNll1kGhDxJsZVtANJQN8nHCSzzZ-p64svOljCIqgkdwWaTQecz12LlmBs7AqmTCnOq-Z-Ltjwx-ZU3b-kNjZ7zEoP8fncqjHkbLSH4zZjOOIPdXcMfY92O-27fxfeCdyI/s1600/autism.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;311&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8DlfJ4wf7nuNll1kGhDxJsZVtANJQN8nHCSzzZ-p64svOljCIqgkdwWaTQecz12LlmBs7AqmTCnOq-Z-Ltjwx-ZU3b-kNjZ7zEoP8fncqjHkbLSH4zZjOOIPdXcMfY92O-27fxfeCdyI/s400/autism.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&amp;nbsp;Autism affect three major area&#39;s of a person;&lt;br /&gt;
&lt;span style=&quot;color: #8e7cc3;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #8e7cc3;&quot;&gt;&amp;nbsp; &lt;b&gt;1. Social Interaction&lt;/b&gt; &lt;/span&gt;- Autistic people do not like to socialise, and they tend to be in their own world, they find it very hard to keep eye contact, and rarely shows empathy or compassion towards other human beings.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;b&gt; &lt;span style=&quot;color: #8e7cc3;&quot;&gt;2. Communication&lt;/span&gt;&lt;/b&gt; - Most kids on the spectrum has delayed speech or non verbal (40% of autistic kids are non verbal), this can be an early sign for you to identify who has autism. Kids with autism has trouble with speech and communication and they find it hard to express what they need also they find it hard to understand what you are talking to them. This can be because they find it hard to focus on you as they are mostly distracted by their surroundings.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;b&gt; &lt;span style=&quot;color: #8e7cc3;&quot;&gt;3. Behaviours and Interest&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #8e7cc3;&quot;&gt; &lt;/span&gt;- Behaviours and interest of autistic people can differ from person to person. Most children or grownups with Autism have repetitive movements with objects, repeated body movements such as rocking and hand flapping.&lt;br /&gt;
&lt;br /&gt;
These are few of the characteristics of autism&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Difficulty with verbal communication, including problems using and understanding language&lt;/li&gt;
&lt;li&gt;Inability to participate in a conversation, even when the child has the ability to speak&lt;/li&gt;
&lt;li&gt;Difficulty with non-verbal communication, such as gestures and facial expressions&lt;/li&gt;
&lt;li&gt;Difficulty with social interaction, including relating to people and to his or her surroundings&lt;/li&gt;
&lt;li&gt;Difficulty making friends and preferring to play alone&lt;/li&gt;
&lt;li&gt;Unusual ways of playing with toys and other objects, such as only lining them up a certain way&lt;/li&gt;
&lt;li&gt;Difficulty adjusting to changes in routine or familiar surroundings, or an unreasonable insistence on following routines in detail&lt;/li&gt;
&lt;li&gt;Repetitive body movements, or patterns of behavior, such as hand flapping, spinning, and head banging&lt;/li&gt;
&lt;li&gt;Preoccupation with unusual objects or parts of objects&lt;/li&gt;
&lt;/ul&gt;
However, autism is a spectrum disorder, therefore, children/people with autism behave very uniquely and challenges they go via differs from person to person. furthermore, the severity of the autism may change from time to time.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOvCZp78_2C825oFekb3eByXrvHHvrmrbCASefUV-GTOZu-G_C3Xel5F-zWT8kIYvud7LNamygkDtwSS9qXGVf4q4PgVTeQfcg2OCIR5LeOWRZLwyAGM0p5PHrrPk_tdQuANZjUBRGWVg/s1600/ducks.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOvCZp78_2C825oFekb3eByXrvHHvrmrbCASefUV-GTOZu-G_C3Xel5F-zWT8kIYvud7LNamygkDtwSS9qXGVf4q4PgVTeQfcg2OCIR5LeOWRZLwyAGM0p5PHrrPk_tdQuANZjUBRGWVg/s320/ducks.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Autism can be a problem if it&#39;s not identified at child&#39;s early ages, autism can be identified within 18 months from child birth or even earlier. Infants with autism have no big smiles or other warm, joyful expressions by six months or later and no no back-and forth gestures such as pointing,showing reaching or waving by 12 months. Some kids with autism has no speech, babbling or social skills at any age. These are very few early signs of autism, if you see these red flags, its better not delay in asking your pediatrician or family doctor for an evaluation.&lt;br /&gt;
&lt;br /&gt;
It&#39;s always good to identify autism at very early age so you can get the necessary help, with communication, language development, emotional skills and education. &amp;nbsp;Autism kid&#39;s will have a hard time dealing with social interaction and traditional approaches of learning, however, they can be very smart, knowledgable and gifted children. If they were given the right set of tools for their learning, and if educators can help them &amp;nbsp;understand how they can learn, they can do wonders.&lt;br /&gt;
&lt;br /&gt;
Autistic Children are gifted and special, they have a really good focus on things and they see what most people miss. Due to this they have incredible skills in areas of mathematics arts music and many more. They see the world in a different manner and can help improve the world greatly. &amp;nbsp;Here are few of the famous autistic people.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2bNCv-9AXdq3XZXneOsSmei542R_X0CM7K2VhdNU3gTw03JV5uisH4fi4SK53egsi1orZeDKVNbWCDHj4hxyiaR1M5rWAhEPeLIQ4oZFdLGJAHuwibMzO5wFsGELbdJb_ua1-EgrkKpI/s1600/collage-2016-09-04+%25281%2529.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;261&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2bNCv-9AXdq3XZXneOsSmei542R_X0CM7K2VhdNU3gTw03JV5uisH4fi4SK53egsi1orZeDKVNbWCDHj4hxyiaR1M5rWAhEPeLIQ4oZFdLGJAHuwibMzO5wFsGELbdJb_ua1-EgrkKpI/s400/collage-2016-09-04+%25281%2529.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #8e7cc3;&quot;&gt;Albert Einstein - Very intelligent physician &amp;nbsp; with many inventions&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #8e7cc3;&quot;&gt;Amadeus Mozart - Talented musician&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #8e7cc3;&quot;&gt;Sir Isaac Newton - Scientist with many inventions&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: #8e7cc3;&quot;&gt;&lt;b&gt;Charles Darwin&lt;/b&gt; - &lt;b&gt;Naturalist and geologist&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #8e7cc3;&quot;&gt;Thomas Jefferson - President of United States&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #8e7cc3;&quot;&gt;Michelangelo - Artist&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
As mention above, autistic people have un imaginable talents, and they make our world a better place.&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
The ugly part of autism is not the autistic people, its the society and how they look at autistic people. Due to lack of social skills, there are many instances autistic children get bullied and misunderstood. And most of them cannot understand sarcasm or phrasal words, &amp;nbsp;and they only understand the literal meanings of words. Their behaviour, and how they perceive things are different compared to majority of people, &amp;nbsp;due to that society tend to make autistic people feel less important or weird. According to Centres for Disease Control and Prevention, 1 in 68 people have autism. This means there is a large population of autistic people in the world today, if we can be more patient and understanding when dealing with them, we can make a better world for them as well as us.&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEVmIIYE7dM3VUj3nzTZK-6nr-MczNnVHqfR5zZURE1Cjd3ToJvtfjnon09eYQVgPHUuHkfkXoyIO5lbJKaPJ0EM99dFFpQFLwj9k06EY0gZzW7XkECJds1LfDXoGuXMzo6LtKt3_IzcE/s1600/AAMwordcloud3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;197&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEVmIIYE7dM3VUj3nzTZK-6nr-MczNnVHqfR5zZURE1Cjd3ToJvtfjnon09eYQVgPHUuHkfkXoyIO5lbJKaPJ0EM99dFFpQFLwj9k06EY0gZzW7XkECJds1LfDXoGuXMzo6LtKt3_IzcE/s400/AAMwordcloud3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/2323377788400144917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2016/09/autistim-good-bad-and-ugly.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/2323377788400144917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/2323377788400144917'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2016/09/autistim-good-bad-and-ugly.html' title='Autistim  ..the good, the bad and the ugly'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8DlfJ4wf7nuNll1kGhDxJsZVtANJQN8nHCSzzZ-p64svOljCIqgkdwWaTQecz12LlmBs7AqmTCnOq-Z-Ltjwx-ZU3b-kNjZ7zEoP8fncqjHkbLSH4zZjOOIPdXcMfY92O-27fxfeCdyI/s72-c/autism.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-805012844423758992</id><published>2016-08-31T02:35:00.002-07:00</published><updated>2016-08-31T02:35:47.439-07:00</updated><title type='text'>Social Cognitive Approaches to Learning</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
  
 
 
  &lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
My second theory which I am going to discuss on education psychology and how it can be applied when in teaching is social cognitive approaches to Learning. This mainly focuses on how learning happen via observations. The social learning theory was proposed by Albert Bandura with his Bobo doll experiment where he demonstrated that children learn and imitate behaviours they have observed in other people. And this theory can be used in educational psychology where you can influence children and improve their learning and development via observation. In my earlier post I spoke about how behavioural theories of learning was the result of association formed by conditioning, reinforcement and punishment. In this section I would like to discuss about social learning theory where learning can also occur simply by observing the actions of others and how this can be used on classroom activities to educate children.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #351c75; font-size: large;&quot;&gt;Social Cognitive Theory&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Social cognitive theory explains that social and cognitive factors as well as behaviour plays an important learn in learning. And this plays a major role in schools and educational environments. Mostly because cognitive factors involved students brain development and success in their education and social factors include student’s observing their teachers and their behaviour.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In this example we will look at how Bandura’s social cognitive theory can be applied in a classroom environment to achieve success&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;ol&gt;
&lt;li&gt;Cognition influences behaviour ­ At school a student name Alex develop strategies to solve a maths problem by thinking logically about how to solve the problem.&lt;/li&gt;
&lt;li&gt;Behaviour influences cognition ­ Alex working on the Math problem has led to her achieve good grades. And this will lead to self satisfaction which leads to cognition.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Environment influences Behaviour ­ Alex will enroll on higher maths program where it gives tips on solving problems efficiently and this will improve Alex’s maths skills.&lt;/li&gt;
&lt;li&gt;Behaviour influences environment ­ The higher math class succeed and many student in Alex’s class join that same program so that they will get tips to succeed in maths.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Cognition influences environment ­ The teachers and principals feel the need and expectations to have the higher maths program.&lt;/li&gt;
&lt;li&gt;Environment influence cognition ­ school establish a resources center where students can have books on tips on higher mathematics to improve their maths skills.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Bandura further discuss self efficacy also known as confident in doing something is also very important when it comes to social cognitive theory, as even if the students have all the resources and models students might not get motivated to observe or pay attention/study hard if he/she does not have confident in learning&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Observational Learning&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSlj0AR6W1rBKwLlpPnp1DO-sWOHkaKPTVrSZGUYekb0zyIUbDO_ds_jkhAsJ8q9APTLJm14VfllsovhA-YqwTNicZw_nibo13bYPgLSPKrow3gpUKFYCDTQaYPHxmuFDn8WgpI6ZKPcs/s1600/a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSlj0AR6W1rBKwLlpPnp1DO-sWOHkaKPTVrSZGUYekb0zyIUbDO_ds_jkhAsJ8q9APTLJm14VfllsovhA-YqwTNicZw_nibo13bYPgLSPKrow3gpUKFYCDTQaYPHxmuFDn8WgpI6ZKPcs/s320/a.png&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There are three main concepts when it comes to observational learning or social learning and I will discuss each of these concepts from a teacher’s point of view and focus more on educational environment. 1) Students can learn from observation, 2) Student’s internal mental states matter when it comes to observational learning, 3) Just because a student learn some behaviour it does not mean he/she will change his behaviour.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;1. Students can learn via observation&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Observation learning is the learning that involves acquiring skills, strategies and beliefs by looking at others. And observation learning happen at classrooms by student’s observing models. There are three differant types of models that can influence observational learning&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;a) A live model ­ This can be a teacher or another peer student at a classroom who is an actual individual demonstrating or acting out the behaviour&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;b) Verbal instruction model ­ This can be a verbal instructor, a lecturer or announcer who make announcement at classrooms verbally who does not have to present while giving it.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;c) A symbolic Model­ This can be a real or fictional character displaying the behaviour in books or documentary videos for example characters from history books or scientist on TV programs when it comes to educational environments&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;2. Mental states are important to learning&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
When it comes to observational learning mental state of the student is also very important. if the student is not confident when it comes to learning he/she will not learn at all. Bandura mention this as intrinsic reinforcement. If a student want to do observational learning he should get internal reward such as pride/satisfaction or some sense of accomplishment when learning the observations. This emphasis on internal thoughts and cognition helps connect learning theories to cognitive developmental theories.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;3. Learning does not necessarily leads to a change in behaviour&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
When it comes to observational learning unlike behavioural learning learning does not lead to permanent change in behaviour, it can only demonstrate new information can be learn without demonstrating new behaviours&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Bandura highlighted this theory using a modeling process, Modeling process highlight the factors that make a learning successful via observation. These factors are known as Attention, Retention, Reproduction and Motivation.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9aS0m3u9xN07aS9-iyPVG9Z0qVWO-htxOkU8Y6h5bKroe5QvD2dGzItOcCafktUz9DnBOu7OrzELEfBcVMLiSus8cpr-_1cDXO92LprBKnfpigE8w7j2GryPyNUeH1O4R7nCvjpO7Y68/s1600/b.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9aS0m3u9xN07aS9-iyPVG9Z0qVWO-htxOkU8Y6h5bKroe5QvD2dGzItOcCafktUz9DnBOu7OrzELEfBcVMLiSus8cpr-_1cDXO92LprBKnfpigE8w7j2GryPyNUeH1O4R7nCvjpO7Y68/s320/b.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;Attention&lt;/span&gt;&lt;/b&gt;:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In order for a student to learn he/she must pay attention. Anything that distracts their attention is going to have a negative effect on learning. Therefore, teachers as model must make sure that students are paying attention while teaching and make sure the lesson are interesting so that students will pay more attention observing the teacher as the model&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;Retention&lt;/span&gt;&lt;/b&gt;:&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
For student to observe and learn the student must have the ability to store information. Therefore teachers must ensure that students have the capacity to store what they learn when teaching and give enough breaks when modeling.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;Reproduction&lt;/span&gt;&lt;/b&gt;:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Once the student have paid attention to the teacher or the model and further retained information. As teachers, you should make sure students actually perfom the behaviour. It can be a language class or any other observation, students must practice what they learn in order to improve their skills&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;Motivation&lt;/span&gt;&lt;/b&gt;:&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Finally, in order for observational learning to be successful, student must be motivated to pay attention, retain and reproduce. If the students are not motivated enough he/she will not learn properly.Reinforcement and punishment play an important role in motivation. While experiencing these motivators can be highly effective, so can observing other experience some type of reinforcement or punishment. For example, if you see another student rewarded with extra credit for being to class on time, you might start to show up a few minutes early each day.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #674ea7;&quot;&gt;How do you use observational Learning in your Classroom?&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #674ea7;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoNKClnMr9TlbIkzNyvHVFZNmljtg15c4UmuHEgRCjWDq3LDDAnjkRn2xMnO0-Fn-RksvjTrzvhCfoy7ImaaGS4FsFwngShyphenhyphenyxweXL_l3u7RB9ZZcdyKquDUTPTzOd41X8hSGXYMqIr0o/s1600/c.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoNKClnMr9TlbIkzNyvHVFZNmljtg15c4UmuHEgRCjWDq3LDDAnjkRn2xMnO0-Fn-RksvjTrzvhCfoy7ImaaGS4FsFwngShyphenhyphenyxweXL_l3u7RB9ZZcdyKquDUTPTzOd41X8hSGXYMqIr0o/s320/c.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #674ea7;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Examples of Social Learning at classroom&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Even Though most of the observational learning is not done on purpose, most children learn by observing their teachers specially when it comes to kids who are at kindergarten and preschool. Therefore, its always important that teachers become good role models for their students. These are some of the outcomes in observational learning.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;ol&gt;
&lt;li&gt;Students learning how to solve maths problems by looking at their teacher solving the maths problem and they learn to solve similar maths problems by using the same theory.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Student’s learn how to speak a foreign language by listening to their teacher. Therefore, the student will get the teacher’s accent.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Students learn how write by looking at how the teacher writes&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Student can learn art and craft work by looking at their art teach and learn hand work&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Student learn how to keep their desks clean and tidy by looking at their teachers desks&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
These are few examples of social learning that happen at classroom, however, teachers can use this theory to educate children.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
● For example teachers can invite popular athlete to come to class room and give their student a talk, so the student get influenced by the athlete and get motivated and learn skills from the athlete further that athlete can be a role model for students who are into athletics.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
●  Another example would be teachers can influence weak students (students who are behind their schedule) by making them associate with brighter peers, so that weaker students can observe and learn from their peers.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
●  Albert Bandura’s social learning theory can be applied in classroom with the use of technology. By doing educational computer programs and educational documentaries children learn and they change their behaviour by observing the characters on movies and educational games. A good example of this can be is the popular video game “Dora the explorer” or “Sesame Streat”, most preschoolers learn language and other soft skills by watching how dora plays and they learn via observations&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
These are few techniques that can be used at classroom, with the use of observational learning. However, its important that the teachers make sure the models for these observations are the right and very influential.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #a64d79;&quot;&gt;Advantages of Observational Learning&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There are many advantages of observational learning as most children learn their basics at their very early ages via observation. These are the list of advantages you can gain at classroom via observational learning. The main advantage of observational learning is it lacks objectives most of the time and it is not traditional formal learning structure and students learn unknowingly with the uses of practical and real life experience and gain life skills at very young age.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
● Learning makes fun and can learn things without effort.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;○ Since observational learning is not like traditional learning student learn things more naturally and it does not take an effort to learn them. It further creates a flexible learning environment if applied in classrooms and unlike behavioural approaches children are able to explore and gain creativity. As a results children learn observation skills, problem solving skills and creativity.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
● Encourages social interactions&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; ○ Since observational learning is about observing others and learning children learn language and communication skills which are building blocks of social interaction. Further, observation learning encourage pretend play which improve development skills in early childhood development. Further it will build character and self esteem so that they can interact with the society with diverse activities.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
● Improve their behaviour and quality of life&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp;○ Teachers can discipline their students via observation learning. Specially if there are students with behavioural issues, teachers can improve their behaviour by showing models that students appreciate and they will eventually fix their behaviour by looking at the models they adore (this can be fictional or real life models).&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
● Improve memory and brain development&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp;○ Observation learning practices retention and retention improves memory and cognition. When students learn from their environment by retaining the information they observe it will enhance their memory capacities.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
● Expands and exchange knowledge&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; ○ Observational learning helps students expand their knowledge by observing different roles. For example if a classroom supports observational learning, the children learn via various models including their peers. This helps them gain new information and also exchange new information via their peers. Further, if technology is used on observational learning, students can gain knowledge at international level.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #a64d79;&quot;&gt;Disadvantages of Observational Learning&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Even though, observational learning has their benefits there are some drawbacks with observational learning at classroom when it is done poorly.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
● Poor Role Models Demonstrate Poor Behavior&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; ○ If the role models gives bad examples like teachers showing aggression in front of children or if teachers show war related documentaries children learn aggression via observation (just like bandura’s bobo doll experiment). Therefore as teacher’s they must be very careful when behaving in front of students, as they tend to learn a lot from teachers.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
● Undesirable Models May Reinforce Behavior&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; ○ When students work with their peers they can learn bad behaviours from their peers and learn bad behaviours as socially acceptable. This can happen via technology as well as the staff at school. Therefore, bad behaviour and bad practices seems very desirable to children and influence them in a negative way.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
●  Evidence of Learning is Not Always Visible&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; ○ In observational learning students learn by observation retaining and reproduction. However, the outcomes of learning is not always visible. It can be good or bad behaviour, even if the children learn something it will not always show until it triggers.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
●  Observational Learning Requires Motivation&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp;○ Unlike behavioural tools observational learning requires motivation within themselves. If students are not motivated to reproduce what they learn they will stop at attention model itself and for some students if the role models are not powerful for them, Further for students who have various disabilities like ADHD or Autism, observational learning will not be a good tool to use&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In conclusion, observational learning can be a powerful tool for educating children. Most children learn from observation therefore, its important for teachers to make sure they are exposed to powerful role models who can influence students in a positive manner. Further teachers as educators must encourage collaborative learning and incentive and the supportive environment since learning happen via the environment. Further teacher must not miss use this observational tool and use it carefully since both good and bad can be observed by children and it can lead to socially unacceptable behaviours.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/805012844423758992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2016/08/social-cognitive-approaches-to-learning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/805012844423758992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/805012844423758992'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2016/08/social-cognitive-approaches-to-learning.html' title='Social Cognitive Approaches to Learning'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSlj0AR6W1rBKwLlpPnp1DO-sWOHkaKPTVrSZGUYekb0zyIUbDO_ds_jkhAsJ8q9APTLJm14VfllsovhA-YqwTNicZw_nibo13bYPgLSPKrow3gpUKFYCDTQaYPHxmuFDn8WgpI6ZKPcs/s72-c/a.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-7479230593174167902</id><published>2016-08-30T22:53:00.001-07:00</published><updated>2016-08-31T01:53:40.989-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Behavioural Theories"/><category scheme="http://www.blogger.com/atom/ns#" term="Education Psychology"/><category scheme="http://www.blogger.com/atom/ns#" term="Operant Conditioning"/><title type='text'>Behavioural approaches to Learning </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Behavioural theories of educational psychology focus on learning via behavioural changes, and as a person learn, he/she alter the way they perceive their environment. Which helps them process new information. Behavioural studies focus on two main areas when it comes to education psychology. 1. Classical conditioning founded by John B Watson, and the 2. Operant conditioning founded by B.F Skinner. Classical conditioning concepts are not widely used in classroom environments therefore, I will be focusing more on operant conditioning concepts and how it can be used for educational purposes to motivate students and excel their capabilities to the maximum capacity. &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSL7iVqiyIw31v23Zj84WsoMLkP5fWhBX-KqIrbdlPQoMUyS15OPZFSt215kC9eujon0uNgdl1vCgCrVCrvsIQgBXp2qMTk8isTBiYr5RRsOE87JZ_ly0K5pPslrbyF5kOr6k3wl6-QRU/s1600/discipline-clipart-7tabxbbta-jpeg-en2onr-clipart.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSL7iVqiyIw31v23Zj84WsoMLkP5fWhBX-KqIrbdlPQoMUyS15OPZFSt215kC9eujon0uNgdl1vCgCrVCrvsIQgBXp2qMTk8isTBiYr5RRsOE87JZ_ly0K5pPslrbyF5kOr6k3wl6-QRU/s320/discipline-clipart-7tabxbbta-jpeg-en2onr-clipart.jpeg&quot; width=&quot;284&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #8e7cc3;&quot;&gt;Operant Conditioning used as a teaching technique &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Discipline is the key to success of child’s development and learning and one of the most popular approach of disciplining a child by the use of Operant conditioning. Operant conditioning was invented by B. F skinner which is also known as instrumental learning. This is a method of learning via reward and punishment methodologies. Operant condition can be used to reward the good behaviour by reinforcement and minimize bad behaviour by punishments. In operant conditioning if an action is followed by a reinforcement (either positive or negative) it’s mostly likely to occur again in the future. For example if a student in the class clean the classroom on time and you have given him a gold star (a token as a positive reinforcement) the student will likely to clean the classroom again in order to get praised from the teacher. Conversely if an action has bad consequences and result in punishments this has a likelihood of weaken the action. For example if a student does not do his/her homework and if you give them extra hours of school (positive punishment) it;s more likely that student will do his/her homework on time next time in order to avoid punishment. This way you&amp;nbsp;can motivate your students for better behaviour in classrooms using operant conditioning.&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;page&quot; title=&quot;Page 2&quot;&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Here are some behaviours which can be improved by re enforcement&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table style=&quot;background-color: white; border-collapse: collapse; text-align: justify;&quot;&gt;&lt;colgroup&gt;&lt;col style=&quot;width: 38.141026%;&quot;&gt;&lt;/col&gt;&lt;col style=&quot;width: 32.532051%;&quot;&gt;&lt;/col&gt;&lt;col style=&quot;width: 29.326923%;&quot;&gt;&lt;/col&gt;
     &lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr&gt;
      &lt;td colspan=&quot;3&quot; rowspan=&quot;1&quot; style=&quot;background-color: rgb(75.290000%, 75.290000%, 75.290000%); border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Behavior Consequences Future Behavior
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
     &lt;/tr&gt;
&lt;tr&gt;
      &lt;td colspan=&quot;3&quot; rowspan=&quot;1&quot; style=&quot;background-color: rgb(60.000000%, 80.000000%, 100.000000%); border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Positive Reinforcement
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
     &lt;/tr&gt;
&lt;tr&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Student ask a good questions
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Teacher Praise the student
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Students will continue asking
more questions
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
     &lt;/tr&gt;
&lt;tr&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Student does homework on time
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Teacher gives a gold star
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Student will always do the
home work on time
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
     &lt;/tr&gt;
&lt;tr&gt;
      &lt;td colspan=&quot;3&quot; rowspan=&quot;1&quot; style=&quot;background-color: rgb(60.000000%, 80.000000%, 100.000000%); border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Negative Reinforcement
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
     &lt;/tr&gt;
&lt;tr&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;When the student write a good report
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Teacher gives less homework
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Student will continue writing
good reports
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
     &lt;/tr&gt;
&lt;tr&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;When the student come to the
classroom on time
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Teacher finish the lesson early
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Students will continue to
come to class on time&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Here are some students behaviours that can be decreased by punishments&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;table style=&quot;background-color: white; border-collapse: collapse; text-align: justify;&quot;&gt;&lt;colgroup&gt;&lt;col style=&quot;width: 36.057692%;&quot;&gt;&lt;/col&gt;&lt;col style=&quot;width: 32.532051%;&quot;&gt;&lt;/col&gt;&lt;col style=&quot;width: 31.410256%;&quot;&gt;&lt;/col&gt;
     &lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr&gt;
      &lt;td colspan=&quot;3&quot; rowspan=&quot;1&quot; style=&quot;background-color: rgb(75.290000%, 75.290000%, 75.290000%); border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;arialmt&amp;quot;; font-size: 10pt;&quot;&gt;Behavior Consequences Future Behavior&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
     &lt;/tr&gt;
&lt;tr&gt;
      &lt;td colspan=&quot;3&quot; rowspan=&quot;1&quot; style=&quot;background-color: rgb(60.000000%, 80.000000%, 100.000000%); border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Positive Punishment
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
     &lt;/tr&gt;
&lt;tr&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Student interrupts at class
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Teacher yells at the student
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Student will minimize
interruptions
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
     &lt;/tr&gt;
&lt;tr&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Student gives a bad report
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Teacher gives a black star
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;student will try to do a better
report next time
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
     &lt;/tr&gt;
&lt;tr&gt;
      &lt;td colspan=&quot;3&quot; rowspan=&quot;1&quot; style=&quot;background-color: rgb(60.000000%, 80.000000%, 100.000000%); border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Negative punishment
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
     &lt;/tr&gt;
&lt;tr&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;When student is late for class
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Teacher take his play time for
classroom work
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Student will try to come to
class on time
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
     &lt;/tr&gt;
&lt;tr&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;When student text during the class
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Teacher takes away his mobile
phone
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
      &lt;td style=&quot;border-bottom-color: rgb(0.000000%, 0.000000%, 0.000000%); border-bottom-width: 0.750000pt; border-left-color: rgb(0.000000%, 0.000000%, 0.000000%); border-left-width: 0.750000pt; border-right-color: rgb(0.000000%, 0.000000%, 0.000000%); border-right-width: 0.750000pt; border-style: solid; border-top-color: rgb(0.000000%, 0.000000%, 0.000000%); border-top-width: 0.750000pt;&quot;&gt;&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;color: rgb(13.330000% , 13.330000% , 13.330000%); font-family: &amp;quot;arialmt&amp;quot;; font-size: 10.000000pt;&quot;&gt;Student will not use his mobile
at class
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
     &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;page&quot; title=&quot;Page 2&quot;&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Those are some of the common uses of operant conditioning at classroom, however, when applying theory of B.F skinner its important to consider the age level of the student when rewarding/punishment student’s behaviour. And there are various different types of reinforcers/punishments can be used increase or decreased the behaviour according to the desired behaviour of the teacher in a classroom setting. They can be appear in different forms such as 1. Consumable (ie Candy) 2. Social (ie praise/yelling) 3. Activity (More time on the playground) 4, Exchangeables (tokens/stars) and 5. Tangible (getting the best seat). Among these components most educational valuable and relevant can activity as they can be done with educational value such as doing an educational game or watching an educational video. However, no matter what the method is, its important to give the consequences right after the behaviour. &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There are various types of reinforcement schedules can be used at classrooms, namely fixed ratio, fixed interval, variable ratio and variable interval. In an educational setting the two variable schedules are the best to maintain the desired behaviour as they are very unpredictable. For example if a students were given the chance to watch an educational movie after handing their assignments on time, they would be more motivated to do it if the outcome is always not the same (variable ratio) or the time during which they hand over the assignment and the reward has unpredictable gaps (variable interval). &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #8e7cc3;&quot;&gt;Advantages of using operant conditioning in classroom &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;When a child is rewarded for his/her good behaviour the child will get motivated and keep on doing that behaviour and he/she will eventually absorbed good behaviour&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;When the child is punished for his bad behaviour he/she will stop doing it.&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;It will be effective when it comes to shaping and discipline preschool and kindergarten children&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Internal reinforcement benefits students with self satisfaction, when doing a math problem right will motivate them to do more and more maths and eventually the student will be a pro at it (provide students an incentive to learn)&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Deliberate use by teachers provides students with the ability to respond to antecedents without fully realising it is influencing their behaviour.&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Can be easily used as a tool for kids with disabilities such as ADHD/Autism/Conduct disorder to discipline and get attention&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #8e7cc3;&quot;&gt;Disadvantages of using operant conditioning in classrooms&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;It will decrease child’s creativity and to think from his own as he/she will be scared of punishment&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;It will not work for for everyone, and some children might take punishment as a reinforcement (ie a student who does not get enough attention will do bad things to get attention from the teacher and will enjoy getting punished)&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;The student can pretend to stop the behaviour just to get the reward or avoid the punishment. Once the reward is given they could go back to bad behaviour&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;If rewards or punishments are misused it would give bad outcomes&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Operant conditioning does not take cognitive factors into account&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3is3nLZS6Fze72togM31dBg6komQakTe8sex-wOeKnP3tGMoVYD_KGN9beHPeKNTbqHZQv3wWqyuzf0sTY14g3T1dHXFa52ZqV6KWOE8D5QWHy7__453MxF3yJHtKhX_nXejrHP3BQSQ/s1600/9b4a9c6aad04735a755b5f50d9040cd3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;290&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3is3nLZS6Fze72togM31dBg6komQakTe8sex-wOeKnP3tGMoVYD_KGN9beHPeKNTbqHZQv3wWqyuzf0sTY14g3T1dHXFa52ZqV6KWOE8D5QWHy7__453MxF3yJHtKhX_nXejrHP3BQSQ/s320/9b4a9c6aad04735a755b5f50d9040cd3.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In conclusion operant conditioning is a very effective tool for teachers, specially when it comes to shaping the children for good behaviour and also to help them learn. This can also be used for kids with disabilities such as autism or ADHD to discipline them in order to get their attention. However, it must be used cautiously and consistently. Since behaviour management will be different for different students, punishment and rewarding must be done at individual level at individual circumstances.
   &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;page&quot; title=&quot;Page 4&quot;&gt;
&lt;div class=&quot;section&quot; style=&quot;background-color: rgb(100.000000%, 100.000000%, 100.000000%);&quot;&gt;
&lt;div class=&quot;layoutArea&quot;&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/7479230593174167902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2016/08/behavioural-approaches-to-learning_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/7479230593174167902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/7479230593174167902'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2016/08/behavioural-approaches-to-learning_30.html' title='Behavioural approaches to Learning '/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSL7iVqiyIw31v23Zj84WsoMLkP5fWhBX-KqIrbdlPQoMUyS15OPZFSt215kC9eujon0uNgdl1vCgCrVCrvsIQgBXp2qMTk8isTBiYr5RRsOE87JZ_ly0K5pPslrbyF5kOr6k3wl6-QRU/s72-c/discipline-clipart-7tabxbbta-jpeg-en2onr-clipart.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-6476919870171778856</id><published>2016-08-30T21:02:00.001-07:00</published><updated>2016-08-30T21:02:55.055-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technology for Education"/><title type='text'>Technology For Education ..</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgb5xUHtjNqdszy2QXIs0JbJ8skh79eL5R3c4NLZ_YzZ1UO92kQQAfZixe3YDTgv6-s6yX1jgt3Fqjg6KEB5LyNvV5rNr7SwSS9swq4_WlvsfKak7a8w2Psm9gheVH-dN8YJBm4kvqbrA/s1600/Education-and-Technology.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgb5xUHtjNqdszy2QXIs0JbJ8skh79eL5R3c4NLZ_YzZ1UO92kQQAfZixe3YDTgv6-s6yX1jgt3Fqjg6KEB5LyNvV5rNr7SwSS9swq4_WlvsfKak7a8w2Psm9gheVH-dN8YJBm4kvqbrA/s320/Education-and-Technology.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
For the next few years, I will be focusing more on technology for education and going to discuss how technology can play a major role in early childhood education. Also I will be talking about education psychology, technology for &amp;nbsp;children with special needs and a whole lot about Autism.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The main reason for this change is because, as educators/care givers/human beings, we need to be aware of &amp;nbsp;children with special needs and see the world from their point of view and always help them to achieve their best. For the next couple of years I will be researching more about educational platforms that can improve cognition, social and &amp;nbsp;communication, emotional intelligence and linguistic skills in special needs child. Also how they can learn how to learn and see how we can improve the traditional education system for the betterment of our children.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfOpNwsWEbORZ_e2XjkXfKKjL3gyOAkveaeErKOME4FspNvZxyz2iLs_hERHGIHsUYBh8ve2CaGLE3OOxKX_-gMCQRFUAOXq72TxPYLU0_ZhGMlsSwjdwri8eTjeTZ85Tq6i3WayQWm9g/s1600/Graphic_Quote_Uwe-Maurer-Special-Needs-Kindermusik-Twitter-1024x512-1024x512.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfOpNwsWEbORZ_e2XjkXfKKjL3gyOAkveaeErKOME4FspNvZxyz2iLs_hERHGIHsUYBh8ve2CaGLE3OOxKX_-gMCQRFUAOXq72TxPYLU0_ZhGMlsSwjdwri8eTjeTZ85Tq6i3WayQWm9g/s320/Graphic_Quote_Uwe-Maurer-Special-Needs-Kindermusik-Twitter-1024x512-1024x512.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/6476919870171778856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2016/08/technology-for-education.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/6476919870171778856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/6476919870171778856'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2016/08/technology-for-education.html' title='Technology For Education ..'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgb5xUHtjNqdszy2QXIs0JbJ8skh79eL5R3c4NLZ_YzZ1UO92kQQAfZixe3YDTgv6-s6yX1jgt3Fqjg6KEB5LyNvV5rNr7SwSS9swq4_WlvsfKak7a8w2Psm9gheVH-dN8YJBm4kvqbrA/s72-c/Education-and-Technology.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-2291760769539965992</id><published>2014-01-29T03:54:00.001-08:00</published><updated>2014-03-20T23:02:26.648-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Business Activity Monitoring"/><category scheme="http://www.blogger.com/atom/ns#" term="Logging"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 BAM"/><title type='text'>Real time log event analysis with WSO2 BAM(CEP features)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
One of the major problems when it comes to managing/monitoring distributed systems is not being able to detect when your system is giving issues all of a sudden. Lets say you have like 100 servers and you need to detect when a fatal error appears in the system and you want to act right away. This is nearly impossible if you do not have proper monitoring tools.&lt;br /&gt;
WSO2 BAM with WSO2 CEP features has the perfect mechanism to monitor real time logs and alert it to relevant parties when an expectation/ suspicious error occurs.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKS-4LuZX8mZYjSdF4xQMZEZuei2GHNuET-t8aJR9hiwjjm2C3LZDIcwKl8WNWUHcNxbgN6p5GxwE-13Cx9GXExY7bsVAEMIIT6V1sPpoKR8gPh8Op8dKW3WNLsVkyMNJ4f_yWhHPeBYc/s1600/LogEventing.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKS-4LuZX8mZYjSdF4xQMZEZuei2GHNuET-t8aJR9hiwjjm2C3LZDIcwKl8WNWUHcNxbgN6p5GxwE-13Cx9GXExY7bsVAEMIIT6V1sPpoKR8gPh8Op8dKW3WNLsVkyMNJ4f_yWhHPeBYc/s1600/LogEventing.png&quot; height=&quot;345&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
In this sample I will be using WSO2 Appserver and WSO2 BAM in order to demonstrate the monitoring and alerting capabilities of WSO2 BAM 2.4.0.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;WSO2 Appserver will be used to send log events to BAM.&lt;/li&gt;
&lt;li&gt;WSO2 BAM will do all the monitoring and alerting when logs are captured.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;color: orange; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Send Logs to BAM&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
To send logs all you need to is go to WSO2_AS_HOME/repository/conf/log4j.properties and add LOGEVENT to the root logger. And start Appserver. (please make sure your BAM server is up and running before starting the Appserver)&lt;br /&gt;
&lt;br /&gt;
To test if the logs are successfully sent to BAM, you can log in to cassandra explorer and see if there is a new column family created under EVENT_KS keyspace&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;ie log.AS.0.2013.1.12&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;color: orange; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;color: orange; font-family: Verdana, sans-serif;&quot;&gt;Configuring WSO2 BAM for REAL TIME analytics&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In this demo, I will be sending an email if an ERROR log occurs in WSO2 Appserver. &amp;nbsp;Since we will be using mail transport in BAM to send email alerts to recipients, we have to enable mail transport in BAM. To do that go to repository-&amp;gt;conf-&amp;gt;axis2-&amp;gt;axis2-client.xml and add email configurations.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;transportSender name=&quot;mailto&quot; class=&quot;org.apache.axis2.transport.mail.MailTransportSender&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&quot;mail.smtp.from&quot;&amp;gt;wso2esb.mail@gmail.com&amp;lt;/parameter&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&quot;mail.smtp.user&quot;&amp;gt;wso2esb.mail&amp;lt;/parameter&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&quot;mail.smtp.password&quot;&amp;gt;wso2mail&amp;lt;/parameter&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&quot;mail.smtp.host&quot;&amp;gt;smtp.gmail.com&amp;lt;/parameter&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&quot;mail.smtp.port&quot;&amp;gt;587&amp;lt;/parameter&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&quot;mail.smtp.starttls.enable&quot;&amp;gt;true&amp;lt;/parameter&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&quot;mail.smtp.auth&quot;&amp;gt;true&amp;lt;/parameter&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/transportSender&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span id=&quot;docs-internal-guid-183760f0-dd5c-f1f7-6391-17403a37d5c4&quot; style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline;&quot;&gt;Here you can give your own email configurations.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline;&quot;&gt;Restart/Start the BAM server.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline;&quot;&gt;Assuming the logs are getting published to BAM, lets see how we can capture these log events for real time analytics.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #8e7cc3;&quot;&gt;&lt;b&gt;Step 1 - Creating Event Adapters&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;In order to do real time analytics we need to create an&amp;nbsp;execution&amp;nbsp;plan. For that we need two input adapters.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Input adapter - to capture log events&amp;nbsp;coming&amp;nbsp;to BAM (in &amp;nbsp;this case it will be a wso2event).&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Output adapter - to send emails&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
To create adapters you need to login to BAM management console. Under configurations, there will be &quot;Event Processor Configs&quot; and add input event adapters and output event adapters as shown below.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Input Event adapter&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5hHsI-ky0PTp-OIf9od7WV8z3yzP7ZoBFDnfgCHYHEeT4KsC9EfuSuK7L-Xj5BPU5xM90bh2undVVH6R8YbTixcZFBhLIErffHyY-Z63wOtkTXl-Z7AYjy6wQTOxfRgYdkwRXfOTiVeg/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5hHsI-ky0PTp-OIf9od7WV8z3yzP7ZoBFDnfgCHYHEeT4KsC9EfuSuK7L-Xj5BPU5xM90bh2undVVH6R8YbTixcZFBhLIErffHyY-Z63wOtkTXl-Z7AYjy6wQTOxfRgYdkwRXfOTiVeg/s1600/1.png&quot; height=&quot;185&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Output Event Adapter&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSegpg_Bb7ZeUC-ywQCF74v_jG7jtHgd6yVtydnx59tnPNl0qtIrbLpEmheMrYtzqf-uU8AJUbtZOLT6gljXWPJ_UFS3a7KkCNrKtg2SkhOt-OSlh-ey7FrXsCANbTb2JGSU30mSEfHmM/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSegpg_Bb7ZeUC-ywQCF74v_jG7jtHgd6yVtydnx59tnPNl0qtIrbLpEmheMrYtzqf-uU8AJUbtZOLT6gljXWPJ_UFS3a7KkCNrKtg2SkhOt-OSlh-ey7FrXsCANbTb2JGSU30mSEfHmM/s1600/1.png&quot; height=&quot;190&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;color: #8e7cc3; font-family: Arial; font-size: 15px;&quot;&gt;Step 1 - Creating Stream Definitions&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;color: #8e7cc3; font-family: Arial; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Now that we have created event adapters, we need to create a stream definition to capture the LogEvent in order to do complex event processing. In the appserver log event, these are the attributes we have.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Meta Data&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;clientType {String}&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;Payload Data&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;tenantID &amp;nbsp;{String}&lt;/li&gt;
&lt;li&gt;serverName {String}&lt;/li&gt;
&lt;li&gt;appName &amp;nbsp;{String}&lt;/li&gt;
&lt;li&gt;logTime &amp;nbsp;{Long}&lt;/li&gt;
&lt;li&gt;priority {String}&lt;/li&gt;
&lt;li&gt;message {String}&lt;/li&gt;
&lt;li&gt;logger {String}&lt;/li&gt;
&lt;li&gt;ip {String}&lt;/li&gt;
&lt;li&gt;instance {String}&lt;/li&gt;
&lt;li&gt;stacktrace {String}&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div&gt;
To create the stream definition, go to main tab and under create stream definition you can create the log event stream as shown below.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRifdEbp9L_vgyfoCITmubZN5_Hem03eYp62k3I5o16-Xj6NVmtu5wob6bt6KyUamd-SWM3Lp9YbZ4qXEaoyyxx7-K1E-OM49t3Cl2zvb1mAkLhW4DnQ97BdTjD19M4Mq51tnm-RDzYOo/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRifdEbp9L_vgyfoCITmubZN5_Hem03eYp62k3I5o16-Xj6NVmtu5wob6bt6KyUamd-SWM3Lp9YbZ4qXEaoyyxx7-K1E-OM49t3Cl2zvb1mAkLhW4DnQ97BdTjD19M4Mq51tnm-RDzYOo/s1600/1.png&quot; height=&quot;464&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;color: #8e7cc3; font-family: Arial; font-size: 15px;&quot;&gt;Step 1 - Creating the Execution Plan&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
In the execution plan we will be specifying the input stream and writing a CEP Query (SQL Like Query) &amp;nbsp;for the event stream.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Go to Create Execution Plan, and give suitable name for the execution plan. Select the needed stream and give an alias. Click on import after selecting the stream. In our CEP Query we will analyze events and if an event has an error, we will send it to an output stream.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
CEP QUERY&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599; font-family: Courier New, Courier, monospace;&quot;&gt;from LogEvents[priority == &quot;ERROR&quot;]&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599; font-family: Courier New, Courier, monospace;&quot;&gt;select message,stacktrace,serverName&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599; font-family: Courier New, Courier, monospace;&quot;&gt;insert into ExceptionStream&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg12yD0iD8_SaP2Mveb08NVREEFr2afwE1Lg6KdS3H8I4J5DmYS249CirNR1XtIaVDArab9qHwYfRj4Wlu67Nv9n6mUAuEXpbXZWoOBnrAjM5ylLIYRwQ30cWf2RfRH2a145tr3uPIRUJs/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg12yD0iD8_SaP2Mveb08NVREEFr2afwE1Lg6KdS3H8I4J5DmYS249CirNR1XtIaVDArab9qHwYfRj4Wlu67Nv9n6mUAuEXpbXZWoOBnrAjM5ylLIYRwQ30cWf2RfRH2a145tr3uPIRUJs/s1600/1.png&quot; height=&quot;300&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
After creating the Query, we need to add the exported stream (which is the stream that we are sending Error logs) according to our CEP querry exported stream name should be&amp;nbsp;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ExceptionStream&amp;nbsp;&lt;/span&gt;give the value of the exported stream name and select &quot;Create Stream Definition&quot; to create the ExceptionStream. This stream will be auto generated by looking at the CEP as shown below.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEhbg-91ainNkYn23g8jHwsXqRajptYYZS7WORSX_3qOoDZItRkFgFAZSehKgQVIyXJAATPx0lhn8L1sMFs6VJSgwgVmftNzlDqH8g1tQOTUsR4UctaHkk0Bxc6F1rLz1jb5nwGhA5FX8/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEhbg-91ainNkYn23g8jHwsXqRajptYYZS7WORSX_3qOoDZItRkFgFAZSehKgQVIyXJAATPx0lhn8L1sMFs6VJSgwgVmftNzlDqH8g1tQOTUsR4UctaHkk0Bxc6F1rLz1jb5nwGhA5FX8/s1600/1.png&quot; height=&quot;326&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Once we create the Exception stream select the Exception stream as exported stream and create a new formatter. This formatter is used to specify the email body and email related information like the subject, to address ect. &amp;nbsp;Give the output mapping type as text so we can give the content of the email message body inline.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPrm8RTT-zq-EvL24EFLM57HYCYnui7ZHVpKbHJAiurj_xH9XmRo3clONlUx7RMGHh-fFe8zzGV6V5rkrQyd95zkZipEw-yABD08LgboyhAdt7el-s1XAgqQObbwH7T51UX_OEXqX9Wsw/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPrm8RTT-zq-EvL24EFLM57HYCYnui7ZHVpKbHJAiurj_xH9XmRo3clONlUx7RMGHh-fFe8zzGV6V5rkrQyd95zkZipEw-yABD08LgboyhAdt7el-s1XAgqQObbwH7T51UX_OEXqX9Wsw/s1600/1.png&quot; height=&quot;400&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Email Body&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #ffe599; font-family: Courier New, Courier, monospace;&quot;&gt;Error Occurred in {{serverName}} – {{message}}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #ffe599; font-family: Courier New, Courier, monospace;&quot;&gt;{{stacktrace}}&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
In this body we are taking message, stacktrace and server name from the OutputStream (ExceptionStream) and adding a readable message for the email message body.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirAj9MOyGzIPnXiW-sm5lgJnBIJhgFYE5dWNWMredmyMqzB4t3Tr4gHDPS0JcE2D7IZFAfPf6npx6a8KgRUsigdmeK8lXCq2QXXr1zGdiIMts0B4bWh3WPxJBYme3QbUoCggm1EM6Zug4/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirAj9MOyGzIPnXiW-sm5lgJnBIJhgFYE5dWNWMredmyMqzB4t3Tr4gHDPS0JcE2D7IZFAfPf6npx6a8KgRUsigdmeK8lXCq2QXXr1zGdiIMts0B4bWh3WPxJBYme3QbUoCggm1EM6Zug4/s1600/1.png&quot; height=&quot;368&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
Add the event formatter and save the execution plan. Now we have successfully created the event trigger to monitory error logs for wso2 appserver. You can test this by invoking a service with an error.&lt;br /&gt;
&lt;br /&gt;
If you want more in depth information on real time log event analytics you can follow the &lt;a href=&quot;http://sparkletechthoughts.blogspot.com/2014/01/screencast-monitoring-system-logs-with.html&quot;&gt;following&lt;/a&gt; screen cast for more details&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/2291760769539965992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2014/01/real-time-log-event-analysis-with-wso2.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/2291760769539965992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/2291760769539965992'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2014/01/real-time-log-event-analysis-with-wso2.html' title='Real time log event analysis with WSO2 BAM(CEP features)'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKS-4LuZX8mZYjSdF4xQMZEZuei2GHNuET-t8aJR9hiwjjm2C3LZDIcwKl8WNWUHcNxbgN6p5GxwE-13Cx9GXExY7bsVAEMIIT6V1sPpoKR8gPh8Op8dKW3WNLsVkyMNJ4f_yWhHPeBYc/s72-c/LogEventing.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-6715775521630612384</id><published>2014-01-15T00:39:00.000-08:00</published><updated>2014-02-25T01:18:46.795-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Logging"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 BAM"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 CEP"/><title type='text'>[Screencast] Monitoring system logs with WSO2 Business Activity Monitor </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This screencast explain how you can do your enterprise monitoring using BAM and CEP features.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6jx_DTG4E_Eesz1xOpApN_d5TzyhwyKywl9LPQB1NNoErvUgSnYRha4TgAWDPcreWJwzgV2K3keUIwtxmBTYJ2ur4M5XPElDHM0qywSnRzXUBFpczyemrM_j4kMKpj1GzDkCsoOr-zXY/s1600/BAM_CEP_DEMO.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6jx_DTG4E_Eesz1xOpApN_d5TzyhwyKywl9LPQB1NNoErvUgSnYRha4TgAWDPcreWJwzgV2K3keUIwtxmBTYJ2ur4M5XPElDHM0qywSnRzXUBFpczyemrM_j4kMKpj1GzDkCsoOr-zXY/s1600/BAM_CEP_DEMO.png&quot; height=&quot;442&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Overview of the screencast&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; * Send Log Events to BAM/CEP&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; * Create analytics to analyse logs daily( can be scheduled accordingly)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; * Create gadgets with &amp;nbsp;log statistics (charts/tables)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; * Monitor logs real time with CEP (send alerts to relevant parties when an error log appears.)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dyz_4ogr-IT7ToL3S1v4g0qmnMuNj8tm4XLY-JeuWTHe2840kyvhzWNvKogGpf9jeO8r0_4otg5OYoctmFrrA&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/6715775521630612384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2014/01/screencast-monitoring-system-logs-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/6715775521630612384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/6715775521630612384'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2014/01/screencast-monitoring-system-logs-with.html' title='[Screencast] Monitoring system logs with WSO2 Business Activity Monitor '/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6jx_DTG4E_Eesz1xOpApN_d5TzyhwyKywl9LPQB1NNoErvUgSnYRha4TgAWDPcreWJwzgV2K3keUIwtxmBTYJ2ur4M5XPElDHM0qywSnRzXUBFpczyemrM_j4kMKpj1GzDkCsoOr-zXY/s72-c/BAM_CEP_DEMO.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-5138404895328332290</id><published>2014-01-09T07:01:00.001-08:00</published><updated>2014-01-09T18:55:23.800-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActiveMQ"/><category scheme="http://www.blogger.com/atom/ns#" term="Eventing"/><category scheme="http://www.blogger.com/atom/ns#" term="JMS"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 Data Services"/><title type='text'>Eventing using WSO2 DSS - Send data to a JMS Queue for a given event trigger</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you want to trigger an event depend on an SQL related service call this is a great example on how you can do it using WSO2 Data Service Server.&lt;br /&gt;
&lt;br /&gt;
In this sample I am going to explain how you can handle event triggers in WSO2 Data service server. &amp;nbsp;In WSO2 DSS, you have two types of event triggers.&lt;br /&gt;
&lt;br /&gt;
1. Input event triggers - which trigger&#39;s an event looking at the request.&lt;br /&gt;
2. Output event triggers - which trigger&#39;s an event looking at the response.&lt;br /&gt;
&lt;br /&gt;
For both of these trigger&#39;s you can specify an ex-path expression to trigger the event.&lt;br /&gt;
&lt;br /&gt;
To demonstrate this functionality I &amp;nbsp;am going to write a small data service which insert Student information. And every time an insertion happen, primary key of the inserted record will be send to a JMS Queue.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjxUxiQOQh3myekoyEAjxRFoZO08YsxfblfNAq0-vDh9LAAfey9WDgRFPKO72m6YswodC8csWsmsUFltXh2WPhKAhjaQx9lQkTGjytQCtSKr0x3K-ur_b5bAkeDovt1MHVxQQHLRmB9bU/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjxUxiQOQh3myekoyEAjxRFoZO08YsxfblfNAq0-vDh9LAAfey9WDgRFPKO72m6YswodC8csWsmsUFltXh2WPhKAhjaQx9lQkTGjytQCtSKr0x3K-ur_b5bAkeDovt1MHVxQQHLRmB9bU/s1600/1.png&quot; height=&quot;273&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Prerequisites&lt;br /&gt;
&lt;br /&gt;
In order to try out this sample you need to have&lt;br /&gt;
&amp;nbsp; -&amp;gt; WSO2 Data Services Server &lt;a href=&quot;http://wso2.com/products/data-services-server/&quot;&gt;Downloaded&lt;/a&gt;&lt;br /&gt;
&amp;nbsp; -&amp;gt; You need to have a database of your choice&lt;br /&gt;
&amp;nbsp; -&amp;gt; Add related drivers to DSS_HOME/repository/component/lib folder&lt;br /&gt;
&amp;nbsp; -&amp;gt; ActiveMQ downloaded and started&lt;br /&gt;
&lt;br /&gt;
Step 1 - Enable JMS senders in WSO2 DSS.&lt;br /&gt;
&lt;br /&gt;
In order to send JMS messages from data services, you need to enable the JMS sender in data services server.&lt;br /&gt;
To enable&amp;nbsp;JMSSender -&amp;gt; Go to DSS_HOME/repository/conf/axis2/axis2.xml and un-comment the following line.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #ecf8ff; border: 1px solid #b4d0dc;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;transportSender&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;jms&quot;&lt;/span&gt; class=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;org.apache.axis2.transport.jms.JMSSender&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
and then start the data services instance.&lt;br /&gt;
&lt;br /&gt;
Step 2 - Create data Service.&lt;br /&gt;
&lt;br /&gt;
If you are new on creating data services, please refer the following post on how to &lt;a href=&quot;http://sparkletechthoughts.blogspot.com/2010/08/how-to-create-mysql-data-service-using.html&quot;&gt;create a data service using WSO2 Data Service Server&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
I have a small table called Student. Lets create a simple data service for the table student.&lt;br /&gt;
&lt;br /&gt;
describe Student;&lt;br /&gt;
+---------+-------------+------+-----+---------+----------------+&lt;br /&gt;
| Field &amp;nbsp; | Type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Null | Key | Default | Extra &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
+---------+-------------+------+-----+---------+----------------+&lt;br /&gt;
| sid &amp;nbsp; &amp;nbsp; | int(11) &amp;nbsp; &amp;nbsp; | NO &amp;nbsp; | PRI | NULL &amp;nbsp; &amp;nbsp;| auto_increment |&lt;br /&gt;
| name &amp;nbsp; &amp;nbsp;| varchar(90) | YES &amp;nbsp;| &amp;nbsp; &amp;nbsp; | NULL &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| address | varchar(75) | YES &amp;nbsp;| &amp;nbsp; &amp;nbsp; | NULL &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| country | varchar(75) | YES &amp;nbsp;| &amp;nbsp; &amp;nbsp; | NULL &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| phone &amp;nbsp; | varchar(20) | YES &amp;nbsp;| &amp;nbsp; &amp;nbsp; | NULL &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| major &amp;nbsp; | varchar(50) | YES &amp;nbsp;| &amp;nbsp; &amp;nbsp; | NULL &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| gpa &amp;nbsp; &amp;nbsp; | float &amp;nbsp; &amp;nbsp; &amp;nbsp; | YES &amp;nbsp;| &amp;nbsp; &amp;nbsp; | NULL &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| tutorid | int(11) &amp;nbsp; &amp;nbsp; | YES &amp;nbsp;| &amp;nbsp; &amp;nbsp; | NULL &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
+---------+-------------+------+-----+---------+----------------+&lt;br /&gt;
8 rows in set (0.00 sec)&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Log in to DSS management console -&amp;gt; Create New Data Service. Give the data service name appropriately and click on next.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Click on Add Data Source and give database configuration appropriately and click on next.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcncQnUPz7TD2LSYG8k7hHFL2dCINonhVtnZXPlTZu4reKzgNXQJ-VJ9OtHHHLxANwYugqK8aFKxbpBik4G5f5OhH3MTT7kVCPCfnuETUacWXoeWVwL8MYOnfcGRd0YliGHe-HzZoa_Ko/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcncQnUPz7TD2LSYG8k7hHFL2dCINonhVtnZXPlTZu4reKzgNXQJ-VJ9OtHHHLxANwYugqK8aFKxbpBik4G5f5OhH3MTT7kVCPCfnuETUacWXoeWVwL8MYOnfcGRd0YliGHe-HzZoa_Ko/s1600/1.png&quot; height=&quot;175&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Next section we will discuss how we can write a data service Query which can invoke a trigger according to the query result.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
In this Query my SQL is simple insert&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;INSERT INTO Student(name,address,country,phone,major,gpa,tutorid) VALUES(:name,:address,:country,:phone,:major,:gpa,:tutorid)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Click on &quot;Generate Input Mappings&quot;, and this will generate the input mappings for the input parameters.&lt;br /&gt;
&lt;br /&gt;
Since we need a response back (ideally it will be the primary key of the newly inserted record) we can click &amp;nbsp;Return generated key which will auto generate the response.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKg69NHiYlK1xAPmOh4MQNRbyGGoyr6AP8FXyyBPgW4cQ0UH8yvIITdcE0YQMcB5fVEdX_dTVWteqe1m-ubb40a-Sn5dA6BDNxu8doAJ23-N_9CkoqYPV01iC2QQY2AlhGvK7OIqwHPr0/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKg69NHiYlK1xAPmOh4MQNRbyGGoyr6AP8FXyyBPgW4cQ0UH8yvIITdcE0YQMcB5fVEdX_dTVWteqe1m-ubb40a-Sn5dA6BDNxu8doAJ23-N_9CkoqYPV01iC2QQY2AlhGvK7OIqwHPr0/s1600/2.png&quot; height=&quot;280&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To add the event trigger, scroll down a little bit. Under Events, click on Manage Events. There, we give the eventing configurations.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #f9cb9c;&quot;&gt;Event ID &lt;/span&gt;-&amp;nbsp;student_addition_trigger&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #f9cb9c;&quot;&gt;Xpath&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;-&amp;nbsp;//*[local-name()=&#39;ID&#39; and namespace-uri()=&#39;http://ws.wso2.org/dataservice&#39;]&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #f9cb9c;&quot;&gt;Target Topic &lt;/span&gt;-&amp;nbsp;student_insertion_topic&lt;br /&gt;
&lt;br /&gt;
&lt;table class=&quot;normal&quot; id=&quot;eventsTab&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;vertical-align: top !important;&quot; valign=&quot;top&quot;&gt;&lt;span style=&quot;color: #f9cb9c;&quot;&gt;Event Sink URL (&lt;/span&gt; JMS URL according to your activeMQ)&lt;/td&gt;
                                            &lt;td&gt;&lt;div&gt;
&lt;table id=&quot;serviceTbl&quot;&gt;
                                                        &lt;tbody&gt;
&lt;tr&gt;
                                                            &lt;td style=&quot;padding-left: 0px ! important;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
jms:/student_insertion_topic?transport.jms.DestinationType=queue&amp;amp;transport.jms.ContentTypeProperty=Content-Type&amp;amp;java.naming.provider.url=tcp://localhost:61616&amp;amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;amp;transport.jms.ConnectionFactoryType=queue&amp;amp;transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&lt;br /&gt;
&lt;br /&gt;
Go to Main Configuration and add the Output trigger as shown below.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigiX8z2wC_ETqKVoROlcNvLgEU2a6sx8zRePulGJuQdAySQY-2iBxEKyvq0f2ABzHsUUH3mfCfg4VRXPLQ113pa8HCIVLPSLw7UBUvE_AOj29b9ovbsweAIpQzVwohLwdjzL18fdeRqrk/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigiX8z2wC_ETqKVoROlcNvLgEU2a6sx8zRePulGJuQdAySQY-2iBxEKyvq0f2ABzHsUUH3mfCfg4VRXPLQ113pa8HCIVLPSLw7UBUvE_AOj29b9ovbsweAIpQzVwohLwdjzL18fdeRqrk/s1600/1.png&quot; height=&quot;331&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Now we have done with our Query Section. Click on Save to save the Query and Click next to add the &amp;nbsp;operation.&lt;br /&gt;
Add New Opperation -&amp;gt;&lt;br /&gt;
Operation Name&lt;span style=&quot;color: red;&quot;&gt;* &lt;/span&gt;- InsertStudent&lt;br /&gt;
Query ID&lt;span style=&quot;color: red;&quot;&gt;* &lt;/span&gt;- insertQ&lt;br /&gt;
&lt;br /&gt;
Save and finish.&lt;br /&gt;
&lt;br /&gt;
Now we can test this functionality by using the try it function provided by Data Service Server&lt;br /&gt;
&lt;br /&gt;
My Request&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #ecf8ff; border: 1px solid #b4d0dc;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;body&amp;gt; &amp;lt;p:InsertStudent&lt;/span&gt; xmlns:p=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;p:name&amp;gt;&lt;/span&gt;Amani&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/p:name&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;p:address&amp;gt;&lt;/span&gt;Soysa&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/p:address&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;p:country&amp;gt;&lt;/span&gt;SL&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/p:country&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;p:phone&amp;gt;&lt;/span&gt;1923123111&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/p:phone&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;p:major&amp;gt;&lt;/span&gt;SE&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/p:major&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;p:gpa&amp;gt;&lt;/span&gt;4.2&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/p:gpa&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;p:tutorid&amp;gt;&lt;/span&gt;12&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/p:tutorid&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/p:InsertStudent&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
My Response&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #ecf8ff; border: 1px solid #b4d0dc;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;GeneratedKeys&lt;/span&gt; xmlns=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt; &amp;lt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;Entry&lt;/span&gt;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;ID&amp;gt;&lt;/span&gt;5&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/ID&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/Entry&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/GeneratedKeys&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If you go to your &lt;a href=&quot;http://0.0.0.0:8161/admin/queues.jsp&quot;&gt;active MQ console&lt;/a&gt;, You would see number of pending messages as shown below. You can go inside your Queue and explore more!!!!&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaOE_AhmMJss0RxlZFsbtq_wn7bKPWHyrhicWnweq5nRD1K4V9tClJc-nuvKc9XLXxb0OSfYaOPcyAfpMw43R3NfXLtEJx8AMLQrx5s3INlJqRuVqRNst9HPbeI_-RoCusW9VKYroADHk/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaOE_AhmMJss0RxlZFsbtq_wn7bKPWHyrhicWnweq5nRD1K4V9tClJc-nuvKc9XLXxb0OSfYaOPcyAfpMw43R3NfXLtEJx8AMLQrx5s3INlJqRuVqRNst9HPbeI_-RoCusW9VKYroADHk/s1600/1.png&quot; height=&quot;140&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/5138404895328332290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2014/01/eventing-using-wso2-dss-send-data-to.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/5138404895328332290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/5138404895328332290'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2014/01/eventing-using-wso2-dss-send-data-to.html' title='Eventing using WSO2 DSS - Send data to a JMS Queue for a given event trigger'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjxUxiQOQh3myekoyEAjxRFoZO08YsxfblfNAq0-vDh9LAAfey9WDgRFPKO72m6YswodC8csWsmsUFltXh2WPhKAhjaQx9lQkTGjytQCtSKr0x3K-ur_b5bAkeDovt1MHVxQQHLRmB9bU/s72-c/1.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-3589264560978662426</id><published>2013-10-12T20:52:00.001-07:00</published><updated>2013-10-12T20:56:04.347-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 ESB"/><title type='text'>How to Receive Emails to WSO2 ESB</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In one of my &lt;a href=&quot;http://sparkletechthoughts.blogspot.com/2012/08/how-to-send-mails-using-wso2-esb.html&quot;&gt;previous blogs&lt;/a&gt;, I have explained how we can send emails using WSO2 ESB, in this post I am going to explain how we receive emails to WSO2 ESB, so that you can collect data from in coming emails and do some processing and send them to data storage or any other end point.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5ObDGI5h58GfZW5wuelvH6oZiAAtc-HC_n_L6M8FpUn87j0ecRzC_e_trXNZRfjaoxhv4D7cyxY0GF9S1YYodLmtF34FbXDGZbkSHQO1ldMFFhnBL7eYPY_GAlNJ7oAEYuENcFqUoZVI/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;412&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5ObDGI5h58GfZW5wuelvH6oZiAAtc-HC_n_L6M8FpUn87j0ecRzC_e_trXNZRfjaoxhv4D7cyxY0GF9S1YYodLmtF34FbXDGZbkSHQO1ldMFFhnBL7eYPY_GAlNJ7oAEYuENcFqUoZVI/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Before we start ESB server, you need to enable mail transport listeners in ESB. In order to do that you need to go to WSO2_ESB_HOME/repository/conf/axis2/axis2.xml and un comment the following.&lt;br /&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: black; border: 0px solid #b4d0dc;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;transportReceiver&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mailto&quot;&lt;/span&gt; class=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;org.apache.axis2.transport.mail.MailTransportListener&quot;&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
Then start the server.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Creating the proxy service&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To create the proxy, go to add -&amp;gt; Proxy service -&amp;gt; Custom Proxy service. There we&#39;l give the name as&amp;nbsp;&lt;strong&gt;MyMailProzy.&lt;/strong&gt;&lt;br /&gt;
And you need to give set of service parameters as listed below.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;python&quot; style=&quot;background-color: black; border: 0px solid #b4d0dc;&quot;&gt; &amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;transport.PollInterval&quot;&lt;/span&gt;&amp;gt;5&amp;lt;/parameter&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.pop3.host&quot;&lt;/span&gt;&amp;gt;pop.gmail.com&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.pop3.password&quot;&lt;/span&gt;&amp;gt;wso2mail&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.pop3.user&quot;&lt;/span&gt;&amp;gt;wso2esb.mail&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.pop3.socketFactory.port&quot;&lt;/span&gt;&amp;gt;995&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;transport.mail.ContentType&quot;&lt;/span&gt;&amp;gt;text/plain&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.pop3.port&quot;&lt;/span&gt;&amp;gt;995&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.pop3.socketFactory.fallback&quot;&lt;/span&gt;&amp;gt;false&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;transport.mail.Address&quot;&lt;/span&gt;&amp;gt;wso2esb.mail@gmail.com&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;transport.mail.Protocol&quot;&lt;/span&gt;&amp;gt;pop3&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.pop3.socketFactory.class&quot;&lt;/span&gt;&amp;gt;javax.net.ssl.SSLSocketFactory&amp;lt;/parameter&amp;gt;&lt;/div&gt;
&lt;br /&gt;
And also under&amp;nbsp;Transport Settings you need to enable&amp;nbsp;mailto transport as shown in the below diagram.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ1ruI5Bcm-zrbS9NZZ5CHk2vHX5qdZZdJcRXSflQ-_s_oijxoWdWWm0cQ4_FcpL2Ab6QSMnysrkLFl23_JJU7mgaVZhM-wtQ2NJwBzYsnL65gXPgS269kyGaCaJ3LbDmMlqQHRWgHUTc/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;280&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ1ruI5Bcm-zrbS9NZZ5CHk2vHX5qdZZdJcRXSflQ-_s_oijxoWdWWm0cQ4_FcpL2Ab6QSMnysrkLFl23_JJU7mgaVZhM-wtQ2NJwBzYsnL65gXPgS269kyGaCaJ3LbDmMlqQHRWgHUTc/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Click on next and we will configure the in sequence.&lt;br /&gt;
&lt;br /&gt;
There we will log the sender&#39;s email address by getting the sender email address to a property from the transports (get-property(&#39;transport&#39;, &#39;From&#39;)) and then using log mediator to log it&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;python&quot; style=&quot;background-color: black; border: 0px solid #b4d0dc;&quot;&gt;&amp;lt;inSequence xmlns=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.apache.org/ns/synapse&quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;&lt;span style=&quot;color: #7f0055;&quot;&gt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;senderAddress&quot;&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;get-property(&#39;transport&#39;, &#39;From&#39;)&quot;&lt;/span&gt; scope=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;default&quot;&lt;/span&gt; &lt;span style=&quot;color: #7f0055;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;STRING&quot;&lt;/span&gt;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;log level=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;full&quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;span style=&quot;color: #7f0055;&quot;&gt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Sender Address&quot;&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;get-property(&#39;senderAddress&#39;)&quot;&lt;/span&gt;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/log&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;drop/&amp;gt;&lt;br /&gt;
&amp;lt;/inSequence&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbtXBBaFNIPHYAj1Bif3aMaHH02X1HeH3XdWPhiVnbRW-KiR0OZ5M6l2xhGAlfjxome6lO1lZ0DlQpTX_QR-Ct4ElFdQnCE4N9_8oxtDl4a7eudGx5rzev9hFcJvyBzAs-9ON-xlycIHI/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;173&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbtXBBaFNIPHYAj1Bif3aMaHH02X1HeH3XdWPhiVnbRW-KiR0OZ5M6l2xhGAlfjxome6lO1lZ0DlQpTX_QR-Ct4ElFdQnCE4N9_8oxtDl4a7eudGx5rzev9hFcJvyBzAs-9ON-xlycIHI/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on next to configure the out sequence.&lt;br /&gt;
&lt;br /&gt;
In the out sequence we will be having a simple send mediator which will send the response back to the client.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;The full ESB Configuration&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;python&quot; style=&quot;background-color: black; border: 0px solid #b4d0dc;&quot;&gt;&amp;lt;?xml version=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt; encoding=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;UTF-8&quot;&lt;/span&gt;?&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
&amp;lt;proxy xmlns=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.apache.org/ns/synapse&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;MyMailProzy&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;transports=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mailto&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;statistics=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;disable&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;trace=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;disable&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;startOnLoad=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;true&quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;target&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;inSequence&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;&lt;span style=&quot;color: #7f0055;&quot;&gt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;senderAddress&quot;&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;get-property(&#39;transport&#39;, &#39;From&#39;)&quot;&lt;/span&gt;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;log level=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;full&quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;span style=&quot;color: #7f0055;&quot;&gt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Sender Address&quot;&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;get-property(&#39;senderAddress&#39;)&quot;&lt;/span&gt;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/log&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;drop/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/inSequence&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;outSequence&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;send/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/outSequence&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/target&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.pop3.host&quot;&lt;/span&gt;&amp;gt;pop.gmail.com&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;transport.PollInterval&quot;&lt;/span&gt;&amp;gt;5&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.pop3.password&quot;&lt;/span&gt;&amp;gt;wso2mail&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;transport.mail.ContentType&quot;&lt;/span&gt;&amp;gt;text/plain&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.pop3.socketFactory.port&quot;&lt;/span&gt;&amp;gt;995&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.pop3.user&quot;&lt;/span&gt;&amp;gt;wso2esb.mail&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.pop3.socketFactory.fallback&quot;&lt;/span&gt;&amp;gt;false&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.pop3.port&quot;&lt;/span&gt;&amp;gt;995&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;transport.mail.Address&quot;&lt;/span&gt;&amp;gt;wso2esb.mail@gmail.com&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.pop3.socketFactory.class&quot;&lt;/span&gt;&amp;gt;javax.net.ssl.SSLSocketFactory&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;parameter name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;transport.mail.Protocol&quot;&lt;/span&gt;&amp;gt;pop3&amp;lt;/parameter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;description/&amp;gt;&lt;br /&gt;
&amp;lt;/proxy&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
Sending the EMAIL&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR3cHoB8Bo01zAwokcA37Ok3WzZnKSZJS9gAvndXflI76YwHOxPY-SjrsroW1qi3l2hQwIB_iQnNT3wxccW-L7Y1d5iedXoF1C_EVWl1gsoRMAajc90Vk9PY7QXdwCdLpE8BYAJK9ynwc/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;456&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR3cHoB8Bo01zAwokcA37Ok3WzZnKSZJS9gAvndXflI76YwHOxPY-SjrsroW1qi3l2hQwIB_iQnNT3wxccW-L7Y1d5iedXoF1C_EVWl1gsoRMAajc90Vk9PY7QXdwCdLpE8BYAJK9ynwc/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
I have used my gmail to send the email to ESB, my to address will be&amp;nbsp;wso2esb.mail@gmail.com, and you can customize your own subject, and the message body. &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_dKqBMXVuMJ-RweH7NU4SdFT4sth2cA2NU_4Mox6s4LkEVGbxzZkiKQq2JXBqH7RJLmmteNyAg1EmjDqwR7R8umHN-LZmnrIHZiKff21VJqCleXl6Eu_mtN4dZqVt2m-XZjdO8CJ4eNw/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;368&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_dKqBMXVuMJ-RweH7NU4SdFT4sth2cA2NU_4Mox6s4LkEVGbxzZkiKQq2JXBqH7RJLmmteNyAg1EmjDqwR7R8umHN-LZmnrIHZiKff21VJqCleXl6Eu_mtN4dZqVt2m-XZjdO8CJ4eNw/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Once we send the email, the email will be received to ESB, and you will see the following logs&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #ecf8ff; border: 1px solid #b4d0dc;&quot;&gt;[2013-10-13 09:06:45,038] &amp;nbsp;INFO - LogMediator To: , From: mailto:wso2esb.mail@gmail.com, WSAction: urn:mediate, SOAPAction: urn:mediate, MessageID: &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;CAMJOoU667WqnFbx-cCG&lt;/span&gt;=hgOy3E2i2qRqKaAUoAcETJE8a-2b+g@mail.gmail.com&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;, Direction: request, Sender Address = Amani Soysa &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;amani&lt;/span&gt;.soysa@gmail.com&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;, Envelope: &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;soapenv:Envelope&lt;/span&gt; xmlns:soapenv=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;soapenv:Body&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;text&lt;/span&gt; xmlns=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.apache.org/commons/ns/payload&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;--001a11c233ea18b53d04e8970f15&amp;amp;#xd; &lt;span style=&quot;background-color: transparent;&quot;&gt;Content-Type: text&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;plain; charset=ISO-8859-1&amp;amp;#xd; &lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&amp;amp;#xd; &lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;Sending emails to &amp;nbsp;WSO2 Enterprise Service Bus!!!!&amp;amp;#xd; &lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&amp;amp;#xd; &lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;--001a11c233ea18b53d04e8970f15&amp;amp;#xd; &lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;Content-Type: text&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;html; charset=ISO-8859-1&amp;amp;#xd; &lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;Content-Transfer-Encoding: quoted-printable&amp;amp;#xd; &lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&amp;amp;#xd; &lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&amp;amp;lt;div dir=3D&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #2a00ff;&quot;&gt;&quot;ltr&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;Sending emails to=A0&amp;amp;lt;span style=3D&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #2a00ff;&quot;&gt;&quot;color:rgb(68,68,68);fon=&amp;amp;#xd; &lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;t-family:arial,sans-serif;line-height:16px&quot; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;=A0&amp;amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&amp;amp;lt;span style=3D&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #2a00ff;&quot;&gt;&quot;font-w=&amp;amp;#xd;&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;eight:bold;color:rgb(68,68,68);font-family:arial,sans-serif;line-height:16p=&amp;amp;#xd;&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;x&quot; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;WSO2 Enterprise Service Bus!!!!&amp;amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;=A0&amp;amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&amp;amp;#xd;&amp;amp;#xd; &lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;--001a11c233ea18b53d04e8970f15--&amp;amp;#xd; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/text&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/soapenv:Body&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/3589264560978662426/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/10/how-to-receive-emails-to-wso2-esb.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/3589264560978662426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/3589264560978662426'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/10/how-to-receive-emails-to-wso2-esb.html' title='How to Receive Emails to WSO2 ESB'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5ObDGI5h58GfZW5wuelvH6oZiAAtc-HC_n_L6M8FpUn87j0ecRzC_e_trXNZRfjaoxhv4D7cyxY0GF9S1YYodLmtF34FbXDGZbkSHQO1ldMFFhnBL7eYPY_GAlNJ7oAEYuENcFqUoZVI/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-1383302661750858145</id><published>2013-10-12T07:38:00.003-07:00</published><updated>2013-10-12T07:38:59.711-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 ESB"/><title type='text'>How to call multiple soap operations using call out mediator - WSO2 ESB</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In this post I will explain how we can call multiple operations inside the same proxy service using the &amp;nbsp;call out mediator in WSO2 ESB. For this sample I have used my &lt;a href=&quot;http://sparkletechthoughts.blogspot.com/2013/10/distributed-transaction-with-wso2-data.html&quot;&gt;distributed transaction sample&lt;/a&gt;&amp;nbsp;where we need to call multiple operation in the same transaction.&lt;br /&gt;
&lt;br /&gt;
In order to do this you need to have WSO2 ESB, as well as sample web service with multiple operations. &amp;nbsp;For that I will be using WSO2 DSS distributed transaction data service which I have explained in my previous &lt;a href=&quot;http://sparkletechthoughts.blogspot.com/2013/10/distributed-transaction-with-wso2-data.html&quot;&gt;blog post&lt;/a&gt;. Where we will insert customer information, in to multiple data bases in the same transaction.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Sample input&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: black; border: 0px solid #b4d0dc;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;customer&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;id&amp;gt;&lt;/span&gt;2&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/id&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;name&amp;gt;&lt;/span&gt;Smith&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/customer&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Step 1 - Creating the proxy service.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To create the proxy, you need to start the ESB server under services -&amp;gt; add -&amp;gt; proxy service -&amp;gt; Custom Proxy service. Give an appropriate name. For this sample I am calling it MyTransactionProxy.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjhU-IZEDal9sb05r3IlWmKJwt_kPve2QvcDpnbQ-5MMV7O_iLXfSyCUmjNexvPP9EvGL_h3fk-DX39_NpDvly66e6FOkrvP3N_c7JJcc4_lMgaeaReCL9S4k0rSUSQwhiNDcIn3ogNA/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjhU-IZEDal9sb05r3IlWmKJwt_kPve2QvcDpnbQ-5MMV7O_iLXfSyCUmjNexvPP9EvGL_h3fk-DX39_NpDvly66e6FOkrvP3N_c7JJcc4_lMgaeaReCL9S4k0rSUSQwhiNDcIn3ogNA/s400/1.png&quot; width=&quot;395&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
In the in sequence I will be calling several mediators.&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Log Mediator - To log the incoming request&lt;/li&gt;
&lt;li&gt;Property Mediators - To store the input parameters&lt;/li&gt;
&lt;li&gt;Payload Factory Mediator - to arrange the payload for each operation&lt;/li&gt;
&lt;li&gt;Call out mediator &amp;nbsp;- to call each operation of the given service&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Sample In sequence&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: black; border: 0px solid #b4d0dc;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;inSequence&lt;/span&gt; xmlns=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.apache.org/ns/synapse&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;log&lt;/span&gt; level=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;full&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;M1&quot;&lt;/span&gt; value=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;***************HITTING Transaction PROXY****************&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/log&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;OUT_ONLY&quot;&lt;/span&gt; value=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;id&quot;&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;//id/text()&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;name&quot;&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;//name/text()&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;payloadFactory&lt;/span&gt; media-type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;soapenv:Envelope&lt;/span&gt; xmlns:soapenv=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt; xmlns:dat=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;soapenv:Header&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;soapenv:Body&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/payloadFactory&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;callout&lt;/span&gt; serviceURL=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;https://localhost:9445/services/DTPDS/&quot;&lt;/span&gt; action=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;urn:begin_boxcar&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;source&lt;/span&gt; type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;envelope&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;target&lt;/span&gt; xmlns:s12=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://www.w3.org/2003/05/soap-envelope&quot;&lt;/span&gt; xmlns:s11=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt; xpath=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/callout&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;payloadFactory&lt;/span&gt; media-type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;p:my_insert&lt;/span&gt; xmlns:p=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;xs:id&lt;/span&gt; xmlns:xs=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;$1&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/xs:id&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;xs:name&lt;/span&gt; xmlns:xs=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;$2&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/xs:name&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/p:my_insert&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;args&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;arg&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;get-property(&#39;id&#39;)&quot;&lt;/span&gt; evaluator=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;arg&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;get-property(&#39;name&#39;)&quot;&lt;/span&gt; evaluator=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/args&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/payloadFactory&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;callout&lt;/span&gt; serviceURL=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;https://localhost:9445/services/DTPDS/&quot;&lt;/span&gt; action=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;urn:my_insert&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;source&lt;/span&gt; xmlns:s12=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://www.w3.org/2003/05/soap-envelope&quot;&lt;/span&gt; xmlns:s11=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt; xpath=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;target&lt;/span&gt; xmlns:s12=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://www.w3.org/2003/05/soap-envelope&quot;&lt;/span&gt; xmlns:s11=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt; xpath=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/callout&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;payloadFactory&lt;/span&gt; media-type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;p:pos_insert&lt;/span&gt; xmlns:p=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;xs:id&lt;/span&gt; xmlns:xs=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;$1&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/xs:id&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;xs:name&lt;/span&gt; xmlns:xs=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;$2&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/xs:name&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/p:pos_insert&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;args&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;arg&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;get-property(&#39;id&#39;)&quot;&lt;/span&gt; evaluator=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;arg&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;get-property(&#39;name&#39;)&quot;&lt;/span&gt; evaluator=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/args&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/payloadFactory&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;callout&lt;/span&gt; serviceURL=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;https://localhost:9445/services/DTPDS/&quot;&lt;/span&gt; action=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;urn:pos_insert&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;source&lt;/span&gt; xmlns:s12=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://www.w3.org/2003/05/soap-envelope&quot;&lt;/span&gt; xmlns:s11=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt; xpath=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;target&lt;/span&gt; xmlns:s12=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://www.w3.org/2003/05/soap-envelope&quot;&lt;/span&gt; xmlns:s11=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt; xpath=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/callout&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;payloadFactory&lt;/span&gt; media-type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;soapenv:Envelope&lt;/span&gt; xmlns:soapenv=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt; xmlns:dat=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;soapenv:Header&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;soapenv:Body&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/payloadFactory&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;callout&lt;/span&gt; serviceURL=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;https://localhost:9445/services/DTPDS/&quot;&lt;/span&gt; action=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;urn:end_boxcar&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;source&lt;/span&gt; type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;envelope&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;target&lt;/span&gt; xmlns:s12=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://www.w3.org/2003/05/soap-envelope&quot;&lt;/span&gt; xmlns:s11=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt; xpath=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/callout&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/inSequence&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjieOI-dZZp2J592VoyvxhD166nFv3vMPlOkdcaYG2K1Wc0yKurXs7hTtSap9FTKRJ4jIoQ2JnS3HU6_BLBvwcSuSA7AEMZlHg474me6nY70eVwCG1rMKpU4v0xbV4LJpo-fbekxzrXr1I/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;272&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjieOI-dZZp2J592VoyvxhD166nFv3vMPlOkdcaYG2K1Wc0yKurXs7hTtSap9FTKRJ4jIoQ2JnS3HU6_BLBvwcSuSA7AEMZlHg474me6nY70eVwCG1rMKpU4v0xbV4LJpo-fbekxzrXr1I/s400/2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Here I have created payload factory mediator and a call out mediator to call each operation. In the call our service URL I have given the end point for my service. For example I have an operation called my_insert. So I created a payload factory mediator and defined the payload format inline as shown below (parameters for the operation is given as $1,$2 which are later replaced by the id, and the name properties.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: black; border: 0px solid #b4d0dc;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;payloadFactory&lt;/span&gt; xmlns=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.apache.org/ns/synapse&quot;&lt;/span&gt; media-type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;p:my_insert&lt;/span&gt; xmlns:p=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;xs:id&lt;/span&gt; xmlns:xs=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;$1&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/xs:id&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;xs:name&lt;/span&gt; xmlns:xs=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;$2&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/xs:name&amp;gt;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/p:my_insert&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;args&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;arg&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;get-property(&#39;id&#39;)&quot;&lt;/span&gt; evaluator=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;arg&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;get-property(&#39;name&#39;)&quot;&lt;/span&gt; evaluator=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/args&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/payloadFactory&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Likewise, I have called each operation with the same format.&lt;br /&gt;
&lt;br /&gt;
In the out sequence I have used an empty send mediator which will send back the response to the same service.&lt;br /&gt;
&lt;br /&gt;
Complete proxy xml is attached below.&lt;br /&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #ecf8ff; border: 1px solid #b4d0dc;&quot;&gt;
&lt;/pre&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;proxy&lt;/span&gt; xmlns=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.apache.org/ns/synapse&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;TransactionProxy&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;transports=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;statistics=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;disable&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;trace=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;disable&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;startOnLoad=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;target&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;inSequence&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;log&lt;/span&gt; level=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;full&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;M1&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;*************HITTING Transaction PROXY*************&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/log&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;OUT_ONLY&quot;&lt;/span&gt; value=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;id&quot;&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;//id/text()&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;name&quot;&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;//name/text()&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;payloadFactory&lt;/span&gt; media-type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;soapenv:Envelope&lt;/span&gt; xmlns:soapenv=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns:dat=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;soapenv:Header&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;soapenv:Body&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/payloadFactory&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;callout&lt;/span&gt; serviceURL=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;https://localhost:9445/services/DTPDS/&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; action=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;urn:begin_boxcar&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;source&lt;/span&gt; type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;envelope&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;target&lt;/span&gt; xmlns:s12=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://www.w3.org/2003/05/soap-envelope&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns:s11=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xpath=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/callout&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;payloadFactory&lt;/span&gt; media-type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;p:my_insert&lt;/span&gt; xmlns:p=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;xs:id&lt;/span&gt; xmlns:xs=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;$1&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/xs:id&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;xs:name&lt;/span&gt; xmlns:xs=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;$2&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/xs:name&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/p:my_insert&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;args&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;arg&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;get-property(&#39;id&#39;)&quot;&lt;/span&gt; evaluator=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;arg&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;get-property(&#39;name&#39;)&quot;&lt;/span&gt; evaluator=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/args&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/payloadFactory&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;callout&lt;/span&gt; serviceURL=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;https://localhost:9445/services/DTPDS/&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; action=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;urn:my_insert&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;source&lt;/span&gt; xmlns:s12=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://www.w3.org/2003/05/soap-envelope&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns:s11=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xpath=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;target&lt;/span&gt; xmlns:s12=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://www.w3.org/2003/05/soap-envelope&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns:s11=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xpath=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/callout&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;payloadFactory&lt;/span&gt; media-type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;p:pos_insert&lt;/span&gt; xmlns:p=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;xs:id&lt;/span&gt; xmlns:xs=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;$1&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/xs:id&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;xs:name&lt;/span&gt; xmlns:xs=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;$2&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/xs:name&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/p:pos_insert&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;args&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;arg&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;get-property(&#39;id&#39;)&quot;&lt;/span&gt; evaluator=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;arg&lt;/span&gt; expression=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;get-property(&#39;name&#39;)&quot;&lt;/span&gt; evaluator=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/args&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/payloadFactory&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;callout&lt;/span&gt; serviceURL=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;https://localhost:9445/services/DTPDS/&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; action=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;urn:pos_insert&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;source&lt;/span&gt; xmlns:s12=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://www.w3.org/2003/05/soap-envelope&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns:s11=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xpath=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;target&lt;/span&gt; xmlns:s12=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://www.w3.org/2003/05/soap-envelope&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns:s11=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xpath=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/callout&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;payloadFactory&lt;/span&gt; media-type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;soapenv:Envelope&lt;/span&gt; xmlns:soapenv=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns:dat=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.wso2.org/dataservice&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;soapenv:Header&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;soapenv:Body&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/format&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/payloadFactory&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;callout&lt;/span&gt; serviceURL=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;https://localhost:9445/services/DTPDS/&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; action=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;urn:end_boxcar&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;source&lt;/span&gt; type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;envelope&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;target&lt;/span&gt; xmlns:s12=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://www.w3.org/2003/05/soap-envelope&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns:s11=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xpath=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/callout&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/inSequence&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;outSequence&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;send&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/outSequence&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/target&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;description&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/proxy&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Calling the proxy service&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Here I am calling the proxy service using the curl tool.&lt;br /&gt;
&lt;br /&gt;
curl -v --request POST -d &#39;&lt;customer&gt;&lt;id&gt;2&lt;/id&gt;&lt;name&gt;Smith&lt;/name&gt;&lt;/customer&gt;&#39; -H Content-Type:&quot;text/xml&quot; http://amani-ThinkPad-T520:8280/services/MyTransactionProxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/1383302661750858145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/10/how-to-call-multiple-soap-operations.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/1383302661750858145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/1383302661750858145'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/10/how-to-call-multiple-soap-operations.html' title='How to call multiple soap operations using call out mediator - WSO2 ESB'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjhU-IZEDal9sb05r3IlWmKJwt_kPve2QvcDpnbQ-5MMV7O_iLXfSyCUmjNexvPP9EvGL_h3fk-DX39_NpDvly66e6FOkrvP3N_c7JJcc4_lMgaeaReCL9S4k0rSUSQwhiNDcIn3ogNA/s72-c/1.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-7199057767718541647</id><published>2013-10-09T04:59:00.002-07:00</published><updated>2013-10-12T07:40:53.080-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Distributed Transaction"/><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="postgres"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 Data Services"/><category scheme="http://www.blogger.com/atom/ns#" term="XA datasources"/><title type='text'>Distributed Transaction with WSO2 Data Services</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;What is distributed transaction ?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Distributed database transaction means executing multiple related actions/operations in a coordinated way. This is also known as &amp;nbsp;global transaction. Distributed transaction can occur in the same database level however, in most cases distributed transaction happens in different databases (typically different RDBMS types) and often in different locations. Distributed transactions are often described as ACID -- atomic, consistent, isolated, and durable. &amp;nbsp;Meaning changes made to the database during the transactions are tentative, if any of the operation fails then none of the other changes will get affected. In a typical distributed transaction, you have to make sure if one operation fails the whatever previously executed operation should roll back, undoing all the changes as if the transactions never took place. Even if your application crashes in the middle of the transaction, when it restarts, transaction recovery should roll back the open transaction.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVZDn9W59ULJFwGjLT3wtpPnzoLwzPV8CQHusODqaaQt0PdUHqP2KXzVEC7VqhW_cWbZoiuYQwmf0H1vAUJCBZeeycI15CvZC3pH1Kt8wPS6O09vvLloCxKz3Fw3BlX3aVKXM4N_6L2b4/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;278&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVZDn9W59ULJFwGjLT3wtpPnzoLwzPV8CQHusODqaaQt0PdUHqP2KXzVEC7VqhW_cWbZoiuYQwmf0H1vAUJCBZeeycI15CvZC3pH1Kt8wPS6O09vvLloCxKz3Fw3BlX3aVKXM4N_6L2b4/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A typical Distributed transaction example would be moving data from one data base to another database. For example lets say you want to delete customer from one location and add that same customer to the another location.You would not want either transaction committed without assurance that both will complete successfully. Therefore, for these kind of instances its important to have distributed transaction feature.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The above transactions involve the following steps:

&lt;br /&gt;
&lt;ol class=&quot;ordered&quot;&gt;
&lt;li&gt;&lt;span style=&quot;color: #e69138;&quot;&gt;Begin a transaction.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #e69138;&quot;&gt;Add Customer&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #e69138;&quot;&gt;Delete Customer&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #e69138;&quot;&gt;End transaction&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Distributed Transaction with WSO2 Data Services Server&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
WSO2 data services server provide distributed transaction using Java Transaction API (JTA) which enables global level transaction across multiple X/Open XA resources in java environment.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
When you use XA functionality, the transaction manager uses &lt;em class=&quot;Italic&quot;&gt;XA resource&lt;/em&gt;
 instances to prepare and coordinate each transaction branch and then to
 commit or roll back all each of individual transaction appropriately.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
For each RDBMS type there is a specific XA-Datasource class and set of configuration properties. Therefore you need to know the XA-Datasource class and their configurations before creating the data service.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Lets see how we can create a data service for the above transaction.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
For this example I will have two databases in postgres and mysql. For this demo I will be using a very simple customer table which has id and name and we will see how we can inset values to these two tables in each database in a coordinated manner&lt;br /&gt;
&lt;br /&gt;
=========================== SQL script ==============================&lt;br /&gt;
&lt;pre class=&quot;abap&quot; style=&quot;background-color: black border: 1px solid #b4d0dc;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; customer (
cust_id int &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;NOT&lt;/span&gt; NULL,
name varchar(255) &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;NOT&lt;/span&gt; NULL,
PRIMARY &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;KEY&lt;/span&gt; (cust_id)
)&lt;/pre&gt;
&lt;br /&gt;
========================data service configuration file======================&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;abap&quot; style=&quot;background-color: black; border: 1px solid #b4d0dc;&quot;&gt;&amp;lt;data disableStreaming=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;true&quot; enableBoxcarring=&quot;true&quot; enableDTP=&quot;true&quot; name=&quot;DTPDS&quot;&amp;gt;
&lt;/span&gt;   &amp;lt;config id=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;pos_ds&quot;&amp;gt;
&lt;/span&gt;      &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;org.wso2.ws.dataservice.xa_datasource_class&quot;&amp;gt;org.postgresql.xa.PGXADataSource&amp;lt;/property&amp;gt;
&lt;/span&gt;      &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;org.wso2.ws.dataservice.xa_datasource_properties&quot;&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;ServerName&quot;&amp;gt;localhost&amp;lt;/property&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;PortNumber&quot;&amp;gt;5432&amp;lt;/property&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;DatabaseName&quot;&amp;gt;MyDB&amp;lt;/property&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;User&quot;&amp;gt;postgres&amp;lt;/property&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;Password&quot;&amp;gt;root&amp;lt;/property&amp;gt;
&lt;/span&gt;      &amp;lt;/property&amp;gt;
   &amp;lt;/config&amp;gt;
   &amp;lt;config id=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;my_ds&quot;&amp;gt;
&lt;/span&gt;     &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;org.wso2.ws.dataservice.xa_datasource_class&quot;&amp;gt;com.mysql.jdbc.jdbc2.optional.MysqlXADataSource&amp;lt;/property&amp;gt;
&lt;/span&gt;      &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;org.wso2.ws.dataservice.xa_datasource_properties&quot;&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;URL&quot;&amp;gt;jdbc:mysql://localhost:3306/MyDB&amp;lt;/property&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;User&quot;&amp;gt;root&amp;lt;/property&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;Password&quot;&amp;gt;root&amp;lt;/property&amp;gt;
&lt;/span&gt;      &amp;lt;/property&amp;gt;
   &amp;lt;/config&amp;gt;
   &amp;lt;query id=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;pos_q&quot; useConfig=&quot;pos_ds&quot;&amp;gt;
&lt;/span&gt;      &amp;lt;sql&amp;gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;INSERT&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;INTO&lt;/span&gt; customer VALUES(?,?)&amp;lt;/sql&amp;gt;
      &amp;lt;param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;id&quot; sqlType=&quot;INTEGER&quot;/&amp;gt;
&lt;/span&gt;      &amp;lt;param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;name&quot; sqlType=&quot;STRING&quot;/&amp;gt;
&lt;/span&gt;   &amp;lt;/query&amp;gt;
   &amp;lt;query id=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;my_q&quot; useConfig=&quot;my_ds&quot;&amp;gt;
&lt;/span&gt;      &amp;lt;sql&amp;gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;INSERT&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;INTO&lt;/span&gt; customer VALUES(?,?)&amp;lt;/sql&amp;gt;
      &amp;lt;param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;id&quot; sqlType=&quot;INTEGER&quot;/&amp;gt;
&lt;/span&gt;      &amp;lt;param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;name&quot; sqlType=&quot;STRING&quot;/&amp;gt;
&lt;/span&gt;   &amp;lt;/query&amp;gt;
   &amp;lt;operation disableStreaming=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;true&quot; name=&quot;pos_insert&quot; returnRequestStatus=&quot;true&quot;&amp;gt;
&lt;/span&gt;      &amp;lt;call-query href=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;pos_q&quot;&amp;gt;
&lt;/span&gt;         &amp;lt;with-param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;id&quot; query-param=&quot;id&quot;/&amp;gt;
&lt;/span&gt;         &amp;lt;with-param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;name&quot; query-param=&quot;name&quot;/&amp;gt;
&lt;/span&gt;      &amp;lt;/call-query&amp;gt;
   &amp;lt;/operation&amp;gt;
   &amp;lt;operation disableStreaming=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;true&quot; name=&quot;my_insert&quot; returnRequestStatus=&quot;true&quot;&amp;gt;
&lt;/span&gt;      &amp;lt;call-query href=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;my_q&quot;&amp;gt;
&lt;/span&gt;         &amp;lt;with-param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;id&quot; query-param=&quot;id&quot;/&amp;gt;
&lt;/span&gt;         &amp;lt;with-param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;name&quot; query-param=&quot;name&quot;/&amp;gt;
&lt;/span&gt;      &amp;lt;/call-query&amp;gt;
   &amp;lt;/operation&amp;gt;
&amp;lt;/data&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
You need to add the configuration file to WSO2DS_HOME/repository/deployment/server/dataservices in order to deploy this file&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;Step by step explanation&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Data source configuration&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
I have created two data source configuration in the data service descriptor file&lt;br /&gt;
&lt;pre class=&quot;abap&quot; style=&quot;background-color: black; border: 1px solid #b4d0dc;&quot;&gt; &amp;lt;config id=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;pos_ds&quot;&amp;gt;
&lt;/span&gt;      &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;org.wso2.ws.dataservice.xa_datasource_class&quot;&amp;gt;org.postgresql.xa.PGXADataSource&amp;lt;/property&amp;gt;
&lt;/span&gt;      &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;org.wso2.ws.dataservice.xa_datasource_properties&quot;&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;ServerName&quot;&amp;gt;localhost&amp;lt;/property&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;PortNumber&quot;&amp;gt;5432&amp;lt;/property&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;DatabaseName&quot;&amp;gt;MyDB&amp;lt;/property&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;User&quot;&amp;gt;postgres&amp;lt;/property&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;Password&quot;&amp;gt;root&amp;lt;/property&amp;gt;
&lt;/span&gt;      &amp;lt;/property&amp;gt;
   &amp;lt;/config&amp;gt;
   &amp;lt;config id=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;my_ds&quot;&amp;gt;
&lt;/span&gt;     &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;org.wso2.ws.dataservice.xa_datasource_class&quot;&amp;gt;com.mysql.jdbc.jdbc2.optional.MysqlXADataSource&amp;lt;/property&amp;gt;
&lt;/span&gt;      &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;org.wso2.ws.dataservice.xa_datasource_properties&quot;&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;URL&quot;&amp;gt;jdbc:mysql://localhost:3306/MyDB&amp;lt;/property&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;User&quot;&amp;gt;root&amp;lt;/property&amp;gt;
&lt;/span&gt;         &amp;lt;property name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;Password&quot;&amp;gt;root&amp;lt;/property&amp;gt;
&lt;/span&gt;      &amp;lt;/property&amp;gt;
   &amp;lt;/config&amp;gt;&lt;/pre&gt;
There we have specified the XA datasource classes &quot;&lt;span style=&quot;background-color: black; color: #2a00ff; text-align: -webkit-left;&quot;&gt;org.wso2.ws.dataservice.xa_datasource_class&lt;/span&gt;&quot; in a property along with it&#39;s parameters. For each XA datasource class configuration properties may differ.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Query Configuration&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;abap&quot; style=&quot;background-color: black; border: 1px solid #b4d0dc;&quot;&gt;  &amp;lt;query id=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;pos_q&quot; useConfig=&quot;pos_ds&quot;&amp;gt;
&lt;/span&gt;      &amp;lt;sql&amp;gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;INSERT&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;INTO&lt;/span&gt; customer VALUES(?,?)&amp;lt;/sql&amp;gt;
      &amp;lt;param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;id&quot; sqlType=&quot;INTEGER&quot;/&amp;gt;
&lt;/span&gt;      &amp;lt;param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;name&quot; sqlType=&quot;STRING&quot;/&amp;gt;
&lt;/span&gt;   &amp;lt;/query&amp;gt;
   &amp;lt;query id=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;my_q&quot; useConfig=&quot;my_ds&quot;&amp;gt;
&lt;/span&gt;      &amp;lt;sql&amp;gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;INSERT&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;INTO&lt;/span&gt; customer VALUES(?,?)&amp;lt;/sql&amp;gt;
      &amp;lt;param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;id&quot; sqlType=&quot;INTEGER&quot;/&amp;gt;
&lt;/span&gt;      &amp;lt;param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;name&quot; sqlType=&quot;STRING&quot;/&amp;gt;
&lt;/span&gt;   &amp;lt;/query&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
I have created two queries pointing each data source, and also two distinct opperations mapping to each query.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;abap&quot; style=&quot;background-color: black; border: 1px solid #b4d0dc;&quot;&gt;&amp;lt;operation disableStreaming=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;true&quot; name=&quot;pos_insert&quot; returnRequestStatus=&quot;true&quot;&amp;gt;
&lt;/span&gt;      &amp;lt;call-query href=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;pos_q&quot;&amp;gt;
&lt;/span&gt;         &amp;lt;with-param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;id&quot; query-param=&quot;id&quot;/&amp;gt;
&lt;/span&gt;         &amp;lt;with-param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;name&quot; query-param=&quot;name&quot;/&amp;gt;
&lt;/span&gt;      &amp;lt;/call-query&amp;gt;
   &amp;lt;/operation&amp;gt;
   &amp;lt;operation disableStreaming=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;true&quot; name=&quot;my_insert&quot; returnRequestStatus=&quot;true&quot;&amp;gt;
&lt;/span&gt;      &amp;lt;call-query href=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;my_q&quot;&amp;gt;
&lt;/span&gt;         &amp;lt;with-param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;id&quot; query-param=&quot;id&quot;/&amp;gt;
&lt;/span&gt;         &amp;lt;with-param name=&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;name&quot; query-param=&quot;name&quot;/&amp;gt;
&lt;/span&gt;      &amp;lt;/call-query&amp;gt;
   &amp;lt;/operation&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
After you deploy this data service. You will see the deployed data service under the data service list. You can invoke this service using the try-it tool (or using your own class)&lt;br /&gt;
&lt;br /&gt;
Invoke the operations in this order&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;begin_boxcar&amp;nbsp;&lt;/li&gt;
&lt;li&gt;my_insert&lt;/li&gt;
&lt;li&gt;pos_insert&lt;/li&gt;
&lt;li&gt;end_boxcar&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJlS2Q9zm8arcYJDOE93niId1A7joLhfoTwaTdQ9R5HNQ1C3Wffxl3ZFZrGaxDJ53xN0lw7HWSXfFWgA0PoqSeWd-VcR9N35ZtG1PzhTu5aAhLgTZCL-jx9zkTlF23AJMulFWnKNDLbgg/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJlS2Q9zm8arcYJDOE93niId1A7joLhfoTwaTdQ9R5HNQ1C3Wffxl3ZFZrGaxDJ53xN0lw7HWSXfFWgA0PoqSeWd-VcR9N35ZtG1PzhTu5aAhLgTZCL-jx9zkTlF23AJMulFWnKNDLbgg/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Please make sure you have set the&amp;nbsp; &quot;max_prepared_transactions&quot; to a non zero value in &quot;/etc/postgres/postgres.conf in oorder this sample to work&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
In my &lt;a href=&quot;http://sparkletechthoughts.blogspot.com/2013/10/how-to-call-multiple-soap-operations.html&quot;&gt;next post&lt;/a&gt;, I will be explaining how we can call all these four operations using a single proxy service with the use of of WSO2 ESB.&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/7199057767718541647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/10/distributed-transaction-with-wso2-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/7199057767718541647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/7199057767718541647'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/10/distributed-transaction-with-wso2-data.html' title='Distributed Transaction with WSO2 Data Services'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVZDn9W59ULJFwGjLT3wtpPnzoLwzPV8CQHusODqaaQt0PdUHqP2KXzVEC7VqhW_cWbZoiuYQwmf0H1vAUJCBZeeycI15CvZC3pH1Kt8wPS6O09vvLloCxKz3Fw3BlX3aVKXM4N_6L2b4/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-1799274185707002871</id><published>2013-07-25T18:38:00.001-07:00</published><updated>2013-07-25T19:25:45.085-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Logging"/><category scheme="http://www.blogger.com/atom/ns#" term="Tomcat"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2"/><title type='text'>Configure HTTP Access Logging in WSO2 products </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0in; text-align: justify;&quot;&gt;
If you want to analyze your
application&#39;s usage activities such as who is accessing your page,
number of hits, errors ect, you can use the HTTP access log files
monitor and analyze the above measures. WSO2 products uses embedded
tomcat as it&#39;s primary runtime therefore, you can use apache tomcat
access logger to monitor your activity and performance of the server
as well as any errors that may be occurring. This post explain how
you can configure HTTP access logging in WSO2 products in order to
get efficient monitoring.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPuGpNYIaBy9VpqkZG7vO5kptOy2n2rK8ee_4Ks9yxcGC8BbqR2YTRqDd71709UeyuCggs8jN73a3r3F_KVBEOnEnATw2Uo1DMCG3dIYdjI74djVm7YB7US55JoM_2MgBhznk4rjf9TWI/s1600/Cat.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;266&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPuGpNYIaBy9VpqkZG7vO5kptOy2n2rK8ee_4Ks9yxcGC8BbqR2YTRqDd71709UeyuCggs8jN73a3r3F_KVBEOnEnATw2Uo1DMCG3dIYdjI74djVm7YB7US55JoM_2MgBhznk4rjf9TWI/s400/Cat.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; text-align: justify;&quot;&gt;
In WSO2 products you can customize the
http access log configuration by editing the catalina-server.xml
which is located {CARBON_HOME}/repository/conf/tomcat directory,
which is the server descripter file for the embedded tomcat
integration. In the catalina-server.xml, under valves you have the&amp;nbsp;HTTP&amp;nbsp;access log configuration as shown below&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: black; border: 0px solid #b4d0dc;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;Valve&lt;/span&gt; className=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;org.apache.catalina.valves.AccessLogValve&quot;&lt;/span&gt; directory=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;${carbon.home}/repository/logs&quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;prefix=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http_access_&quot;&lt;/span&gt; suffix=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;.log&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pattern=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;combined&quot;&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
The server access log records all
requests processed by the server. You can modify the what to log and
what not to log by customizing the pattern attribute.
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
In the pattern attribute we can define
formatting layouts. A formatting layout identifying the various
information fields from the request and response to be logged, or the
word &quot;common&quot; or &quot;combined&quot; to select a standard
format.
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
Values for the pattern attribute are
made up of literal text strings, combined with pattern identifiers
prefixed by the &quot;%&quot; character to cause replacement by the
corresponding variable value from the current request and response.
The following pattern codes are supported:&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%a - Remote IP address&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%A - Local IP address&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%b - Bytes sent, excluding HTTP headers, or &#39;-&#39; if no bytes were sent&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%B - Bytes sent, excluding HTTP headers&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%h - Remote host name&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%H - Request protocol&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%l - Remote logical username from identd (always returns &#39;-&#39;)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%m - Request method&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%p - Local port&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%q - Query string (prepended with a &#39;?&#39; if it exists, otherwise an empty string&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%r - First line of the request&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%s - HTTP status code of the response&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%S - User session ID&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%t - Date and time, in Common Log Format format&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%u - Remote user that was authenticated&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%U - Requested URL path&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%v - Local server name&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%D - Time taken to process the request, in millis&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%T - Time taken to process the request, in seconds&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;%I - current request thread name (can compare later with stacktraces)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
In addition, the caller can specify one
of the following aliases for commonly utilized patterns:
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;    common - %h %l %u %t &quot;%r&quot;
%s %b
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;    combined - %h %l %u %t &quot;%r&quot;
%s %b &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;b&gt;Please note that the optimized access
does only support common and combined as the value for this
attribute.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
If you want to change the format you
can modify the as shown below&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: black; border: 0px solid black;&quot;&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;Valve&lt;/span&gt; className=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;org.apache.catalina.valves.AccessLogValve&quot;&lt;/span&gt; directory=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;${carbon.home}/repository/logs&quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;prefix=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http_access_&quot;&lt;/span&gt; suffix=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;.log&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pattern=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;%h %l %u %t &#39;%r&#39; %s %b&quot;&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
You can further change the log file
location by changing the directory, prefix is the name of the log
file. By default logs are rotated daily and the date is appended to
the log file name. However, you can disable the log rotation by
adding the following attribute &lt;span style=&quot;color: #e69138;&quot;&gt;rotatable=&quot;false&quot;&lt;/span&gt;. If you
want to not have the current date appended in the log file name
however, need the date to the rotated log file you can add
&lt;span style=&quot;color: #f1c232;&quot;&gt;renameOnRotate=&quot;true&quot;&lt;/span&gt; attribute the the valve
configuration. Please refer &lt;a href=&quot;http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Access_Log_Valve/Attributes&quot;&gt;Access Log Valve Attributes&lt;/a&gt; for the full
list of supported attributes.&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/1799274185707002871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/07/configure-access-logging-in-wso2.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/1799274185707002871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/1799274185707002871'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/07/configure-access-logging-in-wso2.html' title='Configure HTTP Access Logging in WSO2 products '/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPuGpNYIaBy9VpqkZG7vO5kptOy2n2rK8ee_4Ks9yxcGC8BbqR2YTRqDd71709UeyuCggs8jN73a3r3F_KVBEOnEnATw2Uo1DMCG3dIYdjI74djVm7YB7US55JoM_2MgBhznk4rjf9TWI/s72-c/Cat.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-1690960793495103071</id><published>2013-05-08T21:07:00.002-07:00</published><updated>2013-05-08T21:07:53.517-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Logging"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 ESB"/><title type='text'>How to enable tenant aware service logging using WSO2 ESB</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Unlike in other WSO2 products (WSO2 Appserver, WSO2 Data Services, &amp;nbsp;ect) we will not be able to see the application/service level logs &amp;nbsp;in ESB by default in ESB. Mainly because in the current carbon logging framework is &amp;nbsp;tenantaware and synapse is not multi tenanted and it runs on its own worker thread pool and does not know aboout the carbon context. Since it uses an independent thread pool from the carbon context logging does not work as expected with NHTTP. Therefore, to overcome this we wrote a handler call TenantDomainSetter which will set the tenant infomation/application infomation in the carbon context of each request.&lt;br /&gt;
&lt;br /&gt;
To enable this you need to go to CARBON_HOME/repository/conf/axis2/axis2.xml and add the TenantDomainSetter in the prefetch of the request path (PreDispatch).&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;handler name=&quot;TenantDomainSetter&quot; class=&quot;org.wso2.carbon.utils.logging.handler.TenantDomainSetter&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Once you do that restart WSO2 ESB then you will be able to see service specific logs in LogViewer (monitor -&amp;gt; View Application Logs) which will show the logs of ESB proxy service logs. However application log viewer &lt;b&gt;DOES NOT&lt;/b&gt; filter out Sequances, APIs, which are components inside a proxy service ... it will &lt;b&gt;ONLY&lt;/b&gt; list down the proxy services.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Application Logs&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3aYgGTb0uzto1Lo6rTZ2gp4tMQK8YBSW__oXIwwMwpGJj1viR3QVY0upCXTl-EocT6lNvq3pr_NgO8bvt0g69YWElLo8qHvCP_c3Ly5kVdMGhViemYURPsVRHdsianN7P5dy393EWNuA/s1600/Selection_001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;204&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3aYgGTb0uzto1Lo6rTZ2gp4tMQK8YBSW__oXIwwMwpGJj1viR3QVY0upCXTl-EocT6lNvq3pr_NgO8bvt0g69YWElLo8qHvCP_c3Ly5kVdMGhViemYURPsVRHdsianN7P5dy393EWNuA/s640/Selection_001.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;System Logs&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDs1rDquSqXUbELRwAKPeG0PKnZsQT8i9jUcqFEKuDBCddzdbia9ZCGu-ntkV1b1hS4vtRzl3umFrG4eCiKqnT44Bw0AL7HYC600-kh2crTifvblWYFo6K6R6xAc_i66-CzrktQSMkEeQ/s1600/Selection_002.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDs1rDquSqXUbELRwAKPeG0PKnZsQT8i9jUcqFEKuDBCddzdbia9ZCGu-ntkV1b1hS4vtRzl3umFrG4eCiKqnT44Bw0AL7HYC600-kh2crTifvblWYFo6K6R6xAc_i66-CzrktQSMkEeQ/s640/Selection_002.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Please note since we are setting the tenant domain for every request there will be an aditional overhead in ESB.. if you want to minimize the overhead its recomended to switch of TenantDomainSetter and use ESB.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/1690960793495103071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/05/how-to-enable-tenant-aware-service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/1690960793495103071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/1690960793495103071'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/05/how-to-enable-tenant-aware-service.html' title='How to enable tenant aware service logging using WSO2 ESB'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3aYgGTb0uzto1Lo6rTZ2gp4tMQK8YBSW__oXIwwMwpGJj1viR3QVY0upCXTl-EocT6lNvq3pr_NgO8bvt0g69YWElLo8qHvCP_c3Ly5kVdMGhViemYURPsVRHdsianN7P5dy393EWNuA/s72-c/Selection_001.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-8199337612886558781</id><published>2013-04-28T07:07:00.000-07:00</published><updated>2013-04-28T21:15:05.907-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud Computing"/><category scheme="http://www.blogger.com/atom/ns#" term="Devstack"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><title type='text'>Kick start on Openstack with Devstack {Folsom}</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Recently I was told to install openstack controller-compute node set ... and my first impression on it was&amp;nbsp;piece&amp;nbsp;of cake!! because you get couple of scripts and all you need to just run the script.. !! I WAS SOO WRONG!! yes it is just couple of script but you need to know how things work and there are soo many places where it can totally messed up your machine and your set up. Meaning you can easily get messed up!!! If you&amp;nbsp;don&#39;t&amp;nbsp;go in the right path it will take ages .. and you might even have to&amp;nbsp;format&amp;nbsp;your machine several times to get things clean and start all over again which is very time consuming.. So I ended up installing openstack for almost a week spending day and night on my precious&amp;nbsp;development&amp;nbsp;time!!!&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeDAHbc-KIj2ebVbrNT1EWqjLG5gVg-Zoqsg4vmx7m0uBsQW9pV1dO8othLW1BJWJXGNvUZXAaJj7BPK28crs_5bajnp8-f1PHCbi-W6yD6XvLgQ06Wv25nipbiJaKxkR1O1lNQ_PrhEs/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;216&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeDAHbc-KIj2ebVbrNT1EWqjLG5gVg-Zoqsg4vmx7m0uBsQW9pV1dO8othLW1BJWJXGNvUZXAaJj7BPK28crs_5bajnp8-f1PHCbi-W6yD6XvLgQ06Wv25nipbiJaKxkR1O1lNQ_PrhEs/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
So I decided to write a post on focusing on HOW TO INSTALL OPENSTACK? So other people want do the same mistake I did or take ages to get things done. If you know what you are doing then installing devstack only take one hour&#39;s time all you need to do is make your configuration right and run the scrip!!!&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg431T6F2mx8ZaG6O4vFBDrCA8Qvz2iH1ZvdKTzxT7S87JXYUfMxSaxghs7dL29ATxYN8UNamEArHZzxrc6qyqKJQ-HXgfYtlbuADmcmXRPtfgzoyHW5D81IhbiB1DjvApdQCmjfQZqiLk/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;91&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg431T6F2mx8ZaG6O4vFBDrCA8Qvz2iH1ZvdKTzxT7S87JXYUfMxSaxghs7dL29ATxYN8UNamEArHZzxrc6qyqKJQ-HXgfYtlbuADmcmXRPtfgzoyHW5D81IhbiB1DjvApdQCmjfQZqiLk/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
So before we begin I would like to give a small introduction to OpenStack to make things more clearer.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;What is OpenStack ?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In simple terms OpenStack is an opensource cloud operating system ... It is like the fabric of the cloud. OpenStack was initially founded by rackspace and NASA in 2010 and its being growing ever since. The best way to get what OpenStack is by reading their mission which is very simple and direct&lt;br /&gt;
&lt;br /&gt;
&lt;i style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;&quot;&lt;span style=&quot;font-family: &#39;Arial Unicode MS&#39;, Arial, sans-serif; font-size: 14px; line-height: 20px; text-align: -webkit-auto;&quot;&gt;To produce the ubiquitous Open Source Cloud Computing platform that will meet the needs of public and private clouds regardless of size, by being simple to implement and massively scalable.&lt;/span&gt;&quot;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
OpenStack is written in purely written in python, true it use other systems like MYSQL and rabbitMQ but the core is written in python which makes things very efficient and fast. And also initially it had two main component 1) Nova - which is the compute side of it and the other one 2) swift - the data storage side of it.&lt;br /&gt;
&lt;br /&gt;
Current OpenStack stable version {Folsom} have few core components&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Openstack object storage (swift)&lt;/li&gt;
&lt;li&gt;OpenStack image registry and delivery (Glance)&lt;/li&gt;
&lt;li&gt;Openstack compute (nova)&lt;/li&gt;
&lt;li&gt;Horizon (web UI)&lt;/li&gt;
&lt;li&gt;Keystone (authentication)&lt;/li&gt;
&lt;li&gt;Quantum/Melange (Network)&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
In future OpenStack is going to provide other compoents such&amp;nbsp;Cellometer (Billing service),&amp;nbsp;Cinder (block storage) and load balancer services. So&amp;nbsp;that&#39;s&amp;nbsp;enough about OpenStack lets see how we can install it. I will be installing OpenStack using devstack..&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;What is devstack ?&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;br /&gt;
Well devstack is openstack development project (there are quite a few :) ) but I think devstack is the easiest :). &amp;nbsp;Devstack provides a documented&amp;nbsp;shell script (which is written in bash) to build a complete OpenStack development environments. Originally created by Rackspace now maintained by OpenStack community. This supports both ubuntu and fedora (but today we will be focusing how we can install openstack in ubuntu 12.04).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Installing OpenStack &amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
In this installation I will be explaining how we can install OpenStack in Multi-Node&amp;nbsp;environment.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Prerequisites&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Install ubuntu 12.04 and&lt;br /&gt;
&lt;br /&gt;
Install git&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;apt-get install -y git sudo&lt;br /&gt;
&lt;br /&gt;
Network setting on each node&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; You need to have a stack ip and also decide on what your Floating IP range (public IP range ) and Fixed IP range (private IP range) are.&lt;br /&gt;
&lt;br /&gt;
This is my network configurations&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; Static IP (controller ) -&amp;nbsp;10.100.0.30&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; Floating (Public) IP range -&amp;nbsp;10.100.0.128/25&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; Fixed (Private) IP range &amp;nbsp;-&amp;nbsp;192.168.16.0/25&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
Go to&amp;nbsp;&lt;span style=&quot;background-color: white; color: #dd1144; font-family: Menlo, Monaco, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt;/etc/network/interfaces&amp;nbsp;&lt;/span&gt;and configure your network accordingly.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Controller node&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;auto eth0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;iface eth0 inet static&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;address 10.100.0.30&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;netmask 255.255.252.0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;gateway 10.100.1.254&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Compute Node&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;auto eth0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;iface eth0 inet static&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;address 10.100.0.29&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;netmask 255.255.252.0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;gateway 10.100.1.254&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Before we begin we need to create &amp;nbsp;separate&amp;nbsp;user to do things in a cleaner way.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;groupadd stack&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;useradd -g stack -s /bin/bash -d /opt/stack -m stack&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;echo &lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;stack ALL=(ALL) NOPASSWD: ALL&quot; &amp;gt;&amp;gt; /etc/sudoers&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
From here&amp;nbsp;onward&amp;nbsp;we will be doing all the operation from the stack user.&lt;br /&gt;
&lt;br /&gt;
Once you create the user log out and login from the the stack user and download openstack using git. When you are downloading make sure you download the stable version (in my case its folsom) so you will not have any surprises. :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;sudo su stack # login from the user&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;cd # go to user home&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;git clone git://github.com/openstack-dev/devstack.git -b stable/folsom #download devstack stable version&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Once you download devstack other things are pretty straight foward. Go to devstack folder and create&amp;nbsp;&lt;span style=&quot;background-color: white; color: #dd1144; font-family: Menlo, Monaco, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt;localrc&amp;nbsp;&lt;/span&gt;&amp;nbsp;file and add the configuration accordingly in each node.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Configuring and Installing OpenStack in Controller Node&lt;/h3&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;vi localrc&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;HOST_IP=10.100.0.30&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;FLAT_INTERFACE=eth0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;FIXED_RANGE=192.168.16.0/25&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;FIXED_NETWORK_SIZE=126&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;FLOATING_RANGE=10.100.0.128/25&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;MULTI_HOST=1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;LOGFILE=/opt/stack/logs/stack.sh.log&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;ADMIN_PASSWORD=openstack&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;MYSQL_PASSWORD=root&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;RABBIT_PASSWORD=rabbitmq&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;SERVICE_PASSWORD=password&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;SERVICE_TOKEN=poohdedoo&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Once you create the file you can run the setup script using the following command.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;./stack.sh&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
After a&amp;nbsp;successful&amp;nbsp;&amp;nbsp;installation you will get the following output&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;Horizon is now available at http://10.100.0.30/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;Keystone is serving at http://10.100.0.30:5000/v2.0/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;Examples on using novaclient command line is in exercise.sh&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;The default users are: admin and demo&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;The password: openstack&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;This is your host ip: 10.100.0.30&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;stack.sh completed in 3443 seconds.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Configuring and Installing OpenStack in Compute Node&lt;/h3&gt;
&lt;br /&gt;
Just like the controller node you need to have the basic infrastructure in order to install the computer. Only change is there is the content of the localrc file in the compute node.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;vi localrc&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;SERVICE_HOST=10.100.0.30&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;HOST_IP=10.100.0.29&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;FLAT_INTERFACE=eth0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;FIXED_RANGE=192.168.16.0/25&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;FIXED_NETWORK_SIZE=126&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;FLOATING_RANGE=10.100.0.128/25&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;MULTI_HOST=1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;LOGFILE=/opt/stack/logs/stack.sh.log&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;ADMIN_PASSWORD=openstack&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;MYSQL_PASSWORD=root&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;RABBIT_PASSWORD=rabbitmq&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;SERVICE_PASSWORD=password&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;SERVICE_TOKEN=poohdedoo&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;MYSQL_HOST=$SERVICE_HOST&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;RABBIT_HOST=$SERVICE_HOST&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;GLANCE_HOSTPORT=$SERVICE_HOST:9292&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;Q_HOST=$SERVICE_HOST&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;ENABLED_SERVICES=n-cpu,n-net,n-api,c-sch,c-api,c-vol,rabbi&lt;/span&gt;t&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That&#39;s it !!. Just like the controller node you need to run the setup script to execute the installation.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;./stack.sh&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Once you&amp;nbsp;successfully&amp;nbsp;install openstack in both nodes you can login to openstack using the horizon dashboard&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;http://10.100.0.30/ and login&amp;nbsp;according&amp;nbsp;to the user credentials you have provided in your setup configuration.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn8uu9WWc3NHxNp-JKLJJVgWoSSSkCpv5gs7s_3IQ1hoLWmKwuGWRqjVWfRHX7oNjikhX5yUhCrIkujmIen94pqcQZr7AXV6r5mFC8ma3baSODd381CFOH9MyDeNZ0GU27I9EjdXpABoA/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn8uu9WWc3NHxNp-JKLJJVgWoSSSkCpv5gs7s_3IQ1hoLWmKwuGWRqjVWfRHX7oNjikhX5yUhCrIkujmIen94pqcQZr7AXV6r5mFC8ma3baSODd381CFOH9MyDeNZ0GU27I9EjdXpABoA/s320/1.png&quot; width=&quot;288&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
You can run the&amp;nbsp;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;exercise.sh&amp;nbsp;&lt;/span&gt;run provided by devstack in order to test your set up which includes uploading/launching instances and creating user groups/keypairs and user rules.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
If you want to upload images manually using the script you can use the following commands&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;glance image-create --name mysql-cartridge-amd64 &amp;nbsp;--is-public true --container-format ami --disk-format ami &amp;lt; /home/wso2/wso2s2-openstack-1.0.0/cartridges/mysql-cartridge-amd64.img&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
To see what you have uploaded&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;source openrc demo demo&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;glance image-list&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
You can also see these images using the horizon&amp;nbsp;dashboard and further do task like launching the instances, assigning public IPs create key pairs and assign rules to security groups ect. I am not going to details since its a very straight&amp;nbsp;forward&amp;nbsp;dashboard and you can easily do everything by following the&amp;nbsp;dashboard.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCXombUrXISHFH-zAyRFzZRPe_yxyametV7DEXCAX-UJ5SCsfZJm1DO0PazF5sO9EC1MmR4P8GMfoy7yXK8RPjlBz6Pi9UWeHcMeYObWIpiHEtR45xHpHmXrkEsWhpqxrYZu1j2ccefcg/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCXombUrXISHFH-zAyRFzZRPe_yxyametV7DEXCAX-UJ5SCsfZJm1DO0PazF5sO9EC1MmR4P8GMfoy7yXK8RPjlBz6Pi9UWeHcMeYObWIpiHEtR45xHpHmXrkEsWhpqxrYZu1j2ccefcg/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO1eG7NxCSEZI0gGouaBQfIJOQDri0e-BucqcoJHxgyu3AaBo_7_QRZvJlIEcoPbiMhuJGQosdmUVrI0NVrYAX4vmilmdQkg3UBb6C-jnqWORIco4xcMxtG9PZcuKMcX9S7lH4g-q-2rU/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;162&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO1eG7NxCSEZI0gGouaBQfIJOQDri0e-BucqcoJHxgyu3AaBo_7_QRZvJlIEcoPbiMhuJGQosdmUVrI0NVrYAX4vmilmdQkg3UBb6C-jnqWORIco4xcMxtG9PZcuKMcX9S7lH4g-q-2rU/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
But I would like to proudly attach my openstack dashboad :) for&amp;nbsp;references&amp;nbsp;sake :)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
On a final note restarting openstack is pretty tricky however, you can use the devstack script to restart openstack.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;Restarting OpenStack using Devstack&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Run the following in order to own the shell&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;script /dev/null&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
And execute the following script&lt;br /&gt;
&lt;span style=&quot;color: #ffd966;&quot;&gt;./rejoin-stack.sh&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
inside devstack folder in order to restart openStack.&lt;br /&gt;
&lt;br /&gt;
To get out of the screen use&amp;nbsp;ctrl-a , ctrl-d&lt;br /&gt;
&lt;br /&gt;
Thats it folks !!&lt;br /&gt;
Once you set it up its like having a data center in your basement you can test load balancers and you can do all those caching stuff and experiment new stuff its really a cool thing to have. All the things you do which was in a private cloud and you can point it to a public cloud very easily!!!&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0U6rn9vQRpRCbDw4ezcEOmisWKatVEaQjkDv8M_GTEzVUmXkqBlpnVWrWyjGs3jO4Qojma5L-KGNx2QoN7UIYWk-220KPn3nO5D3qZjLeNbfL-N3GaAWFSxdIOBwgXORFBtIpcWCx2_0/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0U6rn9vQRpRCbDw4ezcEOmisWKatVEaQjkDv8M_GTEzVUmXkqBlpnVWrWyjGs3jO4Qojma5L-KGNx2QoN7UIYWk-220KPn3nO5D3qZjLeNbfL-N3GaAWFSxdIOBwgXORFBtIpcWCx2_0/s1600/1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/8199337612886558781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/04/kick-start-on-openstack-with-devstack.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/8199337612886558781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/8199337612886558781'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/04/kick-start-on-openstack-with-devstack.html' title='Kick start on Openstack with Devstack {Folsom}'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeDAHbc-KIj2ebVbrNT1EWqjLG5gVg-Zoqsg4vmx7m0uBsQW9pV1dO8othLW1BJWJXGNvUZXAaJj7BPK28crs_5bajnp8-f1PHCbi-W6yD6XvLgQ06Wv25nipbiJaKxkR1O1lNQ_PrhEs/s72-c/1.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-4620905293822412318</id><published>2013-04-26T23:18:00.000-07:00</published><updated>2013-05-14T00:23:44.343-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Carbon"/><category scheme="http://www.blogger.com/atom/ns#" term="Carbon Conversion Characters"/><category scheme="http://www.blogger.com/atom/ns#" term="Log4J"/><category scheme="http://www.blogger.com/atom/ns#" term="Logging"/><title type='text'>Carbon Logging framework - Conversion Characters for TenantAwarePatternLayout</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Usually when users use a logging framework one of their primary requirement is to customize the log output format. In Log4j framework this is done using the layout components.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There are couple of predefined layouts comming from the log4j api however, if you want more customize layout with extra set of attributes you need to write your own custom layout extending the org.apache.log4j.PatternLayout class.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In WSO2 Products we do not use the default PatternLyout we have written our own layout to make sure our log format is service aware and multi-tenanted. Therefore we have our own set of conversion characters defined in our TenantAwarePatternLayout class.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Below table explains characters used in the TenantAwarePatternLayout and all other characters (which are comming from PatternLayout) which you can use in your custom pattern.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot; bordercolor=&quot;FFCC00&quot; cellpadding=&quot;3&quot; cellspacing=&quot;3&quot; style=&quot;background-color: #ffffcc; text-align: center;&quot;&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Conversion &lt;br /&gt;Character &lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
        &lt;td&gt;&lt;big&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Description &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/big&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td colspan=&quot;2&quot;&gt;&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;span style=&quot;text-align: left;&quot;&gt;Coming&lt;/span&gt;&amp;nbsp;from custom carbon layout&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;D &lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the name of the tenant domain which is currently&amp;nbsp;&lt;span style=&quot;text-align: left;&quot;&gt;logged in to the server (super tenant domain is carbon.super)&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;T&lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the tenant id - to uniquely identify each tenant tenant id can be &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;used in the layout (super tenant id is 0)&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;S&lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the server key - to uniquely identify each carbon server a server key &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;can be used (ie as,esb,dss ) &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;U &lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the user name - current user who is logged into the server &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;A &lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the application name - service name or web application name of the &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;current running applicaiton &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;H &lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the host name &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;I &lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the carbon instance id- uuid which is generated for each carbon instance&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;to uniquely identify each instance &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td colspan=&quot;2&quot;&gt;&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;span style=&quot;text-align: left;&quot;&gt;Coming&lt;/span&gt;&amp;nbsp;from the log4j patternlayout&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;c&lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output category(logger); a.b.c → %c{2} = a.b&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;(this can be also used as fully qualified name)&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;d&lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the date of the logging event. for example, %d{hh:mm:ss,sss} &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;or %d{dd mmm yyyy hh:mm:ss,sss}. &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt; F&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the file name where the logging request was issued.&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;l&lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output location information of the caller which generated the logging event.&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;L&lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the line number from where the logging request was issued.&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;m&lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the application supplied message associated with the logging event.&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;M&lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the method name where the logging request was issued. &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;n &lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the platform dependent line separator character or characters.  &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;p&lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the priority of the logging event.&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;r&lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the number of milliseconds elapsed from the construction of &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;the layout until the creation of the logging event.&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;t&lt;/span&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span style=&quot;color: blue;&quot;&gt;used to output the name of the thread that generated the logging event.&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;Please note %C, %F, %l, %L, %M slow down program run!&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
To create your own ConversionPattern you can go to the log4j.properties file and edit ConversionPattern of the appender of your choice.&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;log4j.appender.CARBON_LOGFILE.layout.ConversionPattern=TID: [%T] [%S] [%d] %P%5p {%c} - %x %m {%c}%n&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/4620905293822412318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/05/carbon-logging-framework-conversion.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/4620905293822412318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/4620905293822412318'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/05/carbon-logging-framework-conversion.html' title='Carbon Logging framework - Conversion Characters for TenantAwarePatternLayout'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-6655520969337967347</id><published>2013-04-26T01:34:00.002-07:00</published><updated>2013-04-26T01:34:56.381-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud Computing"/><category scheme="http://www.blogger.com/atom/ns#" term="RSS"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 Storage Server"/><title type='text'>Relational Storage Solution using WSO2 Storage as a Service</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp;Lets say you want to create a relational database on the cloud and you want to expose these data to other services?&lt;br /&gt;
Its very easy simple and very straight&amp;nbsp;forward. All you need to have is a &lt;a href=&quot;http://stratoslive.wso2.com/carbon&quot;&gt;stratoslive&lt;/a&gt; account and then login to WSO2 Storage Server.&lt;br /&gt;
&lt;br /&gt;
WSO2 Stroage Server provides almost all the data&amp;nbsp;administrator&amp;nbsp;level functionality when it comes to creating and manipulating data storage. Basically it provides features such as creating and manipulating data storage for relational data bases, Cassandra data storage and hadoop/hdfs file system.&lt;br /&gt;
&lt;br /&gt;
Wondering How to create databases in the cloud ??&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcwM5LoB5cLhr2iqQGODXxL53HiKKc1Th5OwG4T3qvHsF05wQ-MDMHm__qFarq7zOrRWdWh_RRmhItGQFG9ogCVkN-cCIlif6-QyM2zM7LQvlB-VOWZAlLZG2iy0Ot5zeImuFji7NB3AQ/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;242&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcwM5LoB5cLhr2iqQGODXxL53HiKKc1Th5OwG4T3qvHsF05wQ-MDMHm__qFarq7zOrRWdWh_RRmhItGQFG9ogCVkN-cCIlif6-QyM2zM7LQvlB-VOWZAlLZG2iy0Ot5zeImuFji7NB3AQ/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-size: x-large;&quot;&gt;It only takes 4 clicks ... to Create and secure your database on the Cloud&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
In this article I am going to&amp;nbsp;demonstrate&amp;nbsp;on how you can create a database, and assign users and special&amp;nbsp;privileges&amp;nbsp;to that data base within few clicks&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Step 1 - Creating Users&lt;/h3&gt;
&lt;div&gt;
Assuming you already have a&amp;nbsp;&lt;a href=&quot;http://stratoslive.wso2.com/carbon&quot;&gt;stratoslive&lt;/a&gt;&amp;nbsp;account and logged in to &lt;a href=&quot;https://storage.stratoslive.wso2.com/&quot;&gt;storage as a server&lt;/a&gt;, lets first try to create a user for the database we are going to create.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Under Manage -&amp;gt; RSS Manager (relational storage service manager), you have the three basic&amp;nbsp;functions to manipulate relational data bases.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To Create users click on Database Users. This will show the list of users (if you have not created users before you will not see any) &amp;nbsp;along with &amp;nbsp;&quot;Add Database User &quot;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkq-ZNwiUG_l8MMOnJzBG8_mOWIchqwWw2pZMtju2kyPWFklqC0CU5QIxaTQk57pzriwjXPWvwmVmkKK8qBe-YrfIbdkSrfnKgDjcZX76buZy7Ijq76pOIks_8guJJPhalZWA1_zu561Q/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;194&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkq-ZNwiUG_l8MMOnJzBG8_mOWIchqwWw2pZMtju2kyPWFklqC0CU5QIxaTQk57pzriwjXPWvwmVmkKK8qBe-YrfIbdkSrfnKgDjcZX76buZy7Ijq76pOIks_8guJJPhalZWA1_zu561Q/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Select&amp;nbsp;Database Server Instance Name as WSO2_RSS (which is the default server), and give the user credentials as your choice and click save to save the user.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNAnuW7HQw-pT-w6S2SWtkUxISW_Xt1zEaI1sgnoXER4FrtLj8da8ZjsOL9tPMqvGjfw3xbrOTWDVcDStesZcmaeQ1ByPhATN1ElUbWptiAPSgBTIXdA6neQ2fBeVpaLPEnlOFMrvhCKQ/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;196&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNAnuW7HQw-pT-w6S2SWtkUxISW_Xt1zEaI1sgnoXER4FrtLj8da8ZjsOL9tPMqvGjfw3xbrOTWDVcDStesZcmaeQ1ByPhATN1ElUbWptiAPSgBTIXdA6neQ2fBeVpaLPEnlOFMrvhCKQ/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3&gt;
Step 2 - Creating&amp;nbsp;Privilege&amp;nbsp;Group&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
Once you create the user you can create a template which&amp;nbsp;separate out set of functions which can be&amp;nbsp;performed on a given database,&amp;nbsp; so you can assign roles.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Go to&amp;nbsp;RSS Manager -&amp;gt;&amp;nbsp;&amp;nbsp;Privilege Templates -&amp;gt; Add Database Privilege Template.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Lets say you only want this template to have &amp;nbsp;&amp;nbsp;INSERT UPDATE&amp;nbsp;DELETE&amp;nbsp;CREATE&amp;nbsp;DROP. Select the above fields along with a suitable name and save.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgavrotB0OF7zEeZHJX-98uROnv29DsxlhqhPyL_S0Z8zbArmi9GKjNtH26SydETl4ITntTrB-ueHJ9ihyeqg6tpm0J-URV52-ToyNaLtamIfAJbARxRvo_jqVIgEqgSM7w2z3ApNnZvQw/s1600/Selection_001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;556&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgavrotB0OF7zEeZHJX-98uROnv29DsxlhqhPyL_S0Z8zbArmi9GKjNtH26SydETl4ITntTrB-ueHJ9ihyeqg6tpm0J-URV52-ToyNaLtamIfAJbARxRvo_jqVIgEqgSM7w2z3ApNnZvQw/s640/Selection_001.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3&gt;
Step 3 - Creating&amp;nbsp;Database&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
Now lets create a database in the cloud and assign the created users and&amp;nbsp;privilege&amp;nbsp;template to that database.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Go to&amp;nbsp;RSS Manager -&amp;gt; Databases &amp;nbsp;-&amp;gt; Add Database&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Give the RSS instance name, &amp;nbsp;database name and save.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA8d0kZJISsHQ8I50MqAkuWmvMXnDuFKjgBBoFrCL_8dcoVLXHd59NT1WHnnhX8AJ5No_rEGyml9GOQLWrHlPOxNTQ3UZGUtO7axtxabr9Y8YRhO5HDuPv-hd2-9T4DbM91AvFtykHOag/s1600/Selection_002.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;172&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA8d0kZJISsHQ8I50MqAkuWmvMXnDuFKjgBBoFrCL_8dcoVLXHd59NT1WHnnhX8AJ5No_rEGyml9GOQLWrHlPOxNTQ3UZGUtO7axtxabr9Y8YRhO5HDuPv-hd2-9T4DbM91AvFtykHOag/s640/Selection_002.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Once you create the database it will go under Databases list, where you have the option to manage databases by adding users and&amp;nbsp;privileges&amp;nbsp;to that database.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Go to&amp;nbsp;RSS Manager -&amp;gt;&amp;nbsp;Databases&amp;nbsp; -&amp;gt; database name -&amp;gt; Manage -&amp;gt; Attach Database User&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Assign the user and role we created in step1 and step2 to the database as shown below.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOzP0_1iwmndSjuihxuELHBlftxOUMrqSHyAFKGe7vv7TpK-mNRHwehVClRGD7Uc96fMV_Sa7IvS3j-kBPlVMEdaNJcPahcGB7CqUtCMOBLDUpNwhlBXtlLKSps8qFGs9oAYlDFQaCPZY/s1600/Selection_003.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;250&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOzP0_1iwmndSjuihxuELHBlftxOUMrqSHyAFKGe7vv7TpK-mNRHwehVClRGD7Uc96fMV_Sa7IvS3j-kBPlVMEdaNJcPahcGB7CqUtCMOBLDUpNwhlBXtlLKSps8qFGs9oAYlDFQaCPZY/s640/Selection_003.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
Once you attach this user and role you can use this database with the user and the jdbc url shown in the databases page.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGGUGuAFmEtfDWElimhCxDUsERJnuzU65eUYAXDvVMV7K8yuAwBR3dPKp-iqeg0d-GSMBODvTzxl4LM2r3vHoMHvKiQqyyY198aGqYaO_p-MLi2xZBssXtlhK3MvabdBnIqNxkNBB7APc/s1600/Selection_004.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;136&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGGUGuAFmEtfDWElimhCxDUsERJnuzU65eUYAXDvVMV7K8yuAwBR3dPKp-iqeg0d-GSMBODvTzxl4LM2r3vHoMHvKiQqyyY198aGqYaO_p-MLi2xZBssXtlhK3MvabdBnIqNxkNBB7APc/s640/Selection_004.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
That&#39;s It .. now you have created your very own database in the cloud!!!&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA5AHpbIWkrmrDPXVgc_YJEgD-0H0F2bwCowxwxvLOsQglckZkt52_a58rhBy1bsiqysFTPkAijq5NUdIgqSzydDtHxRGuqpUyBSRWr6d_Z8-B5xM8aHjchGnoimhQ5NFNo0LJaO1Wwtk/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA5AHpbIWkrmrDPXVgc_YJEgD-0H0F2bwCowxwxvLOsQglckZkt52_a58rhBy1bsiqysFTPkAijq5NUdIgqSzydDtHxRGuqpUyBSRWr6d_Z8-B5xM8aHjchGnoimhQ5NFNo0LJaO1Wwtk/s1600/1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
If you want view this database using a mysql client.. you can use &lt;a href=&quot;https://management.data.stratoslive.wso2.com/&quot;&gt;WSO2 Data Services Server&lt;/a&gt; DB explorer.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Go to &amp;nbsp;&lt;a href=&quot;https://management.data.stratoslive.wso2.com/&quot;&gt;WSO2 Data Services Server&lt;/a&gt;&amp;nbsp;-&amp;gt; Tools -&amp;gt; Database&amp;nbsp;Explorer.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Give the database&amp;nbsp;information&amp;nbsp;accordingly along with our newly created database and user. &amp;nbsp;And log in to your database.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXhY8TpY7_cD-w0B1jJiEdQ1s3jeeEngwEMX3MDiXUChWIH_N-CMxhoFGlZj5PALdixv7IZYvz1E039_jjm9OjXOZLOzPtIVytu4l_FhjyZb3dWMz7iYUKPj8IkjtKBh1QYrpjcU2Kabg/s1600/Selection_001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;362&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXhY8TpY7_cD-w0B1jJiEdQ1s3jeeEngwEMX3MDiXUChWIH_N-CMxhoFGlZj5PALdixv7IZYvz1E039_jjm9OjXOZLOzPtIVytu4l_FhjyZb3dWMz7iYUKPj8IkjtKBh1QYrpjcU2Kabg/s640/Selection_001.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
And you can create your tables and manage data accordingly&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlfXOFVxKBmEXe5ckCx6vGAgLZniczHpTknrkIps3GydCOnFoqVTQdwJzopEVENIbwsmCCTCI5jnMDxUp6I_j96QoAis670NW6cIrwPE9c6CwQZtjeAa4wWQFxgeSY3IpFta-fN6lMb64/s1600/Selection_003.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;318&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlfXOFVxKBmEXe5ckCx6vGAgLZniczHpTknrkIps3GydCOnFoqVTQdwJzopEVENIbwsmCCTCI5jnMDxUp6I_j96QoAis670NW6cIrwPE9c6CwQZtjeAa4wWQFxgeSY3IpFta-fN6lMb64/s640/Selection_003.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you want to expose your data as services you can use the &lt;a href=&quot;http://sparkletechthoughts.blogspot.com/2011/09/expose-your-entire-database-in-two.html&quot;&gt;following guide&lt;/a&gt; which explains how to expose your data as a service within few clicks.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/6655520969337967347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/04/relational-storage-solution-using-wso2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/6655520969337967347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/6655520969337967347'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/04/relational-storage-solution-using-wso2.html' title='Relational Storage Solution using WSO2 Storage as a Service'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcwM5LoB5cLhr2iqQGODXxL53HiKKc1Th5OwG4T3qvHsF05wQ-MDMHm__qFarq7zOrRWdWh_RRmhItGQFG9ogCVkN-cCIlif6-QyM2zM7LQvlB-VOWZAlLZG2iy0Ot5zeImuFji7NB3AQ/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-9132989039848905487</id><published>2013-03-21T09:15:00.000-07:00</published><updated>2013-04-26T09:19:46.103-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cassandra"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 BAM 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 Storage Server"/><title type='text'>How to setup Cassandra Cluster using WSO2 Storage Server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In my &lt;a href=&quot;http://sparkletechthoughts.blogspot.com/2012/10/how-to-configure-mt-logging-with-wso2.html&quot;&gt;previous article&lt;/a&gt; I have explain how to configure multi-tenant logging in WSO2 stratos, in this post I am going to explain how we can create an external carbonized cluster and point it to BAM so that our logs will be stored in an external cassandra cluster. If you are having a production deployment and if you want to store big data for example daily logs of all servers, then you need to have an external cassandra cluster for high available and for high perfomance.&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
So to have a carbonized cassandra cluster.. we are going to use &lt;a href=&quot;http://docs.wso2.org/wiki/display/SS100/About+the+Storage+Server&quot;&gt;WSO2 storage server&lt;/a&gt;. WSO2 Storage server provides rich set of tools to create and manipulate storages such as relational data storages, cassandra and hdfs file systems.&lt;br /&gt;
&lt;br /&gt;
To start you need to download &lt;a href=&quot;http://dist.wso2.org/downloads/carbon/4.0.5/wso2ss-1.0.2.zip&quot;&gt;WSO2 Storage Server&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Before we begin you need to have a basic understanding on cassandra in order to get a clear understanding on what we are trying to do. Unlike most master-slave deployments .. cassandra does &amp;nbsp;not use master/slave architecture, it uses a peer-to-peer implementation which avoids the pitfalls, latency problems, single point of failure issues and perfomance hits assosiated with master/slave setups. Which makes cassandra more high available and efficient.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhITcnw_bg11UVpYbjcQ0-XprWJb0tFM4SIHOA1DdfEA0fgUuTzSVNFs1spW3ZKQReBmZi8qmJp_xRKT77qlTv3Ji_KzNNE76iw_n2hm7Qa-6spQLOd7nQzaROA2VRfpVqa9N71Vek1cf8/s1600/my.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;318&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhITcnw_bg11UVpYbjcQ0-XprWJb0tFM4SIHOA1DdfEA0fgUuTzSVNFs1spW3ZKQReBmZi8qmJp_xRKT77qlTv3Ji_KzNNE76iw_n2hm7Qa-6spQLOd7nQzaROA2VRfpVqa9N71Vek1cf8/s320/my.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
So basically what happens when we write to cassandra is client write to any node in the cassandra cluster controller node replicate to &amp;nbsp;nodes and zones and nodes return&amp;nbsp;acknowledgement&amp;nbsp;to&amp;nbsp;coordinator. Then&amp;nbsp;coordinator&amp;nbsp;return ack to client and data is written to internal commit log disk. If a node goes offline hinted handoff completes the write when the nodes come back up/&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
So lets begin to configure carbonized cassandra ..&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;u&gt;&lt;b&gt;Storage Server Management node deployment steps&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;cassandra-component.xml -&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
cassandra-component.xml point the backend Cassandra cluster.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;Cassandra&amp;gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;Cluster&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;Name&amp;gt;&lt;/span&gt;SSCluster&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/Name&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;DefaultPort&amp;gt;&lt;/span&gt;9160&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/DefaultPort&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;Nodes&amp;gt;&lt;/span&gt;node0:9160,node1:9160,node2:9160,node3:9160&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/Nodes&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;AutoDiscovery&lt;/span&gt;&amp;nbsp;disable=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;true&quot;&lt;/span&gt;&amp;nbsp;delay=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1000&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/Cluster&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/Cassandra&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;cassandra-auth.xml &amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
User has to create a system user with admin privilege to communicate with the cassandra backend and&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
configure the cassandra-auth.xml with that user and the remote shared key publisher service URL.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;Cassandra&amp;gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;EPR&amp;gt;&lt;/span&gt;https:&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;cassandra.cluster.backend.ip:9443&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;services&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;CassandraSharedKeyPublisher&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/EPR&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;User&amp;gt;&lt;/span&gt;admin&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/User&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;Password&amp;gt;&lt;/span&gt;admin&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/Password&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/Cassandra&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
For the EPR you can give the IP of the first backend server node, you also need to consider the offset when providing the port as it will not automatically change it.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
Since we are doing many hdfs/hadoop functions (to complete the bam story) using relational data storage we also need to configure rss-config.xml&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;rss-config.xml&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
There you need to give the datasource properties (jdbc url of the mysql server and user credentials) accordingly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;dataSourceProps&amp;gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt;&amp;nbsp;name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;URL&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;jdbc:mysql:&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;mysql.stratos-local.wso2.com:3306&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;rss_db&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt;&amp;nbsp;name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;user&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;root&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt;&amp;nbsp;name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;password&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;root&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/dataSourceProps&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;u&gt;&lt;b&gt;Storage Server Cassandra cluster deployment steps&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
All the nodes in the Storage Server Cassandra cluster should configure to use common carbon user base as&amp;nbsp;any other carbon server. User has to update the user-mgt.xml and registry.xml with correct&lt;br /&gt;
configurations.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Node Configuration&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
cassandra.yaml&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Start the node with default seed configuration&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;border-bottom-color: rgb(180, 208, 220); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(180, 208, 220); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(180, 208, 220); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(180, 208, 220); border-top-style: solid; border-top-width: 1px;&quot;&gt;&lt;span style=&quot;background-color: black;&quot;&gt;- seeds: &lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;127.0.0.1&quot;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Edit the cluster listening address&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;border-bottom-color: rgb(180, 208, 220); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(180, 208, 220); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(180, 208, 220); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(180, 208, 220); border-top-style: solid; border-top-width: 1px;&quot;&gt;&lt;span style=&quot;background-color: black;&quot;&gt;listen_address:cassandra.node.ip&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Edit the thrift listening address&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;border-bottom-color: rgb(180, 208, 220); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(180, 208, 220); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(180, 208, 220); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(180, 208, 220); border-top-style: solid; border-top-width: 1px;&quot;&gt;&lt;span style=&quot;background-color: black;&quot;&gt;rpc_address::cassandra.node.ip&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Both these ip addresses are the ip address of the machine it self which cassandra&amp;nbsp;recedes&amp;nbsp;on.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you are &amp;nbsp;having another node as the seed node, then you can seed node to boostrap&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ie&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;border-bottom-color: rgb(180, 208, 220); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(180, 208, 220); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(180, 208, 220); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(180, 208, 220); border-top-style: solid; border-top-width: 1px;&quot;&gt;&lt;span style=&quot;background-color: black;&quot;&gt;rpc_address:ip.of.cassandra.api&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Configuring BAM to talk to External Cassandra&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;; font-size: 13px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;; font-size: 13px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;Once we configure the external carbonized cassandra we need to tell the BAM we are no longer using the internal cassandra inbuilt in BAM but to use the external cassandra. In order to do that you need to start the BAM server with the &amp;nbsp;following system property.&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;-Ddisable.cassandra.server.startup=true&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
And also you need to configure the following configuration files.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;cassandra­component.xml&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;Cassandra&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;Cluster&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;Name&amp;gt;&lt;/span&gt;ClusterOne&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/Name&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&amp;lt;!--This is not important--&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;Nodes&amp;gt;&lt;/span&gt;node0.cassandra.com:9160,node1.cassandra.com:9160,node2.cassandra.com:9160&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/Nodes&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&amp;lt;!--Host and port of the first node of the backend cluster. Refer the diagram to identify the first node. Need to consider offset of the backend node when providing the port here--&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;AutoDiscovery&lt;/span&gt;&amp;nbsp;disable=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;false&quot;&lt;/span&gt;&amp;nbsp;delay=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1000&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/Cluster&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/Cassandra&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;cassandra-auth.xml &amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;Cassandra&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;EPR&amp;gt;&lt;/span&gt;https:&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;cassandra.cluster.backend.ip:9443&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;services&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;CassandraSharedKeyPublisher&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/EPR&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;User&amp;gt;&lt;/span&gt;admin&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/User&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;Password&amp;gt;&lt;/span&gt;admin&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/Password&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/Cassandra&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;rss-config.xml&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;dataSourceProps&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt;&amp;nbsp;name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;URL&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;jdbc:mysql:&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;mysql.stratos-local.wso2.com:3306&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;rss_db&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt;&amp;nbsp;name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;user&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;root&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt;&amp;nbsp;name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;password&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;root&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/dataSourceProps&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
Also if you are using BAM analytics you need to configure the hive-site.xml as well&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;hive-site.xml&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;name&amp;gt;&lt;/span&gt;javax.jdo.option.ConnectionURL&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;jdbc:mysql:&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;mysql.server.url&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;hive_db&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;description&amp;gt;&lt;/span&gt;JDBC connect string for a JDBC metastore&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/description&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;name&amp;gt;&lt;/span&gt;fs.default.name&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;hdfs:&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;hdfs.url:hdfs_port&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&amp;lt;!--normally the port is 9000 --&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;name&amp;gt;&lt;/span&gt;mapred.job.tracker&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;hdfs.url:hdfs_job_tracker_port&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #3f7f5f;&quot;&gt;&amp;lt;!--normally the port is 9001 --&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/9132989039848905487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/03/how-to-setup-cassandra-cluster-using.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/9132989039848905487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/9132989039848905487'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/03/how-to-setup-cassandra-cluster-using.html' title='How to setup Cassandra Cluster using WSO2 Storage Server'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhITcnw_bg11UVpYbjcQ0-XprWJb0tFM4SIHOA1DdfEA0fgUuTzSVNFs1spW3ZKQReBmZi8qmJp_xRKT77qlTv3Ji_KzNNE76iw_n2hm7Qa-6spQLOd7nQzaROA2VRfpVqa9N71Vek1cf8/s72-c/my.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-6852551771171932503</id><published>2013-03-06T05:52:00.002-08:00</published><updated>2013-03-06T06:06:13.891-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="E-Learning"/><category scheme="http://www.blogger.com/atom/ns#" term="Interactive Education"/><category scheme="http://www.blogger.com/atom/ns#" term="Kids"/><category scheme="http://www.blogger.com/atom/ns#" term="Kreyonic"/><category scheme="http://www.blogger.com/atom/ns#" term="Leamo"/><title type='text'>Introducing Leamo - To LEarn And MOre</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Today I thought of introducing a cool cutting edge technology, which can help young minds to learn educate and have fun. Leamo, is an interactive learning platform which uses an iphone and bunch of flash cards and brings a magical environment to home/pre schools for kids under all ages.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Why not traditional learning ?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Most traditional education tools/applications uses the sit and learn approach, where educators have to talk and interact with kids while kids sit and listen. Most kids get soo bored with this traditional learning approach, and sometimes they get tired of the whole education system. Kids are more energetic than adults they need to run around poke things to nurish their curious minds. They cant just listen to you all the time and agree on what you say rather they like to experiment with new things and then learn how things work.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg-F22lDhh5F3yQEoZ9t_OQOeQGA1ARowM1Qqo4cezcrBkEKXyA5m79N-f3-dDUSEz8qkIlHBSTxTZFrRvtF6Gg63bnK1hMlWdh5-or_k-gF0OwRbKntbnU7MjOsWoj1-CcT8nj266THY/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg-F22lDhh5F3yQEoZ9t_OQOeQGA1ARowM1Qqo4cezcrBkEKXyA5m79N-f3-dDUSEz8qkIlHBSTxTZFrRvtF6Gg63bnK1hMlWdh5-or_k-gF0OwRbKntbnU7MjOsWoj1-CcT8nj266THY/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Why Leamo ?&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Kids like to play with toys, flash cards,&amp;nbsp;play-dough&amp;nbsp;and also interact with things&amp;nbsp;without&amp;nbsp;just listening and watching. They like to touch and feel things rather than look and listen. In the modern days kids are more attracted to digital screens, such as iphone, ipads, tablets and smartphones.&amp;nbsp;Even though&amp;nbsp;these ipad/ipones apps are very attractive for kids, there are major draw backs when it comes to kids education. I agree there are good educational applications provided by these gadgematics, however, it will not make your child develop the basic skills such as &amp;nbsp;creativity, &amp;nbsp;motor skills and hand-eye coordination ect. Most of these skills are develop when they interact with&amp;nbsp;physical&amp;nbsp;objects. So the solution is to mix the digital world with the&amp;nbsp;physical&amp;nbsp;world and give a hybrid educational platform for kids. So they wont get bored, or get distracted while learning and give a&amp;nbsp;fulfilled&amp;nbsp;learning&amp;nbsp;experience.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTj1e3BHozCUrdn-knXaCFEsXk6ucdVlRRBHhS9YH8ijg7fcMDuheDMXRTbBQ1mNEqDjemJDspunhguSj-W96pmKhQZFC5tn4zGaNkMqHKkEY4Ada4eMFcYZa6PZ3Kc5XpF7zyuw9qYII/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTj1e3BHozCUrdn-knXaCFEsXk6ucdVlRRBHhS9YH8ijg7fcMDuheDMXRTbBQ1mNEqDjemJDspunhguSj-W96pmKhQZFC5tn4zGaNkMqHKkEY4Ada4eMFcYZa6PZ3Kc5XpF7zyuw9qYII/s640/2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
This is the base of leamo, leamo provides a novel way of educating your child, using flashcards and digital surface. Where there are several education apps focusing mathematics, science and language skills along with history,arts music which will give them a balanced and rich education and develop both sides of their brain.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;How Leamo Works?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQIHirOG1GmbtaCFgoAlwwxJHnw4IadVCGNolN_w6Ytu3g1O1t72u1mt2aUXH1hbB9M4gK5uwFepnEWxSi4vYWx_qf52zgFXi-LPDUXnqxq0PhPdDUQM7yHMnr82_Kugiayz_f30bW0yE/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;347&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQIHirOG1GmbtaCFgoAlwwxJHnw4IadVCGNolN_w6Ytu3g1O1t72u1mt2aUXH1hbB9M4gK5uwFepnEWxSi4vYWx_qf52zgFXi-LPDUXnqxq0PhPdDUQM7yHMnr82_Kugiayz_f30bW0yE/s640/2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Leamo runs on ipad, iphones and ipod (at the moment however, it will improve for android devices as well), all you need to do is connect your apple device to an LCD screen or a projector, and run the application. Leamo will come with bunch of flash cards and&amp;nbsp;physical&amp;nbsp;toys so the kids can interact with the digital world through the&amp;nbsp;physical&amp;nbsp;objects, by placing them in the correct place at the correct time. Leamo will guide you with all the kid&#39;s activities, parental supervision is not needed, kids can learn&amp;nbsp;independently&amp;nbsp;at their own space. Leamo will provide bunch of educational applications such as number games, language, fun with arts and music and story telling which will take the kids to a magical world where learning becomes&amp;nbsp;addictive&amp;nbsp;and fun. This is the best educational tool for energetic kids where they can run around, talk with it and make imagination come to reality.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA3KH2EjDGEdSdUMk0u80VBP7CD0LhwIF2Me0WRKrsvHTZNlp4SCYXuQ5_jLfc_lBP2tTVSv7wKWuMjZGGUlllS6UIC42-7kpuHbJPdPz30jn4EB3Xw-S98Zhr5nqIcyYTQ1cMPjMk9IQ/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA3KH2EjDGEdSdUMk0u80VBP7CD0LhwIF2Me0WRKrsvHTZNlp4SCYXuQ5_jLfc_lBP2tTVSv7wKWuMjZGGUlllS6UIC42-7kpuHbJPdPz30jn4EB3Xw-S98Zhr5nqIcyYTQ1cMPjMk9IQ/s640/3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Educating young minds ....&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
From my&amp;nbsp;experience&amp;nbsp;as a technology for education enthusiastic and a technology provider for kids, there are major advantages using Leamo.One of them is making them eager and&amp;nbsp;addicted&amp;nbsp;to learning new things through technology. And it improves their creative thinking skills,&amp;nbsp;psycho-motor&amp;nbsp;skills and reactive skills compared to other learning tools. Last but not least you&amp;nbsp;don&#39;t&amp;nbsp;need much parental&amp;nbsp;guidance&amp;nbsp;with leamo, you can easily set it up and make them learn&amp;nbsp;independently.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9tXb8qO9TCYK_9hT5PTx8rnaRLP3fJ4H4DMwH3hI6Pf-lDSAroIpupC4yks67jMNLncAZeKZyTVsAGVxypc-u8mLOXf1TPUkqk7WtAp5wxZ0QUUCSClhBfbiPkHMBdefoYMfkd-oA1oY/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;370&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9tXb8qO9TCYK_9hT5PTx8rnaRLP3fJ4H4DMwH3hI6Pf-lDSAroIpupC4yks67jMNLncAZeKZyTVsAGVxypc-u8mLOXf1TPUkqk7WtAp5wxZ0QUUCSClhBfbiPkHMBdefoYMfkd-oA1oY/s640/2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHwc4PUz13Ev7bPOfk8-WoEelY8hXg68xtIFAw-UOun8EPyhq8-CJO4GLtR_QpChXW7bdlJT44F7Zdg0rk38-Agv7fz_d5NDggXthmH6GSilyrhNgsnMFFYq1D-p-XDxPvuMD7arIzM0o/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHwc4PUz13Ev7bPOfk8-WoEelY8hXg68xtIFAw-UOun8EPyhq8-CJO4GLtR_QpChXW7bdlJT44F7Zdg0rk38-Agv7fz_d5NDggXthmH6GSilyrhNgsnMFFYq1D-p-XDxPvuMD7arIzM0o/s640/3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;For more&amp;nbsp;information&amp;nbsp;on Leamo, please visit &lt;a href=&quot;http://www.getleamo.com/&quot;&gt;get-leamo &lt;/a&gt;and be amazed!!!!. Leamo is a proud product of &lt;a href=&quot;http://www.kreyonic.com/&quot;&gt;Kreyonic&lt;/a&gt;, &amp;nbsp; An Interactive Digital Media Solutions provider specialize in providing interactive experiences, mobile solutions, that augment your perception of reality to create a new dimension in multimedia experience, taking digital media to the next level.&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/6852551771171932503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/03/introducing-leamo-to-learn-and-more.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/6852551771171932503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/6852551771171932503'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/03/introducing-leamo-to-learn-and-more.html' title='Introducing Leamo - To LEarn And MOre'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg-F22lDhh5F3yQEoZ9t_OQOeQGA1ARowM1Qqo4cezcrBkEKXyA5m79N-f3-dDUSEz8qkIlHBSTxTZFrRvtF6Gg63bnK1hMlWdh5-or_k-gF0OwRbKntbnU7MjOsWoj1-CcT8nj266THY/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-7085515985513691341</id><published>2013-02-23T23:05:00.003-08:00</published><updated>2013-02-24T01:44:23.388-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="GitHub"/><category scheme="http://www.blogger.com/atom/ns#" term="Version Control"/><title type='text'>Introduction to GIT with GIT commands</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Recently I had some experiance working with git and I thought of sharing most basic and mostly used set of git commands. Before we begin I will give a quick introduction to&amp;nbsp;&quot;git&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;What is&amp;nbsp;&quot;git&quot;?&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Git is an open source distributed version control system designed to manange source code, system which designed for speed and&amp;nbsp;efficiency.&amp;nbsp;So the important factor here to remember is git is a &lt;b&gt;distributed&lt;/b&gt; version control system unlike the old fasion centralized version control system such as SVN. In a centralized VCS you have a server which has all the source code and clients, and these two parties can be distringuishly identified. If a client wants to use the code to &amp;nbsp;do any modification, they have to checkout the source from the server and comit back to the server. So the entire code base stays in a single data store.If you loose the data store then you are screwed!!!. Git on the other hand is a distributed version control system, what it means is you dont check out a version of a project to start working but you clone it. So you just clone it to the local file system, this way is far efficient and you can work offline (You dont have to be online for most operations) no network issues,you can push and pull directly to peers. This means almost everything is local, so its very fast, every clone is a backup (so everyone working in that project has a backup for the system), and you can work offline.&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjtRkPg1fXF_5UnztvMPZG1g_LIHoPWNbFhzD3pmXWtHc_YYS23zKCskwsZabezRd6r8PD6wJI_PYgWRSjmN7v4foJBxpkM_aohitK75kgcvevTNwaUYID4U-l4C2nSzV8aSAtK9p5fBI/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;133&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjtRkPg1fXF_5UnztvMPZG1g_LIHoPWNbFhzD3pmXWtHc_YYS23zKCskwsZabezRd6r8PD6wJI_PYgWRSjmN7v4foJBxpkM_aohitK75kgcvevTNwaUYID4U-l4C2nSzV8aSAtK9p5fBI/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;Why use&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;&quot;git&quot;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
I asked a friend why he thinks a project/company should adopt&amp;nbsp;&quot;git&quot;, his simple answer was less build breaks :D (which&amp;nbsp;of course&amp;nbsp;a good enough answer) and you can give restricted commit rights to team members so no careless glitches :). But&amp;nbsp;of&amp;nbsp;course&amp;nbsp;there&#39;s more to that story, So I listed down few advantages which I could think of &quot;git&quot; and Why projects should move to&amp;nbsp;&quot;git&quot;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Its very fast (since almost everything is local)&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;You want lose your code (Every clone is a backup to the system)&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;You can work offline to perfom each of the mostly used task such as:&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; performing a diff,&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; viewing file history,&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;committing&amp;nbsp;changes,&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;merging branches,&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;obtaining other revision of a file,&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;switching branches&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Which means you can work anywhere in the world even when you are up in the sky !!!!&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;Its imutable (it never removes data) -&quot;git&quot;&amp;nbsp;will not re write your history, it will always write a new history (you will have a pointer to your new history) you can always go back so you want lose data.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Before I begin I should warn you, if you are used to old fasion version control system like SVN you are going to hate&amp;nbsp;&quot;git&quot;. You will start hating everything about&amp;nbsp;&quot;git&quot;&amp;nbsp;and get tired of it very easily. Because its very differant from the centralized version control systems for example most version control systems are file based delta storage its mainly file based operations on the other hand&amp;nbsp;&quot;git&quot;&amp;nbsp;thinks about data as snapshots,it looks at the content (ignores the filename) and put that content in the database as key value pairs and return the key.That is, instead of thinking about and storing commit points as file based patches or changes, it stores it as a simple snapshot of what your project looked like when you committed.. So the easiest way to get you hands on these cool stuff, you need to foget all you know about centralized version control systems, youve been using for the past years and start thinking differantly and it will blow your mind :)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Before I bore you off with the conceptual infomation on&amp;nbsp;&quot;git&quot;&amp;nbsp;I will start giving the most commonly used&amp;nbsp;&quot;git&quot;&amp;nbsp;commands to start off with&amp;nbsp;&quot;git&quot;&amp;nbsp;and I will continue explaining interesting stuff about&amp;nbsp;&quot;git&quot;&amp;nbsp;in my next blog posts.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
init - &amp;nbsp;This will initialize a brand new git repository in a project directory.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #4e4848; border: 1px solid #b4d0dc;&quot;&gt;git init&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
clone - This will clone an exact copy of an existing project.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #4e4848; border: 1px solid #b4d0dc;&quot;&gt;git clone http:&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;git.stratos.com&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;amani.com&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;poo&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
add - Adding files&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To add a single file:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #4e4848; border: 1px solid #b4d0dc;&quot;&gt; git add info.php&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To add multiple files:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #4e4848; border: 1px solid #b4d0dc;&quot;&gt; git add info.php README.txt&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To add all the files in the directory:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #4e4848; border: 1px solid #b4d0dc;&quot;&gt;git add .&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Status - This tells you what files have been modified since the last time they were committed.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #4e4848; border: 1px solid #b4d0dc;&quot;&gt;git status&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
commit - Commit changes to head (but not yet to the remote repository):&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #4e4848; border: 1px solid #b4d0dc;&quot;&gt;git commit -m &lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Committing my changes&quot;&lt;/span&gt; &lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Push - Send changes to the master branch of your remote repository&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #4e4848; border: 1px solid #b4d0dc;&quot;&gt;git push origin master&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Blame - To check who screwed it up :)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #4e4848; border: 1px solid #b4d0dc;&quot;&gt;git blame hello.java&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you screwed it up :( ?&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
reset - Revert the uncommited changes from last commit&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #4e4848; border: 1px solid #b4d0dc;&quot;&gt;git reset --hard HEAD&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
checkout - Undo local changes&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #4e4848; border: 1px solid #b4d0dc;&quot;&gt;git checkout -- myFile.txt&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
* If you mess up, you can replace the changes in your working tree with the last content in head:&lt;/div&gt;
&lt;div&gt;
Changes already added to the index, as well as new files, will be kept.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
fetch - fetch the latest history from the server and point your local master branch at it.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #4e4848; border: 1px solid #b4d0dc;&quot;&gt;git fetch origin&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
git reset --hard origin&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&lt;/span&gt;master&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Grep - Search the working directory for isService():&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: #4e4848; border: 1px solid #b4d0dc;&quot;&gt;git grep &lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;isService()&quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Thats it for now to get a quick start on git try &lt;a href=&quot;https://github.com/&quot;&gt;GitHub&lt;/a&gt;. GitHub made git more easy, &amp;nbsp;you can try it out and boost up on git with &lt;a href=&quot;https://github.com/&quot;&gt;GitHub&lt;/a&gt;. :)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQtiqR3tbjEaST_7pxd-R3e3Y6zwsgX_uRoLf6h6TllT54CKsLzryKy-E0UVtS_iTGDd3SwlDKj3HNFDZXs5yF3F5iAhM0D5Pv5F3dE7mJDNJJKGSz4WWIeJSXXeT9va0I1UXIgD-QVtE/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQtiqR3tbjEaST_7pxd-R3e3Y6zwsgX_uRoLf6h6TllT54CKsLzryKy-E0UVtS_iTGDd3SwlDKj3HNFDZXs5yF3F5iAhM0D5Pv5F3dE7mJDNJJKGSz4WWIeJSXXeT9va0I1UXIgD-QVtE/s320/2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/7085515985513691341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/02/introduction-to-git-with-git-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/7085515985513691341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/7085515985513691341'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/02/introduction-to-git-with-git-commands.html' title='Introduction to GIT with GIT commands'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjtRkPg1fXF_5UnztvMPZG1g_LIHoPWNbFhzD3pmXWtHc_YYS23zKCskwsZabezRd6r8PD6wJI_PYgWRSjmN7v4foJBxpkM_aohitK75kgcvevTNwaUYID4U-l4C2nSzV8aSAtK9p5fBI/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-9149631383894226419</id><published>2013-02-19T06:13:00.003-08:00</published><updated>2013-02-23T18:26:36.755-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Configure Hadoop"/><category scheme="http://www.blogger.com/atom/ns#" term="Hadoop"/><category scheme="http://www.blogger.com/atom/ns#" term="Hadoop Clustering"/><title type='text'>How to configure a hadoop cluster</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWCaZeCnai5wlMPd0EqvE15xgiGJyU-WjyfQVkzfOxJYPsfkPVZvSQxwladr6DUn_LZISZDswPGWSJt5wkTaCOhjGLDXclBMlyA5jMSFRZPMloL7Z3zH3ayDlCsNL5F4cAlOXX0hF6Fu4/s1600/2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWCaZeCnai5wlMPd0EqvE15xgiGJyU-WjyfQVkzfOxJYPsfkPVZvSQxwladr6DUn_LZISZDswPGWSJt5wkTaCOhjGLDXclBMlyA5jMSFRZPMloL7Z3zH3ayDlCsNL5F4cAlOXX0hF6Fu4/s1600/2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span class=&quot;vk_ans vk_dgy&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span class=&quot;vk_ans vk_dgy&quot; style=&quot;color: purple;&quot;&gt;Prerequisites&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
Before we begin there are couple of softwares you need to install &amp;nbsp;along with the hadoop user, before installing hadoop .&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Java - Install Java into a location where all the user groups can access.&lt;br /&gt;
Eg:&amp;nbsp;opt/java/jdk-1.6_29&lt;br /&gt;
&lt;br /&gt;
rsync - Install rsync using apt-get (This is to copy the Hadoop distribution of Name Node across all the other nodes)&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Create hadoop user -&amp;nbsp;&amp;nbsp;Navigate to /home. Create the user “hadoop”&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
To login as user hadoop using the command.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;su - hadoop&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;bash&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;PS: Above steps need to be performed (software should be installed) on all the other Hadoop nodes as well&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;span id=&quot;internal-source-marker_0.6246181789742439&quot; style=&quot;background-color: transparent; color: purple; font-family: &#39;Trebuchet MS&#39;; font-size: 19px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Setup public key login from master to slave nodes&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Create ssh public keys for each user (ssh-keygen -t rsa -b 2048) and added the public key (*.pub) to the authorized_keys file in master and slave nodes.&lt;br /&gt;
&lt;br /&gt;
Key Exchange for Passphraseless SSH&lt;br /&gt;
&lt;br /&gt;
1. We need to have password / passphraseless SSH to communicate with other Hadoop nodes in the&lt;br /&gt;
cluster.&lt;br /&gt;
&lt;br /&gt;
Try to SSH to another node&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ssh hadoop@amani26.poohdedoo.com&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
2. Generate a key for the Name Node using the following command.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;ssh-keygen&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This will generate an output similar to below.&lt;br /&gt;
&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/home/hadoop/.ssh/id_rsa):&lt;br /&gt;
Enter passphrase (empty for no passphrase):&lt;br /&gt;
Enter same passphrase again:&lt;br /&gt;
Your identification has been saved in /home/hadoop/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /home/hadoop/.ssh/id_rsa.pub.&lt;br /&gt;
8207:9e:1e:60:37:28:03:a6:18:b3:b6:f1:e4:2f:ef hadoop@bam01&lt;br /&gt;
&lt;br /&gt;
3. This will create a .ssh directory inside the ‘hadoop’ user account. Navigate and to .ssh directory. It will contain a file with the generated public key. Inspect the public key stored in the ‘id_rsa.pub’ file&lt;br /&gt;
&lt;br /&gt;
with the command,&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;cat id_rsa.pub&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
It will display the public keys …&lt;br /&gt;
&lt;br /&gt;
4. This public key of the Name Node should appended to the ‘authorized_keys’ file in the other Data&lt;br /&gt;
Nodes. Execute the following command and copy the id_rsa.pub file into the other nodes.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;scp id_rsa.pub root@amani276.poohdedoo.com:/root&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
5. Login to the second Hadoop node’s ‘hadoop’ user account. Try to SSH to another node from this.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; &amp;nbsp;ssh hadoop@amani26.poohdedoo.com&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
This will create the .ssh directory in the hadoop account.&lt;br /&gt;
&lt;br /&gt;
6. Append the copied public key to the ‘authorized_key’ file in the hadoop account of this Data node.&lt;br /&gt;
Execute the following commands.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;cat /root/id_rsa.pub &amp;gt; authorized_keys&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;chown hadoop:hadoop authorized_keys&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;chmod 600 authorized_keys&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
7. Now you can ssh to this Data node from the earlier configured Master node. Login to the Master&lt;br /&gt;
node. From the hadoop account, login to the Data node with the following command.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;ssh -i id_rsa hadoop@amani27.poohdedoo.com&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;or&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ssh hadoop@amani27.poohdedoo.com&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span id=&quot;internal-source-marker_0.6246181789742439&quot; style=&quot;background-color: transparent; color: purple; font-family: &#39;Trebuchet MS&#39;; font-size: 19px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Setup Hadoop&lt;/span&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://www.bizdirusa.com/mirrors/apache/hadoop/common/hadoop-1.0.4/hadoop-1.0.4.tar.gz&quot;&gt;Download&lt;/a&gt; and extract hadoop (tar xvfz hadoop-x.x.x.tar.gz -C /mnt/)&lt;/li&gt;
&lt;li&gt;Change the permission of the extracted directory if necessary (chown -R user:user /mnt/hadoop-x.x.x)&lt;/li&gt;
&lt;li&gt;[optional] If IPv6 is not used disable it.&lt;/li&gt;
&lt;/ol&gt;
- add &#39;net.ipv6.conf.all.disable_ipv6 = 1&#39;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple; font-size: 19px;&quot;&gt;&lt;b&gt;Configure Hadoop&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;Configuration files $&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;HADOOP_HOME&lt;/span&gt;/conf&lt;/span&gt;/&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Set JAVA_HOME in $HADOOP_HOME/conf/hadoop-env.sh (Add export JAVA_HOME=/path/to/javahome) &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;eg:&amp;nbsp;export JAVA_HOME=/opt/java/jdk1.6.0_29&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Edit he HADOOP_HOME/conf/core-site.xml as follows:&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;configuration&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;name&amp;gt;fs.default.name&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;
&lt;/span&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;value&amp;gt;hdfs://hadoop0.poohdedoo.com:9000&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;/property&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;property&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;name&amp;gt;fs.hdfs.impl&amp;lt;/name&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;value&amp;gt;org.apache.hadoop.hdfs.DistributedFileSystem&amp;lt;/value&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;/property&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;property&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;name&amp;gt;hadoop.tmp.dir&amp;lt;/name&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;value&amp;gt;/mnt/hadoop_tmp&amp;lt;/value&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;/property&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;/configuration&amp;gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Edit the $HADOOP_HOME/conf/hdfs-site.xml&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;as follows:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;configuration&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;name&amp;gt;dfs.replication&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;
&lt;/span&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;value&amp;gt;1&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;
&lt;div&gt;
&amp;lt;/property&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;property&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;name&amp;gt;dfs.name.dir&amp;lt;/name&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;value&amp;gt;/mnt/hadoop_data/dfs/name&amp;lt;/value&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/property&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;property&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;name&amp;gt;dfs.data.dir&amp;lt;/name&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;value&amp;gt;/mnt/hadoop_data/dfs/data&amp;lt;/value&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/property&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/configuration&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Edit the $HADOOP_HOME/conf/mapred-site.xml as follows&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;configuration&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;property&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;name&amp;gt;mapred.job.tracker&amp;lt;/name&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;value&amp;gt;hadoop0.poohdedoo.com:9001&amp;lt;/value&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;/property&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;property&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;name&amp;gt;mapred.system.dir&amp;lt;/name&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;value&amp;gt;/mnt/hadoop_data/mapred/system&amp;lt;/value&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;/property&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;/configuration&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Edit the $HADOOP_HOME/conf/hadoop-policy.xml&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;div&gt;
&amp;nbsp;By default the value for &#39;security.job.submission.protocol.acl&#39; is *&lt;/div&gt;
&lt;div&gt;
change it to a user group or a name&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;property&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;name&amp;gt;security.job.submission.protocol.acl&amp;lt;/name&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;value&amp;gt;adminuser&amp;lt;/value&amp;gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
* Change the &#39;masters&#39; and &#39;slaves&#39; files (Master node only; slave machines does not need this configurations)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
- $HADOOP_HOME/conf/maseters (masters file contain secondary namenode servers)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
hadoop0.poohdedoo.com&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
- $HADOOP_HOME/conf/slaves (slaves file contain slave servers ; datanodes and task trackers)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
hadoop1.poohdedoo.com&lt;/div&gt;
&lt;div&gt;
hadoop2.poohdedoo.com&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple; font-size: 19px;&quot;&gt;&lt;b&gt;Setting up hadoop cluster&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Format the namenode before starting the cluster&lt;br /&gt;
&lt;br /&gt;
$HADOOP_HOME/bin/hadoop namenode -format&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;start the services&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$HADOOP_HOME/bin/start-all.sh&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
It will start namenode,jobtracker, secondarynamenode in master node and datanode and tasktracker on slave nodes. (To check the services run $JAVA_HOME/bin/jps)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;stop the services&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;$HADOOP_HOME/bin/stop-all.sh&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
It will stop namenode,jobtracker, secondarynamenode in master node and datanode and tasktracker on slave nodes. (To check the services run $JAVA_HOME/bin/jps)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVHLY8iKv18DSep587gTVEd7hEDL8FffcGoDAx3KH2724gG604eeouwAdqVrfutYGgEu-h1BqLGY2t0F-LL0-SKKI_PPdo17-FiHYfufdp7EO5dmhLQBTUxLNyhWwfdtQEQeLE0zWhVyg/s1600/1.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVHLY8iKv18DSep587gTVEd7hEDL8FffcGoDAx3KH2724gG604eeouwAdqVrfutYGgEu-h1BqLGY2t0F-LL0-SKKI_PPdo17-FiHYfufdp7EO5dmhLQBTUxLNyhWwfdtQEQeLE0zWhVyg/s1600/1.jpeg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/9149631383894226419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/02/how-to-configure-hadoop-cluster.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/9149631383894226419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/9149631383894226419'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/02/how-to-configure-hadoop-cluster.html' title='How to configure a hadoop cluster'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWCaZeCnai5wlMPd0EqvE15xgiGJyU-WjyfQVkzfOxJYPsfkPVZvSQxwladr6DUn_LZISZDswPGWSJt5wkTaCOhjGLDXclBMlyA5jMSFRZPMloL7Z3zH3ayDlCsNL5F4cAlOXX0hF6Fu4/s72-c/2.jpg" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-6672294855332866863</id><published>2013-01-14T07:10:00.001-08:00</published><updated>2013-02-23T18:27:56.767-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Big Data"/><category scheme="http://www.blogger.com/atom/ns#" term="Gadgets"/><category scheme="http://www.blogger.com/atom/ns#" term="Hive"/><category scheme="http://www.blogger.com/atom/ns#" term="Logging"/><title type='text'>How to Create Analytics and gadget Dashboard for Logs</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/div&gt;
Assume you have configured logs
according to my &lt;a href=&quot;http://sparkletechthoughts.blogspot.com/2012/10/how-to-configure-mt-logging-with-wso2.html&quot;&gt;Previous Article&lt;/a&gt;, you will get logs from&amp;nbsp;different&amp;nbsp;nodes to BAM which will resides in cassandra data store. If you wont
to analyzed those log data, a very simple&amp;nbsp;use case&amp;nbsp;would be to get
number of logs by the priority.&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Lets see how we can do it&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;Step 1 – Write an hive script to
retrieve data from cassandra and store it in a relational database.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
First we will use hive query language
to retrieve the needed data and we’ll store it in relational
database so we can create gadgets against relational data.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
My simple query is retreive all log
infomation to mysql database. (You can write your own logic
accordingly)&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Default keyspace is -  EVENT_KS&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
My needed CF is – log_0_AS_2013_01_07&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
My Mysql database -  MYBAMDB&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Go to BAM management console -&amp;gt;
Analytics -&amp;gt; Add-&amp;gt;  and copy paste the above query. Please
change the necessary parameters accordingly (
cassandra.cf.name,mapred.jdbc.url&#39;, mapred.jdbc.username,
mapred.jdbc.password)&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;CREATE EXTERNAL TABLE IF NOT EXISTS LogEventInfo (key STRING,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;tenantID INT,serverName STRING,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;appName STRING, priority STRING,logTime DOUBLE,logger STRING,message STRING) STORED BY&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&#39;org.apache.hadoop.hive.cassandra.CassandraStorageHandler&#39; WITH SERDEPROPERTIES ( &quot;cassandra.host&quot; =&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&quot;localhost&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&quot;cassandra.port&quot; = &quot;9160&quot;,&quot;cassandra.ks.name&quot; = &quot;EVENT_KS&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&quot;cassandra.ks.username&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;= &quot;admin&quot;,&quot;cassandra.ks.password&quot; = &quot;admin&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&quot;cassandra.cf.name&quot; = &quot;log_0_AS_2013_01_07&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&quot;cassandra.columns.mapping&quot; =&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&quot;:key,payload_tenantID,payload_serverName,payload_appName,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;payload_priority,payload_logTime,payload_logger,payload_message&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;CREATE EXTERNAL TABLE IF NOT EXISTS Logs(tenantID INT,serverName STRING,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;appName STRING, priority STRING,logTime DOUBLE,logger STRING,message STRING)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;STORED BY &#39;org.wso2.carbon.hadoop.hive.jdbc.storage.JDBCStorageHandler&#39; TBLPROPERTIES (&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&#39;mapred.jdbc.driver.class&#39; = &#39;com.mysql.jdbc.Driver&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&#39;mapred.jdbc.url&#39; =&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&#39;jdbc:mysql://localhost:3306/MYBAMDB&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&#39;mapred.jdbc.username&#39; =&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&#39;root&#39;,&#39;mapred.jdbc.password&#39; = &#39;root&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&#39;hive.jdbc.update.on.duplicate&#39; = &#39;true&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&#39;hive.jdbc.table.create.query&#39; =&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&#39;CREATE TABLE LogEvent(tenantID INT,serverName&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;VARCHAR(200),&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;appName VARCHAR(200), priority VARCHAR(200),logTime DOUBLE,logger VARCHAR(800),message VARCHAR(3800))&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;insert overwrite table Logs select tenantID, serverName, appName, priority, logTime,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;logger, message from LogEventInfo;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;select tenantID, serverName, appName, priority, logTime,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;logger, message from LogEventInfo;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
In the first part of hive query it will
map the cassandra data store to a storage handler which can extract
data from cassandra. The second part we map the cassandra storage
handler data to relational database storage handler to have the pipe
between cassandra and relational database. The third part is where
you write your logic for the analytics.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8jmOzu_8uCITdBEOzcOtmRswTBIKIfzWr34ia9rRw8FiIJAyfuhpa3CBPalHUeohAwshMEU9r9GIDxG63gSELt2IabvLdD2uApkqAiCEFP3ITyohSzHhqEyN3_Ipnl_REbRsiW0HdONk/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8jmOzu_8uCITdBEOzcOtmRswTBIKIfzWr34ia9rRw8FiIJAyfuhpa3CBPalHUeohAwshMEU9r9GIDxG63gSELt2IabvLdD2uApkqAiCEFP3ITyohSzHhqEyN3_Ipnl_REbRsiW0HdONk/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
You can test your script by clicking
execute. And if no errors occur go to your mysql database and check
for the data.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Once you have done writing the hive
script you can schedule it and save the query.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-cfFp119dTEDVwJtBrxIpWSyHIbFO1FSl4MH0Z33fFz_FTvSexhkioZ6NBYeCT7vRZhJ-nPhYzs4IPhoVX0nH12JA-pIYijn2fvtqtZ1LPx2DcAlV6dJFApKofWFSObHGzK4bA_6p_ag/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;442&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-cfFp119dTEDVwJtBrxIpWSyHIbFO1FSl4MH0Z33fFz_FTvSexhkioZ6NBYeCT7vRZhJ-nPhYzs4IPhoVX0nH12JA-pIYijn2fvtqtZ1LPx2DcAlV6dJFApKofWFSObHGzK4bA_6p_ag/s640/2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;Step 2 – Writing gadgets&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Once we have written our analytics, we
can write gadgets using gadget gen tool. 
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Go to Management Console -&amp;gt; Tools-&amp;gt;
Gadget gen tool&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Give your database credentials as shown
below&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2O8xYhFAijpt5UXR4TpxmBm_az0I77ExrEfzQ7cLAY8K-TsTE4vqu0vwj1SN-W6VjMg2WdUHIYOrCosz2VXZmU_Uecky1UUugXrF1vJqgNW7Dsx3Qh9DXbZoYuslBvLwW7k03M7O-jhM/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;334&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2O8xYhFAijpt5UXR4TpxmBm_az0I77ExrEfzQ7cLAY8K-TsTE4vqu0vwj1SN-W6VjMg2WdUHIYOrCosz2VXZmU_Uecky1UUugXrF1vJqgNW7Dsx3Qh9DXbZoYuslBvLwW7k03M7O-jhM/s640/3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Write your SQL script with your
analytical logic.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
In my case I am going to get a count of
number of log messages per priority.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
My SQL would look like&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
select count(tenantID), priority From
LogEvent group by priority;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeSsu5B3JCzV93lJg4HufApLTdtq-sEuvASk0K-7PnWWF5zymT_3YMPz3g5TkODHOGdgcWPCAxDDfjcPh7PPznhhQ5kspHQyaq5gnhACk645K9bX-dxJ4EIO3AflFw5e6n6PTawZigeIM/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;408&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeSsu5B3JCzV93lJg4HufApLTdtq-sEuvASk0K-7PnWWF5zymT_3YMPz3g5TkODHOGdgcWPCAxDDfjcPh7PPznhhQ5kspHQyaq5gnhACk645K9bX-dxJ4EIO3AflFw5e6n6PTawZigeIM/s640/4.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Click on next and select the type of UI
element you wont and fill the necessary information.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2sv7vEFl-nQEoo5XW2jTRMYzHkCtPian2OKOkBYR4LDgt6f10tTqg3mGzH8WE6Vy85Hm-BDNk18cuBBkN1U96aXDc1kRbdq-owVlwsjzFjVMbynnmUQJ1Gb4_a9U2vl1a_uIPIBKDIRo/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;330&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2sv7vEFl-nQEoo5XW2jTRMYzHkCtPian2OKOkBYR4LDgt6f10tTqg3mGzH8WE6Vy85Hm-BDNk18cuBBkN1U96aXDc1kRbdq-owVlwsjzFjVMbynnmUQJ1Gb4_a9U2vl1a_uIPIBKDIRo/s640/5.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Fill the gadget Details and Click on
generate to generate the gadget.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxbIBKfW3DalAZsizH20JxKDpyyx4fdArSugLE6s5zjanst9RiVaLt_cYe6_vItxSXO31YgP5uxgf-g5tc6hMmADwkNQpQvAWaGgFpXtY_gX4VLpCUSZbnztjso2Nf11EjZJNzYD2aacc/s1600/6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;288&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxbIBKfW3DalAZsizH20JxKDpyyx4fdArSugLE6s5zjanst9RiVaLt_cYe6_vItxSXO31YgP5uxgf-g5tc6hMmADwkNQpQvAWaGgFpXtY_gX4VLpCUSZbnztjso2Nf11EjZJNzYD2aacc/s640/6.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;Step 3 – Add gadgets to gadget&amp;nbsp;dashboard&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Once we create the gadget we can go
view the gadgets by adding the gadgets to the BAM dashboad. 
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Before we do that we need to add the
gadget to the gadget repository from the registry. When we create the
gadgets, gadgets will be saved in the registry repository therefore ,
we need to add them to the gadget repo.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Go to gadget Repository under gadgets
in BAM management console. And click on add gadget.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Give the needed infomation as shown below and add the gadget to gadget repository.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1ee3Bur9DGUvzB6mdyAYU5DDvvFzc3jzCq5KoFweRXS1NIffsa1-zmcgOqUZGzOVEs3Y65pRbaBmxQqqhnN8g9vfRsReeoEQYgXTtVJINuEy1AjJrcRjXbiA2kNSVIGNt_P3qKmyESlQ/s1600/8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1ee3Bur9DGUvzB6mdyAYU5DDvvFzc3jzCq5KoFweRXS1NIffsa1-zmcgOqUZGzOVEs3Y65pRbaBmxQqqhnN8g9vfRsReeoEQYgXTtVJINuEy1AjJrcRjXbiA2kNSVIGNt_P3qKmyESlQ/s640/8.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Then you can go to view portal -&amp;gt;
Add gadget from the gadget repo and view your gadgets.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYNZfCCxkD6RJ_5hTrIMKwaeaqwakqzaQNIiRE-Yk3KAK88dfPjrWrG0nB8xkhlwc0V6oEOqfmdedhxS7tDADnaGmByLFGSpuKhx4mI4ey4BTp1ahbf2WA6Y5wkrNypG59w2NL7gMQvwg/s1600/9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;404&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYNZfCCxkD6RJ_5hTrIMKwaeaqwakqzaQNIiRE-Yk3KAK88dfPjrWrG0nB8xkhlwc0V6oEOqfmdedhxS7tDADnaGmByLFGSpuKhx4mI4ey4BTp1ahbf2WA6Y5wkrNypG59w2NL7gMQvwg/s640/9.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/6672294855332866863/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/01/how-to-create-analytics-and-gadget.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/6672294855332866863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/6672294855332866863'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2013/01/how-to-create-analytics-and-gadget.html' title='How to Create Analytics and gadget Dashboard for Logs'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8jmOzu_8uCITdBEOzcOtmRswTBIKIfzWr34ia9rRw8FiIJAyfuhpa3CBPalHUeohAwshMEU9r9GIDxG63gSELt2IabvLdD2uApkqAiCEFP3ITyohSzHhqEyN3_Ipnl_REbRsiW0HdONk/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-4574432615894856612</id><published>2012-10-11T02:57:00.002-07:00</published><updated>2013-05-08T03:20:01.235-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Log4J"/><category scheme="http://www.blogger.com/atom/ns#" term="Logging"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 Stratos"/><title type='text'>How to configure MT-Logging with WSO2 Products</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Prerequisites&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Carbon 4.0.0 and above product&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;WSO2 BAM 2.0.0 and above&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Apache Server installed&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Introduction&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Stratos MT-Logging architecture provides a logging frame work to send logs to BAM. Which opens wide variety of possibilities when it comes to monitoring logs. In my previous &lt;a href=&quot;http://sparkletechthoughts.blogspot.com/2012/09/how-distributed-logging-works-in-wso2.html&quot;&gt;article&lt;/a&gt; I have explained &amp;nbsp;the architecture of Distributed Logging with WSO2 BAM, this tutorial explains how you can set up logging effectively for any WSO2 Product and how you can analyze and monitor logs effectively.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.15064072351126168&quot; style=&quot;background-color: transparent; color: orange; font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Architecture&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7sgkppXm4RN4WLXVpsdJAvLMhT7zAM49S7DfnnwHhkzkbA5Nhg3eTozqEVZY7Kmk1ZEmXqAvFuk2mF_KEhH7OjYO1fk4mMLig3ETRRuZz0IaZo93h3dnZPPxb9f4h8jtTR6GSD_cY0iY/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;452&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7sgkppXm4RN4WLXVpsdJAvLMhT7zAM49S7DfnnwHhkzkbA5Nhg3eTozqEVZY7Kmk1ZEmXqAvFuk2mF_KEhH7OjYO1fk4mMLig3ETRRuZz0IaZo93h3dnZPPxb9f4h8jtTR6GSD_cY0iY/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.15064072351126168&quot; style=&quot;background-color: transparent; font-size: 19px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.15064072351126168&quot; style=&quot;background-color: transparent; color: orange; font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Setting up Hadoop Server to host archived log files&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Once the logs are sent to BAM, we&amp;nbsp;analyse&amp;nbsp;the logs daily and send them to a file system. For better&amp;nbsp;performance&amp;nbsp;for archive logs&amp;nbsp;analytic,&amp;nbsp;we send archive logs to HDFS file system. So we can analyze archive logs using map reduce task (big data, long term data analysis).&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Please refer&lt;a href=&quot;http://sparkletechthoughts.blogspot.com/2013/02/how-to-configure-hadoop-cluster.html&quot;&gt; How to Configure Hadoop&lt;/a&gt; to see how we can configure a hadoop cluster, Once you have hadoop cluster you can give your hdfs&amp;nbsp;information in summarizer-config.xml. So it will&amp;nbsp;automatically&amp;nbsp;analyse&amp;nbsp;your daily logs and send them to HDFS file system&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Summarizer Configuration for log archiving.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;lt;cronExpression&amp;gt;0 0 1 ? * * *&amp;lt;/cronExpression&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;lt;tmpLogDirectory&amp;gt;/home/usr/temp/logs&amp;lt;/tmpLogDirectory&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;b&gt;&amp;lt;hdfsConfig&amp;gt;hdfs://localhost:9000&amp;lt;/hdfsConfig&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;b&gt;&amp;lt;archivedLogLocation&amp;gt;/stratos/archivedLogs/&amp;lt;/archivedLogLocation&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;lt;bamUserName&amp;gt;admin&amp;lt;/bamUserName&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;lt;bamPassword&amp;gt;admin&amp;lt;/bamPassword&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;cronExpression - The schedule time, that summarizer runs daily&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;hdfsConfig - hdfs file server&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;intimation&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;archivedLogLocation - HDFS file patch which the archived logs should be saved&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.15064072351126168&quot; style=&quot;background-color: transparent; font-size: 19px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.15064072351126168&quot; style=&quot;background-color: transparent; color: orange; font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Setting up Log4jAppender - Server Side (AS/ESB/GREG/etc)&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;
To publish log events to BAM, log4j appender should be configured in each server. In order to do that you need to add&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;LogEvent&amp;nbsp;&lt;/span&gt;to the root logger and configure the LogEvent credential accordingly.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;
Add
 LogEvent to the root logger in log4j&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #d5a6bd; font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;Go to Server_Home/repository/con 
-&amp;gt; log4j.properties and LOGEVENT to log4j root logger (or replace the
 following line) &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #d5a6bd; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;log4j.rootLogger=INFO, CARBON_CONSOLE, CARBON_LOGFILE, CARBON_MEMORY, CARBON_SYS_LOG,&lt;/span&gt;&lt;span style=&quot;background-color: yellow; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;LOGEVENT&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: yellow; color: black; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;Add
 Data publishing URLs and credentials&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;Go to &amp;nbsp;Server_Home/repository/con
 -&amp;gt; log4j.properties. Modify LOGEVENT appender’s &amp;nbsp;LOGEVENT.url as BAM
 Server thrift URL,LOGEVENT.userName, .LOGEVENT.password &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;log4j.appender.LOGEVENT=org.wso2.carbon.logging.appender.LogEventAppender&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;log4j.appender.LOGEVENT.url=tcp://localhost:7611&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;log4j.appender.LOGEVENT.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;log4j.appender.LOGEVENT.columnList=%T,%S,%A,%d,%c,%p,%m,%H,%I,%Stacktrace&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;log4j.appender.LOGEVENT.userName=admin&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;log4j.appender.LOGEVENT.password=admin&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Enabling the Log Viewer&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;When the log viewer is not enable to take logs from cassandra the default behaviour of the log viewer to take logs from the carbon memory. It will only display the most recent logs of the carbon server. To get&amp;nbsp;persistence&amp;nbsp;logs (logs which are&amp;nbsp;coming&amp;nbsp;from the current date) you need to enable isLogsFromCassandra true so that you can view persistance logs through the management console of any carbon server&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;(ESB/DSS/AS etc) . And also you need to give the user credentials of the cassandra server as shown below.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Change Logging-Config.xml to View Logs from BAM.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Got to Server_Home/repository/con/etc-&amp;gt; Logging-config.xml&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Enable isDataFromCassandra&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;isdatafromcassandra&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;isDataFromCassandra&amp;gt;true&amp;lt;/isDataFromCassandra&amp;gt;&lt;/span&gt;&lt;/isdatafromcassandra&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Give cassandra url of BAM Server&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;cassandrahost&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;cassandraHost&amp;gt;localhost:9160&amp;lt;/cassandraHost&amp;gt;&lt;/span&gt;&lt;/cassandrahost&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Give BAM Server user credentials to access Cassandra Server in BAM&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&amp;lt;userName&amp;gt;admin&amp;lt;/userName&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&amp;lt;password&amp;gt;admin&amp;lt;/password&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Give hadoop hdfs &amp;nbsp;hosted url for the logs viewer&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;archivedHost&amp;gt;hdfs://localhost:9000&amp;lt;/archivedHost&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;archivedHDFSPath&amp;gt;/stratos/logs&amp;lt;/archivedHDFSPath&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h3 style=&quot;font-size: 15px; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange; font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 19px; font-weight: bold;&quot;&gt;Setting up Logging Analyzer - WSO2 BAM Side&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange; font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&lt;b&gt;Setting up BAM&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div style=&quot;font-size: 15px; font-weight: normal;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;Bind IPs for cassandra {This is not logging related, this is just to bind an ip address to cassandra so that cassandra will not start in localhost}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div style=&quot;font-size: 15px; font-weight: normal;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div style=&quot;font-size: 15px; font-weight: normal;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;Copy cassandra.yaml from {WSO2_BAM_HOME}/repository/components/features/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div style=&quot;font-size: 15px; font-weight: normal;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;org.wso2.carbon.cassandra.server_4.0.1/conf/cassandra.yaml to repository/conf/etc. Change the&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px; font-weight: normal;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;IP address (localhost) to the correct ip address of BAM of listen_address and rpc_address&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;font-size: 15px; font-weight: normal;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;div style=&quot;font-size: 15px; font-weight: normal;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Copy cassandra-component.xml from {WSO2_BAM_HOME}/repository/components/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;
&lt;div style=&quot;font-size: 15px; font-weight: normal;&quot;&gt;
features/org.wso2.carbon.cassandra.dataaccess_4.0.1/conf/cassandra-component.xml to&lt;/div&gt;
&lt;div style=&quot;font-size: 15px; font-weight: normal;&quot;&gt;
repository/conf/etc. Change the IP address (localhost) to the correct ip address of BAM of&lt;/div&gt;
&lt;div style=&quot;font-size: 15px; font-weight: normal;&quot;&gt;
&lt;nodes&gt;192.168.4.148:9160&lt;/nodes&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px; font-weight: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;b&gt;In&lt;/b&gt;&lt;b&gt;stalling Logging&amp;nbsp;Summarizer&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #eed0ee; font-size: 14px; font-weight: normal; line-height: 19px;&quot;&gt;Download&amp;nbsp;&lt;a href=&quot;http://dist.wso2.org/p2/carbon/releases/4.0.1/p2-repo.zip&quot; style=&quot;color: blue; text-decoration: none;&quot;&gt;P2 Profile&amp;nbsp;&lt;/a&gt;which will contain &amp;nbsp;Logging summarizer features. Install logging.summarizer feature through Management Console (&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #eed0ee; font-size: 14px; line-height: 19px;&quot;&gt;Go to Configure -&amp;gt; Features and Click on Add Repository).&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #eed0ee; font-size: 14px; line-height: 19px;&quot;&gt;Once you add the repository you will be redirected to a page which contains available features. Select bam summarizer feature and install it.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Change the logging config.xml&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&amp;lt;isDataFromCassandra&amp;gt;true&amp;lt;/isDataFromCassandra&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;Change log rotation paths, give the log directory as apache log rotation directory, and give BAM user&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;name password credentials&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&amp;lt;publisherURL&amp;gt;tcp://localhost:7611&amp;lt;/publisherURL&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&amp;lt;publisherUser&amp;gt;admin&amp;lt;/publisherUser&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&amp;lt;publisherPassword&amp;gt;admin&amp;lt;/publisherPassword&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&amp;lt;logDirectory&amp;gt;/home/usr/apache/logs/&amp;lt;/logDirectory&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;
&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&amp;nbsp;&amp;lt;tmpLogDirectory&amp;gt;/home/usr/temp/logs&amp;lt;/tmpLogDirectory&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;b style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: 15px;&quot;&gt;Point BAM to external hdfs file server&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;ow the logging is configured in both publisher and&amp;nbsp;receiver, and you can view your logs by log-in into&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;In order to point the analyzers to the hdfs file system you need to update BAM_HOME/r&lt;/span&gt;epository/conf/&lt;wbr&gt;&lt;/wbr&gt;advanced/hive-site.xml to point it to your hdfs file system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;property&amp;gt;&lt;br /&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;br /&gt;
&amp;nbsp; &amp;lt;name&amp;gt;fs.default.name&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;value&amp;gt;hdfs://localhost:9000&amp;lt;/value&amp;gt;&lt;br /&gt;
&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Now the logging is configured in both publisher and&amp;nbsp;receiver, and you can view your logs by log-in into management console. And view System Logs - This will view the current logs as well as archived logs taken from the apache server. &amp;nbsp;Logs are daily archived to the apache server through a cron job.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;If you want to analyze logs using hive analytics, and display in&amp;nbsp;dashboards&amp;nbsp;you can use bam analytics tools and&amp;nbsp;dashboard&amp;nbsp;tool kits to customize Logging KPIs for system&amp;nbsp;administration.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/4574432615894856612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2012/10/how-to-configure-mt-logging-with-wso2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/4574432615894856612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/4574432615894856612'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2012/10/how-to-configure-mt-logging-with-wso2.html' title='How to configure MT-Logging with WSO2 Products'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7sgkppXm4RN4WLXVpsdJAvLMhT7zAM49S7DfnnwHhkzkbA5Nhg3eTozqEVZY7Kmk1ZEmXqAvFuk2mF_KEhH7OjYO1fk4mMLig3ETRRuZz0IaZo93h3dnZPPxb9f4h8jtTR6GSD_cY0iY/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-1142224323384433331</id><published>2012-09-26T19:51:00.001-07:00</published><updated>2013-03-09T18:37:37.377-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Log4J"/><category scheme="http://www.blogger.com/atom/ns#" term="Logging"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 BAM 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 Stratos"/><title type='text'>How Distributed Logging Works in WSO2 Stratos. </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px; font-weight: bold;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;Why we need distributed Logging ???????&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;a href=&quot;http://wso2.com/cloud/stratos/&quot;&gt;Stratos &lt;/a&gt;is a distributed clustered
setup where we have several applications such as ESB Servers,Application
Servers, Identity Servers, Governance Servers, Data Services Sever etc&amp;nbsp; deployed together to work with each other to serve as Platform as a Service.  Each of these
servers are deployed in  a clustered environment, where there will be
more than one node for a given server and depending on  the need,
there will be new nodes spawned dynamically inside this cluster. And all these servers are fronted through an Elastic load balancer and depending on the request the load balancer will send requests to a selected node in a round robin fashion.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbROvUm8Axh7kOxg8d8Uu1TG4DhCzxm7kkFBYwX8LqUIvmIb_gOkyfeAYD-QbvZtYlyJunwLvajI5icw8SCJJmHKHhwJAbRrbvLakxQ52l_kdQB5xDQO5j8gmrAWpFvmuzsv15Fc2mCdI/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;449&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbROvUm8Axh7kOxg8d8Uu1TG4DhCzxm7kkFBYwX8LqUIvmIb_gOkyfeAYD-QbvZtYlyJunwLvajI5icw8SCJJmHKHhwJAbRrbvLakxQ52l_kdQB5xDQO5j8gmrAWpFvmuzsv15Fc2mCdI/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
What would you do when there is an
error occurs in a deployment like above where there are 13 different
types of servers running in production and each of these servers are
clustered and load balanced across 50+ servers?. This would be a
nightmare for the system administrators to log-in into each server
and grepping for the logs to identify the exact caused of the error.
This is why distributed application deployment&#39;s&amp;nbsp; needs to keep a centralized
application logs. These centralize logs should also be kept in a high scalable data storage in an ordered manner with easy access.So that the users (administrators,developers) can easily accesses&amp;nbsp; logs, whenever something goes unexpected, with the least amount of filtering&amp;nbsp; to pinpoint the exact cause of the issue.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
When designing a logging&amp;nbsp;
system like above, there are several things you need to consider.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Capturing the right information
 inside the LogEvent – You have to make sure all the information
 you need in order to monitor your logs is aggregated in the LogEvent. For
 example in a cloud deployment setup you have to make sure not only the basic log details(logger,date,log level) are not enough to&amp;nbsp; point a critical issue. You further needs tenant information (user/domain), Host information (to
 identify which node is sending what), Name of the server (from which
 server you are getting the log) etc. These information is
 very critical when it comes to analyzing and monitor logs in an efficient way.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Send logs to a centralized system
 in a nonblocking asynchronous manner so that monitoring will not
 affect the performance of the applications.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
High availability and Scalability&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Security – Stratos can be
 deployed and hosted in public clouds therefore, its important to
 make sure the logging system is high secured.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
How to display system/application logs in an efficient way with filtering options along with log rotation.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Those are the 5 main aspects which were
mainly concerned when designing the distributed logging architecture.
Since &lt;a href=&quot;http://wso2.com/cloud/stratos/&quot;&gt;Stratos &lt;/a&gt;support multitenancy we made sure that logs can be
separated by tenants, services, and applications.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px; font-weight: bold;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-size: 19px; font-weight: bold;&quot;&gt;&lt;b&gt;MT-Logging with WSO2 BAM 2.0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;a href=&quot;http://wso2.com/products/business-activity-monitor/&quot;&gt;WSO2 BAM 2.0&lt;/a&gt; provide a rich set of tool for
aggregation, analyzing and presentation for  large scale data sets and any monitoring scenario can be easily modeled according to the BAM architecture. We selected &lt;a href=&quot;http://wso2.com/products/business-activity-monitor/&quot;&gt;WSO2 BAM&lt;/a&gt; as the backbone of our logging architecture mainly because it provides high performance with  non intrusiveness along with high scalability and security. Since those are the crucial factors essential for a distributed logging system &lt;a href=&quot;http://wso2.com/products/business-activity-monitor/&quot;&gt;WSO2 BAM&lt;/a&gt; became the idol candidate for MT-Logging architecture. &lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLvNXrP9WEG3HwR9NaGQTGEh8pJFzwxiAajAUEVXXokQqzMF5MvWXvCOXG9bMZwiLnaKBrn5SvuqDovaawcGJ1NnliUwusM3x38-vG8_oSZQnDDEeW3BPQobRfMNQh2ji2w3o8AsJmEJ8/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLvNXrP9WEG3HwR9NaGQTGEh8pJFzwxiAajAUEVXXokQqzMF5MvWXvCOXG9bMZwiLnaKBrn5SvuqDovaawcGJ1NnliUwusM3x38-vG8_oSZQnDDEeW3BPQobRfMNQh2ji2w3o8AsJmEJ8/s1600/1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;Publishing Logs to BAM&lt;/b&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
We implemented a Log4JAppender to send
LogEvents to bam. There we used BAM Data agents get Log Data across
to BAM. BAM data agents send data using thrift protocol which gives
us high performance message through put as well as it is non blocking
and asynchronous.  When publishing Log events to BAM we make sure the
Data Stream is created per tenant, per server, per date. When the  
data stream is initialized there will be a unique column family
created per tenant, per server per date and the logs will be stored
in  that column family in a predefine keyspace in cassandra cluster.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi57e5wTgafLr-6jm-jhBaXb7mVbBMDSTuockKmPWRWQWm9XzLzbJuVtVNXcpmn6zcu3kPCGBPt0COu7j4DHB7Kd8TxNdlUApGk-14fWDdO3V10HHFMbNc0_MjxppRuAlbNrG7ONqGCdCk/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;307&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi57e5wTgafLr-6jm-jhBaXb7mVbBMDSTuockKmPWRWQWm9XzLzbJuVtVNXcpmn6zcu3kPCGBPt0COu7j4DHB7Kd8TxNdlUApGk-14fWDdO3V10HHFMbNc0_MjxppRuAlbNrG7ONqGCdCk/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
The Data stream defines the set of information which needs to be stored for a particular LogEvent and can
be modeled into a Data Model.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;Data Model which is used for Log Event.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace; font-size: x-small;&quot;&gt;{&#39;name&#39;:&#39;log.
tenantId.
applicationName.date&#39;,&#39;version&#39;:&#39;1.0.0&#39;,
&#39;nickName&#39;:&#39;Logs&#39;,
&#39;description&#39;:&#39;Logging Event&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;   &#39;metaData&#39;:[{&#39;name&#39;:&#39;clientType&#39;,&#39;type&#39;:&#39;STRING&#39;}
],&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&#39;payloadData&#39;:[&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; {&#39;name&#39;:&#39;tenantID&#39;,&#39;type&#39;:&#39;STRING&#39;},
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; {&#39;name&#39;:&#39;serverName&#39;,&#39;type&#39;:&#39;STRING&#39;},
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; {&#39;name&#39;:&#39;appName&#39;,&#39;type&#39;:&#39;STRING&#39;},
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; {&#39;name&#39;:&#39;logTime&#39;,&#39;type&#39;:&#39;LONG&#39;},
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; {&#39;name&#39;:&#39;priority&#39;,&#39;type&#39;:&#39;STRING&#39;},
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; {&#39;name&#39;:&#39;message&#39;,&#39;type&#39;:&#39;STRING&#39;},
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; {&#39;name&#39;:&#39;logger&#39;,&#39;type&#39;:&#39;STRING&#39;},
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; {&#39;name&#39;:&#39;ip&#39;,&#39;type&#39;:&#39;STRING&#39;},
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; {&#39;name&#39;:&#39;instance&#39;,&#39;type&#39;:&#39;STRING&#39;},
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; {&#39;name&#39;:&#39;stacktrace&#39;,&#39;type&#39;:&#39;STRING&#39;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;] }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;


 
 &lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-size: medium; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;We extend
&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;org.apache.log4j.PatternLayout
&lt;/span&gt;a in order to capture tenant information, server
information and node information  and wrap it with log4j LogEvent.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;font-size: medium; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: inherit;&quot;&gt;&lt;b&gt;Log Rotation and Archiving&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;font-size: medium; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Once we send the log events to BAM the
logs will be saved in a Cassandra cluster. &lt;a href=&quot;http://wso2.com/products/business-activity-monitor/&quot;&gt;WSO2 BAM&lt;/a&gt; provides a rich
set of tools to create analytic and schedule task. Therefore, we used
these hadoop task to rotate logs daily and archive them and store it
in a secure environment. In order to do that we use a hive query
which will run daily as a cron job. It will read Cassandra data
store, retrieve all the column families per tenant per application
and archive them in to gzip format.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: &#39;Times New Roman&#39;; font-size: medium; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; margin-bottom: 0cm;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOwLkSJs5S5UFzJSfBxN03NLcHQ_hseNOHVNVK6P1dv8p_cpmtJp06TwhjaM5WZ0X5P-K1_MJfluLfCa5Zz5R2zTnogbEJ_NydXK1Schj2n3NPQDTvRQ0KIFFwzD3dLEGbSFDGXBNm4qU/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;478&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOwLkSJs5S5UFzJSfBxN03NLcHQ_hseNOHVNVK6P1dv8p_cpmtJp06TwhjaM5WZ0X5P-K1_MJfluLfCa5Zz5R2zTnogbEJ_NydXK1Schj2n3NPQDTvRQ0KIFFwzD3dLEGbSFDGXBNm4qU/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: medium; margin-bottom: 0cm;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: medium; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;The hive Query which is used to rotate
logs daily&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: medium; margin-bottom: 0cm;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;set logs_column_family = %s;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt; &lt;/span&gt;set file_path= %s;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt; &lt;/span&gt;drop table LogStats;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt; &lt;/span&gt;set mapred.output.compress=true;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt; &lt;/span&gt;set hive.exec.compress.output=&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;true;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt; &lt;/span&gt;set mapred.output.compression.&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;codec=org.apache.hadoop.io.&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;compress.GzipCodec;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt; &lt;/span&gt;set io.compression.codecs=org.&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;apache.hadoop.io.compress.&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;GzipCodec;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt; &lt;/span&gt;CREATE EXTERNAL TABLE IF NOT EXISTS LogStats (key STRING,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;payload_tenantID STRING,payload_serverName STRING,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;payload_appName STRING,payload_message STRING,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;payload_stacktrace STRING,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;payload_logger STRING,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;payload_priority STRING,payload_logTime BIGINT)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;STORED BY &#39;org.apache.hadoop.hive.&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;cassandra.&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;CassandraStorageHandler&#39;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;WITH SERDEPROPERTIES ( &quot;cassandra.host&quot; = %s,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;&quot;cassandra.port&quot; = %s,&quot;&lt;a href=&quot;http://cassandra.ks.name/&quot; target=&quot;_blank&quot;&gt;cassandra.ks.name&lt;/a&gt;&quot; = %s,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;&quot;cassandra.ks.username&quot; = %s,&quot;cassandra.ks.password&quot; = %s,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;&quot;&lt;a href=&quot;http://cassandra.cf.name/&quot; target=&quot;_blank&quot;&gt;cassandra.cf.name&lt;/a&gt;&quot; = ${hiveconf:logs_column_family}&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;&quot;cassandra.columns.mapping&quot; =&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;&quot;:key,payload_tenantID,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;payload_serverName,payload_&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;appName,payload_message,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;payload_stacktrace,payload_&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;logger,payload_priority,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;payload_logTime&quot; );&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt; &lt;/span&gt;INSERT OVERWRITE &amp;nbsp;DIRECTORY &#39;file:///${hiveconf:file_path}&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&#39;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;select&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;concat(&#39;TID[&#39;,payload_&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;tenantID, &#39;]\t&#39;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;&#39;Server[&#39;,payload_serverName,&#39;&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;]\t&#39;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;&#39;Application[&#39;,payload_&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;appName,&#39;]\t&#39;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;&#39;Message[&#39;,payload_message,&#39;]\&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;t&#39;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;&#39;Stacktrace &#39;,payload_stacktrace,&#39;\t&#39;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;&#39;Logger{&#39;,payload_logger,&#39;}\t&#39;&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;&#39;Priority[&#39;,payload_priority,&#39;&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;]\t&#39;),&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;concat(&#39;LogTime[&#39;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;(from_unixtime(cast(payload_&lt;/span&gt;&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;logTime/1000 as BIGINT),&#39;yyyy-MM-dd HH:mm:ss.SSS&#39; )),&#39;]\n&#39;) as LogTime from LogStats&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;ORDER BY LogTime&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;


 
 &lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Once we archived the logs we will send
these archived logs to HDFS file system. The archived logs can be further&amp;nbsp;&lt;/span&gt;analysed&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;using map-reduce jobs, for long term data analytics&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: monospace; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpxGit902k-LDpjyiFNXwiWsmygS1RC_0-UcNPeDtjbKfNHdYrCH-N9dIBjsc3PzUC5pWdE0OaVV4CCVGcqHxaQ5IWROGGW6gOwBJozbnDH7qkafWt9iVtOQ3cXQgDcn0JU1sZ6kWFiyY/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpxGit902k-LDpjyiFNXwiWsmygS1RC_0-UcNPeDtjbKfNHdYrCH-N9dIBjsc3PzUC5pWdE0OaVV4CCVGcqHxaQ5IWROGGW6gOwBJozbnDH7qkafWt9iVtOQ3cXQgDcn0JU1sZ6kWFiyY/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: inherit;&quot;&gt;Advantages of sending Logs to WSO2 BAM&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Asynchronous and None Blocking Data
publishing&lt;/li&gt;
&lt;li&gt;Receives and Stores Log Events
Cassandra Cluster which is high scalable and a big Data Repository&lt;/li&gt;
&lt;li&gt;Rich tools set for analytics&lt;/li&gt;
&lt;li&gt;Can be shared with &lt;a href=&quot;http://wso2.com/products/complex-event-processing-server/&quot;&gt;CEP &lt;/a&gt;for real time
Log Event analysis. &lt;/li&gt;
&lt;li&gt;Can provide Logging tool boxes and
dashboards for system&amp;nbsp;administrators&amp;nbsp;using WSO2 BAM&lt;/li&gt;
&lt;li&gt;High performance and non-intrusiveness&lt;/li&gt;
&lt;li&gt;Big data analysis&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;Daily log information&amp;nbsp;analytic&amp;nbsp;-&amp;nbsp;Analyse&amp;nbsp;cassandra data storage&lt;/li&gt;
&lt;li&gt;Long term log information -&amp;nbsp;Analyse&amp;nbsp;HDFS file system using map-reduce&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;h3 style=&quot;font-size: 15px; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;
Monitoring and Analyzing System Logs&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Using the Log Viewer&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Both application and system logs can
  be displayed using the management console of a given product.
  Simply log-in to Management console and under monitor there are two
  links 1. System logs which has system logs of the running server 2)
  Application Logs which has application level logs (this can be
  services/web applications) for a selected application. This makes
  it easy for users to filter logs by the application they develop
  monitor logs up to application level.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Dashboards and Reports&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
System administrators can log-in
 to &lt;a href=&quot;http://wso2.com/products/business-activity-monitor/&quot;&gt;WSO2 BAM&lt;/a&gt; and create their own dashboards and reports, so the can
 monitor their logs according to their Key performance Indicators.
 For example if they want to monitor number of fatal errors occur per
 given month for a given node.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
SMS Alerts and Emails&lt;br /&gt;
Not just dashboards and Reports
 ... Combining &lt;a href=&quot;http://wso2.com/products/business-activity-monitor/&quot;&gt;WSO2 BAM&lt;/a&gt; with &lt;a href=&quot;http://wso2.com/products/complex-event-processing-server/&quot;&gt;WSO2 CEP&lt;/a&gt; you can get real time alerts like trigger emails, SMS so that System administrators can instantly get to know when your system is going through an unexpected behavior.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-size: 15px; margin-bottom: 0cm;&quot;&gt;
View Logs Using the Log Viewer - Current Log
&lt;/div&gt;
&lt;div style=&quot;font-size: 15px; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGtPmtnn0UbJlhgondkfzaUzM6SecOPo3oUcs3TQMPZGwcXG_lZCydnSb91TY4_FzranXmM_oI4cqXx97NRpOq837EBQui4En6ofd3N2Oc_Pp0WsasvRNxYs_6U3PMKEqbpocIE3gqDXQ/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;256&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGtPmtnn0UbJlhgondkfzaUzM6SecOPo3oUcs3TQMPZGwcXG_lZCydnSb91TY4_FzranXmM_oI4cqXx97NRpOq837EBQui4En6ofd3N2Oc_Pp0WsasvRNxYs_6U3PMKEqbpocIE3gqDXQ/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px; margin-bottom: 0cm;&quot;&gt;
View Logs Using the Log Viewer - Archived Logs&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcyA8b2jX_XAGp06UEYzzjJdc3eJeJ22L4zqj1jikwJiIO0GXq44hHPUfLNmEeXdei0ItmpF2j0gl2e5QerPIktQ8O4OC6D9l3IekWXG2mnrsk2DCU_jNEhHoEC9rRRg4ACzf6AK8edMg/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;145&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcyA8b2jX_XAGp06UEYzzjJdc3eJeJ22L4zqj1jikwJiIO0GXq44hHPUfLNmEeXdei0ItmpF2j0gl2e5QerPIktQ8O4OC6D9l3IekWXG2mnrsk2DCU_jNEhHoEC9rRRg4ACzf6AK8edMg/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;All these rich set of monitoring
capabilities can be in built into your deployment using Stratos
Distributed Logging system. Where you don’t have to worry about
always going to the system administrators for logs whenever something
goes wrong in your application :).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDLv_1in822NSTJIDDdW25F3GEQXLSaTdFoDT8T51PwMTxDh_9u2qVeohET1P8AOaAN2m-B442STtiK4wD7Cn88_-r7f4wH-zUqPYiltIcDU09wXIHUX86fkZF_8SoRBmq43c1wr6xLL8/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDLv_1in822NSTJIDDdW25F3GEQXLSaTdFoDT8T51PwMTxDh_9u2qVeohET1P8AOaAN2m-B442STtiK4wD7Cn88_-r7f4wH-zUqPYiltIcDU09wXIHUX86fkZF_8SoRBmq43c1wr6xLL8/s1600/1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-size: 15px; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/1142224323384433331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2012/09/how-distributed-logging-works-in-wso2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/1142224323384433331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/1142224323384433331'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2012/09/how-distributed-logging-works-in-wso2.html' title='How Distributed Logging Works in WSO2 Stratos. '/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbROvUm8Axh7kOxg8d8Uu1TG4DhCzxm7kkFBYwX8LqUIvmIb_gOkyfeAYD-QbvZtYlyJunwLvajI5icw8SCJJmHKHhwJAbRrbvLakxQ52l_kdQB5xDQO5j8gmrAWpFvmuzsv15Fc2mCdI/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-3771234172265061852</id><published>2012-09-11T19:42:00.001-07:00</published><updated>2013-10-15T07:06:12.262-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Business Activity Monitoring"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 BAM"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 BAM 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 ESB"/><title type='text'>Sneak  Peek at WSO2 BAM 2.0 &amp; How to Install BAM Data Agents in WSO2 Products</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;title&gt;&lt;/title&gt;
 
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 &lt;/style&gt;
 &lt;/div&gt;
In a fast growing company, enterprise
data plays a major role when it comes for decision making and other
top level business activities. When I say enterprise data, it can be
anything which is an asset to your company, for example&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
It can be the data coming into
 your system (Employee Information, Product Information Sales data
 etc)&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
It can be mediation data  (who is
 accessing your services/application, when and how)&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Request,response and faulty count
 for your services.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
These row data can be crucial and also
it is very important to analyze and convert these data into
information in order provide business intelligence for decision
makers.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
WSO2 BAM is mostly used in SOA
environments because when it comes to SOA environment monitoring your
data means monitor your services. Most of your business
functionalites are exposed as services, for example if you want to
insert set of records to your data base you will expose set of data
services to do it or if you want to mediate some services you need to
create proxy service. You can monitor these kind of data using WSO2
Buisness activity monitor Server.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
If you look at BAM highlevel
architecture BAM can be modelled according to three major components&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Aggregation – BAM Data Agents
 which publish data in to BAM Data storage&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Analytics  - Analyzers which
 analyzed Data in BAM storage&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Presentation – Gadgets which
 displays key performance indicators of analyzed information&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_3KMdbdXajccbEi3Cp9_H357Isf2TkbKMgpcsRw1747jX0XddBZobqvNHGGrINDKmJXloe8IKEyEy5sKcwnZxpS7WcAmVRv1MnvmD2UqM0u0lnBAtYpR8tbIINQsIcmnDB2XqaSlh_kk/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_3KMdbdXajccbEi3Cp9_H357Isf2TkbKMgpcsRw1747jX0XddBZobqvNHGGrINDKmJXloe8IKEyEy5sKcwnZxpS7WcAmVRv1MnvmD2UqM0u0lnBAtYpR8tbIINQsIcmnDB2XqaSlh_kk/s640/1.png&quot; width=&quot;443&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
You can monitor any business modeling
scenario according to these components and BAM architecture is
modelled around these three components.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;Aggregation&lt;/b&gt; – basically this means
getting your data into BAM (capturing/collecting data into BAM). BAM
data are sent using events, you can capture important set of data and
make it as an event stream. I will give more details on events stream
in my next posts :) but for the moment all you need to know is
capture many data as possible when you are sending data to BAM more
data means more business intelligence.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;Analytics&lt;/b&gt; – After you capture your
data you need to make your data meaningful (basically converting data
into information) by analyzing your storage data. In order to do that
you need to do some data operation (aggregation, merging, sorting
ordering) and ultimately build some key performance indicators which
will be needed for business intelligence. In BAM you will be able to
write your own analyzers (custom analyzers) using hive/hadoop and
also these queries can be saved and scheduled accordingly. We will
dig deep into how to write hive queries using bam and how to analyze
data and create KPIs using data in future.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;Presentation&lt;/b&gt; – Once you analyze your
data, you might need to visualize your KIPs (using bar charts tables)
and build your own dashboards in order to visualize your information
to decision makers. And not just visualizing you might need to send
these analyzed data to needed parties using reporting alerts daily to
the topper management etc. WSO2 BAM will provide rich set of tools to
do those task without much coding effort. It provides a gadget editor
tool which give you a drag and drop kind of way to create your
gadgets from your analyzed data or you can connected to reporting o
do some complex event processing and send emails etc just by using
set of configurations.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2rOa_9tM0KsOmZ54FIDhZGVGZBgig00HrcGYpr96NbCLrrqrMhHUtukyUFsX_xnEglGjR6PaZmk2S7MCPlWta7BoxBg3YNIAiTfqu99JXS8cKqZ_2pgxtUxASTQTOwcFe7iavV2FuQkc/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;444&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2rOa_9tM0KsOmZ54FIDhZGVGZBgig00HrcGYpr96NbCLrrqrMhHUtukyUFsX_xnEglGjR6PaZmk2S7MCPlWta7BoxBg3YNIAiTfqu99JXS8cKqZ_2pgxtUxASTQTOwcFe7iavV2FuQkc/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Referance&amp;nbsp;http://mackiemathew.files.wordpress.com/2012/01/bamarchitecture.png&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Now that we discussed the main
architecture behind BAM and also bit about the functionalities of BAM
(you can go through BAM samples and install bam &lt;a href=&quot;http://docs.wso2.org/wiki/display/BAM200/Samples&quot;&gt;samples&lt;/a&gt;
 in order to get in depth knowledge on BAM)&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Lets&amp;nbsp;see how we can use BAM to monitor your
services.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
For this I am going to use WSO2 ESB and
we will see how we can monitor service statistics using BAM.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
First we need to install BAM data
agents inside ESB.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;
How to install BAM data agents in ESB?&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Download &lt;a href=&quot;http://dist.wso2.org/p2/carbon/releases/&quot;&gt;P2 Profile &lt;/a&gt;which will contain
BAM Data agent features.  Download &lt;a href=&quot;http://dist.wso2.org/products/enterprise-service-bus/4.5.0/wso2esb-4.5.0.zip&quot;&gt;WSO2 ESB &lt;/a&gt;Latest packs. Go to
ESB_HOME/bin and start up the server. 
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Login to Management Console of WSO2 ESB
using user credentials (default is admin, admin). &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Go to Configure -&amp;gt; Features and
Click on Add Repository.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXFn27Qz2H8mlPoiNbTBs_K-HoBXYuXNaOg9iKXjj18j5bK0lv_N_vlWlnRzfzp8JVeimArKMSs5fmDvBwPLdUthOOPGSV-FjvrozI-02srF5go2RRd1MWHQEeCGqmVXmSrTcpMdLaURY/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;165&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXFn27Qz2H8mlPoiNbTBs_K-HoBXYuXNaOg9iKXjj18j5bK0lv_N_vlWlnRzfzp8JVeimArKMSs5fmDvBwPLdUthOOPGSV-FjvrozI-02srF5go2RRd1MWHQEeCGqmVXmSrTcpMdLaURY/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Click on add Repository, You need to give a meaningful name for the repository name, I am going to give it as My_REPO and give the path to your&amp;nbsp;&lt;a href=&quot;http://dist.wso2.org/p2/carbon/releases/4.0.1/p2-repo.zip&quot;&gt;P2 Profile&lt;/a&gt;&amp;nbsp;and click on add.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRzIVXUT3ihZySRjm-Mv9SpXYhYQ0n_gt7SsAOncIZolCZSP1NhMIV8vj3ZZwZKqpvbR2KqQqgcLKE_2W-t71Q54z1KaKKIz2jobGhuHrK2sqOzN5-cNxZy_Z8_7aG6XhzemrhyKIiGkc/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;165&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRzIVXUT3ihZySRjm-Mv9SpXYhYQ0n_gt7SsAOncIZolCZSP1NhMIV8vj3ZZwZKqpvbR2KqQqgcLKE_2W-t71Q54z1KaKKIz2jobGhuHrK2sqOzN5-cNxZy_Z8_7aG6XhzemrhyKIiGkc/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Once you add the repository you will be redirected to a page which contains available features. You need to install BAM data agent features therefore, type BAM on&amp;nbsp;Filter by feature name and untick group feature by category and click on find.&lt;br /&gt;
&lt;br /&gt;
Tick on following features&amp;nbsp;BAM Mediation Data Agent Aggregate,&amp;nbsp;BAM Mediator Aggregated,BAM Service Data Agent Aggregate and click install.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc8Cm_k9Q49Sy-JKluaq78chbP6QQDwQmk6UrrIM_kqpX7K_da6Lh5-2QmUFiKskBcu7L1UsWz-Os_CPyXTffv3JiksJh_VarAdjIBySp3BersK8pYfUoiT40pQc3kEkNOn2phFg7zSzM/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;155&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc8Cm_k9Q49Sy-JKluaq78chbP6QQDwQmk6UrrIM_kqpX7K_da6Lh5-2QmUFiKskBcu7L1UsWz-Os_CPyXTffv3JiksJh_VarAdjIBySp3BersK8pYfUoiT40pQc3kEkNOn2phFg7zSzM/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Read and accept &amp;nbsp;License Agreement and click next. Once the installation is finished restart the server.&lt;/div&gt;
&lt;br /&gt;
Once you have installed the BAM data agents you will see newly installed features under Configure.&lt;br /&gt;
1. Service Data Publishing, 2. Mediation Data Publishing 3. BAM Server Profiling.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;
How to Configure Service Data Agent ?&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
You can click on Service Data Publishing to send your Service Data to WSO2 BAM. In order to do that you need to Download and Start up BAM (if you are running ESB on the same machine you need to change the offset{BAM_HOME-&amp;gt;repository-&amp;gt;conf-&amp;gt;carbon.xml set offset to 1}.&lt;br /&gt;
&lt;br /&gt;
Go to ${WSO2ESB_HOME}/repository/conf/etc and open bam.xml file. Please make sure that you enable the ServiceDataPublishing.&lt;br /&gt;
The bam.xml should have the following configuration:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;BamConfig&amp;gt; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ServiceDataPublishing&amp;gt;enable&amp;lt;/ServiceDataPublishing&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/BamConfig&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;NOTE:&lt;/b&gt;&lt;/i&gt;
 By default the this is disabled, and the BAM publishing won&#39;t occur 
even though you proceed the below steps and changed in the mentioned UI.
 Therefore please enable the ServiceDataPublishing to use with WSO2 BAM.&lt;br /&gt;
Then in the ESB side go to Service Data Publishing, Give the BAM Server URL which will be the thrift ports started in BAM server (tcp://localhost:7611), give BAM credentials (default is admin,admin) &amp;nbsp;and click on update.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhknD5dKzrh-cQwU7YZUPyAvsW10JOdN20dp2dJiU3ODQdsySmZlTn5FoeEOcDhcVSDZjERpHf9XMoqut1JYIZCrMghcnBTMVptj3rnxfGcpRGP1jIMwKVKJr6-Gxmwf2iq_YYMz-ml8I/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhknD5dKzrh-cQwU7YZUPyAvsW10JOdN20dp2dJiU3ODQdsySmZlTn5FoeEOcDhcVSDZjERpHf9XMoqut1JYIZCrMghcnBTMVptj3rnxfGcpRGP1jIMwKVKJr6-Gxmwf2iq_YYMz-ml8I/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Now if you invoke some services from ESB side the service data will get published to bam. Now to check to confirm&amp;nbsp;whether&amp;nbsp;your data is in BAM you can go to BAM Management Console Check it by connecting to Cassandra Explorer.&lt;br /&gt;
&lt;br /&gt;
In this post I have only explained an intro to BAM 2.0 and how to send service data to bam From my next session I will explain how to send your enterprise data to BAM and how you can do analytics and presentation using WSO2 BAM tool kits.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/3771234172265061852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2012/09/sneak-peek-at-wso2-bam-20-how-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/3771234172265061852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/3771234172265061852'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2012/09/sneak-peek-at-wso2-bam-20-how-to.html' title='Sneak  Peek at WSO2 BAM 2.0 &amp; How to Install BAM Data Agents in WSO2 Products'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_3KMdbdXajccbEi3Cp9_H357Isf2TkbKMgpcsRw1747jX0XddBZobqvNHGGrINDKmJXloe8IKEyEy5sKcwnZxpS7WcAmVRv1MnvmD2UqM0u0lnBAtYpR8tbIINQsIcmnDB2XqaSlh_kk/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4620343371413045603.post-7129327702997270723</id><published>2012-08-24T07:07:00.000-07:00</published><updated>2013-10-12T22:40:43.117-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SMTP"/><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 ESB"/><title type='text'>How to send mails using WSO2 ESB (sending your payload data to e-mail)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Suppose you have a web service which returns some data and you want to send that data into a mail... WSO2 ESB provides an easy mechanism to do this by creating a proxy service.&lt;br /&gt;
&lt;br /&gt;
First get your endpoint (web service&amp;nbsp;endpoint which returns data ).&lt;br /&gt;
&lt;br /&gt;
Step 1 - Enable mail transport in axis2.xml.&lt;br /&gt;
&lt;br /&gt;
Go to your axis2.xml (under WSO2ESB_HOME/repository/conf/axis2/), and uncomment mailto transportSender as shown below.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml&quot; style=&quot;border: 0px solid #b4d0dc;&quot;&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;transportSender&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mailto&quot;&lt;/span&gt; class=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;org.apache.axis2.transport.mail.MailTransportSender&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;parameter&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.smtp.host&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;smtp.gmail.com&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/parameter&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;parameter&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.smtp.port&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;587&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/parameter&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;parameter&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.smtp.starttls.enable&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;true&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/parameter&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;parameter&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.smtp.auth&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;true&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/parameter&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;parameter&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.smtp.user&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;synapse.demo.0&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/parameter&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;parameter&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.smtp.password&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;mailpassword&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/parameter&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;parameter&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mail.smtp.from&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;synapse.demo.0@gmail.com&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/parameter&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/transportSender&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
Step 2 Creating the proxy Service.&lt;br /&gt;
&lt;br /&gt;
Go WSO2 ESB, start up the server. Under Main menu -&amp;gt; Axis2 Services -&amp;gt; Add -&amp;gt; Proxy Service. Click on Custom Proxy Service. Give an appropriate Proxy Service Name. (Give the WSDL URL as your requirement)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBc1WMTuHqoO7XTA5mSmhvosqODtBYVUwvsUEdsDJi-TdKynIETbaox3qPL2b0p7ssr5ME8ojTzTs-7ErrGWERW2L7DreDg6rDFV5OxbR4kpfK5p_NFAwCZXlpJPSuHCpxtLWpmMpUj3Y/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBc1WMTuHqoO7XTA5mSmhvosqODtBYVUwvsUEdsDJi-TdKynIETbaox3qPL2b0p7ssr5ME8ojTzTs-7ErrGWERW2L7DreDg6rDFV5OxbR4kpfK5p_NFAwCZXlpJPSuHCpxtLWpmMpUj3Y/s320/1.png&quot; width=&quot;295&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;Step 3 - Define Endpoint&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In the define endpoint section click on define inline, click on create -&amp;gt; Address Endpoint and give the address end point of your service which you get data from. I am going to invoke the Data Service which i created in my &lt;a href=&quot;http://sparkletechthoughts.blogspot.in/2010/08/how-to-create-mysql-data-service-using.html&quot;&gt;previous blog&lt;/a&gt;. And my Address endpoint will be&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1sj14XiXsFPXo43sKTgSWvk1RbU_Iu-24AT3MbGfD5MHRx29hS91J_0w7spGPEVAJ5ezvigTOuiibEcCNQYbE20HlXQP4Y7W3RST9O2VHFiIQt3DF0e0P_XQ4vPghEdSvwCAMPiL4DAY/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;98&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1sj14XiXsFPXo43sKTgSWvk1RbU_Iu-24AT3MbGfD5MHRx29hS91J_0w7spGPEVAJ5ezvigTOuiibEcCNQYbE20HlXQP4Y7W3RST9O2VHFiIQt3DF0e0P_XQ4vPghEdSvwCAMPiL4DAY/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 4 - Creating the Out Sequence. Go to Out sequence -&amp;gt; Define Inline&lt;br /&gt;
&lt;br /&gt;
In the In Out sequance We need to add a&lt;br /&gt;
A Log Mediator - Which logs the&amp;nbsp;incoming&amp;nbsp;message&lt;br /&gt;
Three Property Mediators&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;1.&amp;nbsp;Subject - Which will be the subject of our mail&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;2.&amp;nbsp;MessageType -&amp;nbsp;Message Type of our mail&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;3.&amp;nbsp;ContentType -&amp;nbsp;Content Type of our mail&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;4. Send mediator - Send the mail to our email address&lt;br /&gt;
&lt;br /&gt;
To add the log mediator, Click on add child -&amp;gt; Core -&amp;gt; Log. &amp;nbsp;And in the log mediator give the&amp;nbsp;Log level as full.&lt;br /&gt;
&lt;br /&gt;
To add the three properties,&amp;nbsp;&amp;nbsp;Click on add child -&amp;gt; Core -&amp;gt; Property. And add three properties one by one.&lt;br /&gt;
property name=&quot;Subject&quot; value=&quot;CEP Event&quot; scope=&quot;transport&quot; type=&quot;STRING&quot;&lt;br /&gt;
property name=&quot;MessageType&quot; value=&quot;text/html&quot; scope=&quot;axis2&quot; type=&quot;STRING&quot;&lt;br /&gt;
property name=&quot;ContentType&quot; value=&quot;text/html&quot; scope=&quot;axis2&quot;&amp;nbsp;&amp;nbsp;type=&quot;STRING&quot;&lt;br /&gt;
&lt;br /&gt;
To add the send mediator&amp;nbsp;Click on add child -&amp;gt; Core -&amp;gt; Send. And&amp;nbsp;Select Endpoint Type -&amp;gt; Define inline -&amp;gt; Address Endpoint -&amp;gt;&amp;nbsp;mailto:amani.soysa@gmail.com&lt;br /&gt;
&lt;br /&gt;
Once you add the three properties and the log mediator your out sequance editor should look like below.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_eJOewW7DK3af1JYu4YkGzD0XUFm1hGE3-vF_OWvquZ6-BoXmF0HZkLsadMvd8hPO1hfTIkoK3xpgks_Qq9Z88R1k18UTgyx8KWdmZHYeMpVrANpnjt6RlVuCe3MFgHNj86evj8J47pU/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;163&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_eJOewW7DK3af1JYu4YkGzD0XUFm1hGE3-vF_OWvquZ6-BoXmF0HZkLsadMvd8hPO1hfTIkoK3xpgks_Qq9Z88R1k18UTgyx8KWdmZHYeMpVrANpnjt6RlVuCe3MFgHNj86evj8J47pU/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click save and close and finish creating your proxy Service.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml&quot; style=&quot;border: 0px solid #b4d0dc;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;proxy&lt;/span&gt; xmlns=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://ws.apache.org/ns/synapse&quot;&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;MyMailProzy&quot;&lt;/span&gt; transports=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;https,http&quot;&lt;/span&gt; statistics=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;disable&quot;&lt;/span&gt; trace=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;disable&quot;&lt;/span&gt; startOnLoad=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;target&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;inSequence&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;outSequence&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;log&lt;/span&gt; level=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;full&quot;&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Subject&quot;&lt;/span&gt; value=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;CEP Event&quot;&lt;/span&gt; scope=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;transport&quot;&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;MessageType&quot;&lt;/span&gt; value=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;text/html&quot;&lt;/span&gt; scope=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;axis2&quot;&lt;/span&gt; type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;STRING&quot;&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;ContentType&quot;&lt;/span&gt; value=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;text/html&quot;&lt;/span&gt; scope=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;axis2&quot;&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;property&lt;/span&gt; name=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;OUT_ONLY&quot;&lt;/span&gt; value=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;true&quot;&lt;/span&gt; scope=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;default&quot;&lt;/span&gt; type=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;STRING&quot;&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;send&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;endpoint&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;address&lt;/span&gt; uri=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;mailto:amani.soysa@gmail.com&quot;&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/endpoint&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/send&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/outSequence&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;endpoint&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;address&lt;/span&gt; uri=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://localhost:9765/services/PersonsDataService&quot;&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/endpoint&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/target&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;publishWSDL&lt;/span&gt; uri=&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://localhost:9765/services/PersonsDataService?wsdl&quot;&lt;/span&gt; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;description&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/description&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;&amp;lt;/proxy&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can invoke your proxy service by going to try it in the service list, and you should get a mail according to your payload. My next &lt;a href=&quot;http://sparkletechthoughts.blogspot.com/2013/10/how-to-receive-emails-to-wso2-esb.html&quot;&gt;blog post&lt;/a&gt; will show how we can receive emails to WSO2 ESB using a standard email client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sparkletechthoughts.blogspot.com/feeds/7129327702997270723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sparkletechthoughts.blogspot.com/2012/08/how-to-send-mails-using-wso2-esb.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/7129327702997270723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4620343371413045603/posts/default/7129327702997270723'/><link rel='alternate' type='text/html' href='http://sparkletechthoughts.blogspot.com/2012/08/how-to-send-mails-using-wso2-esb.html' title='How to send mails using WSO2 ESB (sending your payload data to e-mail)'/><author><name>poohdedoo</name><uri>http://www.blogger.com/profile/15409562406177003353</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-MYYOR6SJDipH-noXGk6IBOH0dpli7vt5R0lD9HjcCuLC9NEki3S7AQhWn7nUaoyxMUjOWkFQVl7g86x3B7mkXaJdi-2JvqrDfasDUCvJG86_b-tpiLBE5nVpqTpLvw/s220/180514_519422923008_286700462_805691_4461747_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBc1WMTuHqoO7XTA5mSmhvosqODtBYVUwvsUEdsDJi-TdKynIETbaox3qPL2b0p7ssr5ME8ojTzTs-7ErrGWERW2L7DreDg6rDFV5OxbR4kpfK5p_NFAwCZXlpJPSuHCpxtLWpmMpUj3Y/s72-c/1.png" height="72" width="72"/><thr:total>1</thr:total></entry></feed>