Tutorials A to Z » Blog Archives

Author Archives: Varun Goel

About Varun Goel

Varun Goel is a technology enthusiast with 6+ years exp in IT industry. In fact, he is been developing application after schooling as freelancer. Currently working with one of the Fortune’s 100 Companies having vast experience Mule ESB, Tibco, HTML5, CSS, JSS, Android, Core Java, JSP, PHP, MySQL, AutoCAD, Maya, ZBrush, Photoshop, Flash CS and many more.

Mulesoft Tutorial

Creating Mule 4 Project with RAML

Published by:

Creating Mule 4 Project with RAML

In this Mule tutorial we will learn how to Create Mule 4 project with RAML and a detailed walk-through on how the Mule flow works in case of a success or error scenario:

Mule ESB – What is RAML and why it’s used

RAML stands for RESTful API Modeling Language and is similar to WSDL. A RAML provides a structure to the API which is useful for developers to start there development process and also helps client who is invoking the API to know before hand what the API does.

A RAML contains:

  1. Endpoint URL with its Query parameters and URI parameters,
  2. HTTP methods to which API is listening to (GET, POST, PUT, DELETE),
  3. Request and response schema and sample message,
  4. HTTP response code that an API will return (eg: 200, 400, 404, 500). Continue reading
Being Healthy

10 Unknown benefits of Guava

Published by:

Guava is actually a tropical fruit that grows in tropical weather. Therefore, it is not surprising that it can easily grow in the backyard and does not need special treatment of the plantation. Fruits can be consumed in its pure form. In addition, guava can be consumed in the form of freshly squeezed delicious juice. The fruit is pink and it tastes really sweet. White or red guava, scientifically called Psidium guajava, and is one of the fruits with various benefits.

Nutrient content

Fruits contain a large amount of nutrients. Each serving of guava, or about 165 grams of fruit, usually contains the following nutrients:

  • Energy value -112 kcal
  • Fat – 1.6 g
  • Sodium – 3 mg
  • Potassium – 688 mg
  • Carbohydrates – 24g
  • Cellulose – 8.9 g
  • Sugar – 15 g
  • Protein – 4.2 g
  • Vitamin A – 700 mg
  • Vitamin C – 30 grams of vitamin
  • Vitamin B6 – 10 mg
  • Calcium – 3 mg
  • Iron – 2 mg
  • Magnesium – 9 mg

For more information on the health benefits of guava during pregnancy, see the points below.

  1. The Immune system

The main advantage in the use of guava – strengthening the immune system of the body. This is due to the fact that fruits contain large amounts of vitamin C, which are beneficial for maintaining the health of the body, mainly during pregnancy, when a strong immune system is needed so that a pregnant woman cannot easily get sick.

  1. Nutrients for fetal health during pregnancy

Guava’s benefits pregnant women too as it contains folic acid, or vitamin B-9, which is recommended for pregnant women since it can help in developing the baby’s nervous system and protect the newborn from neurological disorders.

  1. Healthy and radiant skin

Guava also contains vitamin E, which is good for skin health. It can help make the skin smooth and silky and give it a healthy appearance. In addition, it will give skin radiance, help to avoid inflammation, such as acne or eczema. Therefore, guava – the best natural remedy for the skin during pregnancy.

  1. Source of Vitamin C

Guava has 4 times more vitamin C than in orange. Therefore, it help strengthening the lymphatic system. It will be able to raise the overall tone of the body and increase its resistance to adverse external influences, infections and viruses. Guava can serve as one of the best preventive measures in the period of prosperity of influenza and viral infections.

  1. Prevents dehydration

Guava contains around 80% of water which can help meet the need for body fluids. Therefore, fruits are good to avoid dehydration.This is important for a pregnant woman, as they are sharing fluid with the fetus, so there should be enough amniotic fluid.

  1. Prevents diabetes

Guava contains natural sugar. Thus, it is a good way to avoid diabetes and control blood sugar levels. This is important because the hormones of a pregnant woman usually lead to abnormal insulin levels in the blood. Guava leaf tea may help prevent spikes in blood sugar and improve symptoms in people with type 2 diabetes. A 2010 review of evidence from clinical trials and animal studies suggests that guava leaf tea may help improve insulin resistance and lower blood sugar levels.

  1. Blood pressure control

Another health benefit of guava during pregnancy will allow you to control blood pressure levels. It is easy for a pregnant woman to get hypertension due to increased blood velocity during pregnancy. Consuming guava will help reduce pressure and avoid the possibility of hypertension.


  1. Rich in fiber

Just like many other fruits, guava also contains a large amount of fiber. It is useful for improving the functioning of the intestines, which leads to proper digestion. In addition, it will lead to better absorption of nutrients.

  1. Improved digestion

Because fruits are rich in fiber, it is the right way to keep your digestive system healthy. Pregnant women usually experience digestive difficulties during the third trimester. Therefore, eating more fruit will improve the metabolic rate, which can also improve digestion.

  1. Prevents anemia

Guava also contains minerals that can help in the production of sufficient red blood cells. Thus, it can help avoid anemia.This is important during pregnancy, when a pregnant woman often loses minerals to feed the fetus, which leads to a state of symptoms of severe anemia.


Precautions and Recommendations

Despite the fact that fruits bring many benefits to a pregnant woman, there are also things to consider when eating fruits.For further explanation, see the following recommendation when deciding on the use of guava during pregnancy.

  • Avoid eating fruit if any allergic condition is detected, such as itching, redness, or a swollen face. Also, stop eating guava if you feel pain or nausea after it is consumed.
  • Use in proper portions to avoid diarrhea, as this fruit is rich in fiber. Therefore, too frequent use of guava can lead to problems with the stomach.
  • Be sure to clean the fruit from the seeds, as the seeds can cause appendicitis. Drink a lot with food to avoid choking or any unwanted problems.

These are all the health benefits of guava during pregnancy. Eat fruit every day during pregnancy. However, eat these fruits in the right amount. Thus, guava will bring optimal benefits and help avoid unwanted side effects, mainly effects that can harm the fetus.

Mule 4 Mulesoft Tutorial

Retry Mechanism – Until Success Vs Flow Reference

Published by:

Retry Mechanism – Until Success Vs Flow Reference

In mule 3 we have roll back exception strategy which enable’s the ability to retry the execution in case of error and define a separate flow to be executed once the retry count has exceeded.

In mule 4 you do have re-connection strategy which we can define on the connectors but that only retries in case of failure in connection. In Mule 4 we do not have roll back exception strategy, so in this tutorial we will be looking on how we can implement the same functionality in Mule 4.

To achieve this retry mechanism, we can use Until Successful, but the issue we will face are:

  1. We would not be able to specify any specific condition on which retry should happen . For Example: We will not be able to define retry only when HTTP status code is 202.
  2. We also cannot implement error flow, once an error has occurred. For Example: Every time an error is generated we need to send the error message on to a queue before retrying.

Scenario 1: We want to implement retry mechanism on Web service call, in case of error if HTTP status code is 502 then, API should retry its Web Service Call only 3 times.

To complete the above scenario, we will be using Flow Reference.

Flow Reference in Mule 3 was not able to call its own flow in which it was defined. But in Mule 4 you can call any flow even its own flow.

Flow Diagram:

All we need is to use is flow reference to call its own flow when an error is generated. We have moved HTTP Request to another flow “HTTPFlow” and is referred by flow reference in main flow “get:\users:test-config”.

Inside HTTPFlow we have HTTP Request call on which we have implement retry mechanism. In Error handling part, “On Error Continue” is checking for the retry count if it has reached to its max or not. Inside error flow of “On Error Continue” retry count value is getting incremented and after some seconds of sleep; flow reference will again call HTTPFlow. Once the retry count has reached to its max “On Error Continue” will no longer catch the error and the final error is throw back to its parent flow.

    <flow name="get:\users:test-config">
    <ee:transform xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd" doc:id="86de922d-7d4d-4d0a-b010-e1cf9e23a79d">
                <ee:set-payload><![CDATA[%dw 2.0
output application/json
  userID: [
  userName: "Varun",
  subject: [
  class: {
    name: "Class 10"
    <logger level="INFO" doc:name="Logger" doc:id="897eb15a-c379-4051-ae78-21ebbbf33cd1" />	
      <set-variable value="1" doc:name="SetRetryCount" doc:id="ae08693c-0c8e-4397-b5e2-235b8b288821" variableName="retryCount" />
    <flow-ref doc:name="HTTPFlow" doc:id="84ab16f4-0fa5-4ac4-a73e-80dd7ab20ea0" name="HTTPFlow"/>
    <logger level="INFO" doc:name="Logger" doc:id="92727a36-d8ed-4ea1-8616-3c0537598400" />
  <flow name="HTTPFlow" doc:id="610bee6d-59f2-4f77-a29e-d60b88aaea01" >
    <logger level="INFO" doc:name="Logger" doc:id="38537854-3f21-48a7-a6a6-31907d8bca90" message="Calling HTTP request count - #[(vars.retryCount default 0)]" />
    <http:request method="GET" doc:name="HTTPCall" doc:id="c766093c-c7ac-444f-914d-cd4d1b70676d" config-ref="HTTP_Request_configuration" path="/abc">
      <reconnect />
    <error-handler >
      <on-error-continue enableNotifications="true" logException="true" doc:name="On Error Continue" doc:id="8d23329f-b006-4a56-b6a7-6e33eb748957" when="#[(vars.retryCount as Number default 0) &lt; 3 and error.muleMessage.attributes.StatusCode == 503]">
        <logger level="INFO" doc:name="Logger" doc:id="1be75ffe-a4bf-4fe1-9802-ae1309d76341" message="#[error.description]"/>
        <set-variable value="#[(vars.retryCount default 0) +1]" doc:name="Increment retryCount" doc:id="a9877e1d-d1f5-4786-93e9-58126d08f3f4" variableName="retryCount"/>
        <scripting:execute doc:name="Sleep" doc:id="531bc61a-937d-4a0c-81ce-1ea0685ce64f" engine="groovy">
          <scripting:code >def duration = Long.valueOf('3000');
return message.payload;</scripting:code>
        <flow-ref doc:name="HTTPFlow" doc:id="3f37c302-ec9a-4751-ab4e-dcdefb2607f5" name="HTTPFlow"/>


Scenario 2: Here we want to implement retry mechanism on Web service call when a specific value is received. Example if a web service call returns a value 5 then retry should happen maximum 3 times else not.


We have moved HTTP Request to sub flow “testSub_Flow” and is referred by flow reference in its parent flow “post:\users:application\json:test-config”.

Inside testSub_Flow  we are using flow reference to call itself. Once we have received the response from web service call “Request“, Choice router we are routeing flow processing based on response received and number of retires number.


Being Healthy

10 Unknown Health Benefits of Mango

Published by:

The main reason why people love mangoes is amazing taste. As a rule, people enjoy its rich taste, without paying any attention to the many health benefits. Mango is so highly prized in the first place because of its health benefits. Here are some amazing benefits of eating mango that you might not be knowing.

1. Fights Cancer

Studies have proven that mango limits the inflammatory response in cancer and non-cancerous breast cells. It contains antioxidants like quercetin, isoquercitrin, fisetin, gallic acid, gallate and other enzymes that protect against colon cancer, breast cancer, blood and prostate cancer. Vitamin A and flavonoids, such as beta-carotene, alpha-carotene and beta-cryptoxanthin, help prevent cancer of the lungs and the oral cavity. Antioxidants inhibit the oxidation process in the fight against harmful free radicals in the body. Mango is a rich source of fiber specifically pectin, which inhibits the action of a protein called galectin, which is known to cause the growth of cancer cells. This reduces the risk of colon cancer.

2. Cholesterol level

High levels of fiber, vitamin C, mango pectin help lower serum cholesterol, especially the bad LDL cholesterol in the body. Mango fibers limit the secretion of the hormone leptin, which produces fat cells. Vitamin B6 regulates homocysteine ​​levels, which are harmful to blood vessels and can cause strokes and heart attacks. The high content of polyphenolic antioxidants prevents the accumulation of fat in the arteries, preventing the formation of plaque and clogged arteries. Mango contains a compound called mangiferin, which lowers the level of LDL and triglycerides and increases the amount of good cholesterol.

3. Digestion

Being a rich source of fiber, mango improves the health of the digestive system. Just like papaya, it contains enzymes that help in breaking down protein, thus facilitating digestion and eliminating feces. Mango fiber provides proper bowel movement and keeps the digestive tract clean. Having an alkaline character, mango can cure acidity. It also contains several biologically active compounds, such as esters, terpenes and aldehydes, which have additional benefits for the stomach.

4. Strengthens the immune system

Mango contains a generous amount of vitamins C and A, as well as 25 types of carotenoids that keep the immune system healthy and strong. The antioxidants and minerals present in these fruits limit microbial attacks and cell damage. In fact, mango is considered more nutritious than butter or almonds. It not only strengthens all muscles, nerves and body tissues, but also cleanses the body from the inside, improving immunity.

5. Useful for diabetics

In addition to fruit, mango leaves are especially beneficial for patients with diabetes, as they can normalize insulin levels. The traditional remedy is to boil mango leaves in water, soak them overnight, and then consume filtered broth in the morning. This will regulate the level of insulin in the body. Mango has a low glycemic index, so its use in moderation will not increase sugar levels.

6. Blood pressure control

Fresh mango is a good source of potassium – an important component of cellular and biological fluids. Potassium helps regulate heart rate, blood pressure and prevents heart disease.

7. Eye health

A large amount of vitamin A, as well as flavonoids, such as beta-carotene, alpha-carotene and beta-cryptoxanthin, present in mangoes, improves vision, fights dry eyes and prevents night blindness.

8. Improves brain health and memory.

Mango contains abundant amounts of vitamin B6, which helps in improving brain function and maintaining an effective nervous system. It also enhances our mood by controlling stress. Glutamine, an acid present in mango, improves memory and concentration. Pyridoxine helps in the production of gamma-aminobutyric acid, or GABA hormone in the brain. This hormone acts as a neurotransmitter in the central nervous system and inhibits the transmission of nerve signals to the brain, thereby causing a calming effect.

9. Calming Heatstroke

Mango juice is considered a coolant that provides the necessary nutrients and minerals in the body. All you need to do is mix the chopped pieces of green mango, water and a teaspoon of honey into a juicer. Consumption of this juice will cool the whole body. Therefore, it is useful in the prevention or treatment of heat stroke.

10. Aphrodisiac

Mango is also referred to as “the fruit of love” because of its properties. Consumption of mango can increase the potency in men. The abundant amount of vitamin E in the fruit helps regulate sex hormones and raises libido.

11. Weight Loss

Mangoes are low in calories and lack sodium and fat. Being rich in nutrients in a concentrated form, mangoes can be used as a healthy snack. The high fiber content helps burn extra calories by increasing the body’s digestive function, thereby helping in weight loss. Mango vitamins and minerals help us to feel full for a longer time.

12. Benefits for women

Being a rich source of iron, mango can prevent anemia. It is especially useful in menopause and pregnancy, often due to iron and calcium deficiency. This fruit also contains a moderate amount of copper, which is a cofactor for the proper functioning of many enzymes, such as cytochrome and superoxide dismutase. It also involved in the production of red blood cells.

13. Alkalinization of the body

The combination of tartaric acid, malic acid and citric acid in mango helps in maintaining the alkalinity of the body.

Mango for children

Mangoes are loved and consumed by representatives of all generations. Children love the “king of fruits”, and he is often included in children’s food products like candy, cakes, ice cream, jams and jellies. This luxurious fruit can be given in combination with other ingredients to make it more acceptable to fussy children and increase its nutritional value.

Mango Dessert

Mango kebabs . Mango cubes should be put on a toothpick along with other fruits and eaten with yogurt.

Mashed potatoes. A simple mango puree can be obtained by mixing mango pieces with Greek yogurt in a blender. You can also add other fruits such as peaches, strawberries, pineapples and bananas if you want.

Ice cream. Fresh mango is pureed by grinding in a blender, and then ice cubes are applied to it. For aesthetics, such popsicle can be decomposed into the same toothpicks or ice cream sticks.

Being Healthy

10 Unknown Benefits Of Lychee

Published by:

In India, litchi or lychee trees bear fruit in the summer season. Fruits grow on an evergreen tree with feathery leaves. The flesh is externally protected by a pink-red coarse skin. The litchi interior consists of pretty sweet white flesh, as well as brown seeds. The taste of litchi is vaguely reminiscent of grapes.

The fruit itself is very tasty. In addition to the sweet taste, Litchi provides significant health benefits.

Benefits of Lychee

1. Oligolol

Oligolol is an ingredient extracted from lychee fruit. This is the very first industrially produced low molecular weight polyphenol. It has been scientifically proven that it has exceptional bioavailability as well as efficacy. Oligol – short name for “Oligomer Polyphenol”. Oligomer is usually a term for a polymer that has a relatively reduced molecular weight.Scientific testing on volunteers showed that the drug “Oligonol” reduces fat mass, improves blood circulation, relieves fatigue after exercise, increases endurance, and also reduces facial wrinkles.

2. Reduces the growth of cancer cells

In cancer, cells divide uncontrollably. Cancer cells can also invade tissues and be distributed throughout the bloodstream, as well as in many other areas of the body. Lychee is an effective remedy that helps prevent the development of cancer cells. Especially this fruit helps with breast cancer, as well as the prostate. Lychee contains much more beta carotene than carrots. This antioxidant is able to fight against most types of cancer.

3. Reduces the risk of heart disease

The heart is the center of the cardiovascular system. It is very important to monitor his condition throughout life. Scientists announced that litchi ranks second among fruits in the number of polyphenols, which improve heart health. Lychee has almost 15% more polyphenols compared to grapes (which was previously considered as the main method for producing polyphenols). Oligol also improves heart condition. Lychee provides numerous health benefits that include increased immunity, protection against cardiovascular diseases, as well as against most types of cancer.

4. Fights cold, sore throat and improves the immune system

The protective mechanism protects our body from dangerous viruses. Antigens are parts of viruses, fungi and bacteria. Our bodies destroy molecules that are associated with antigens.If our immune system is vulnerable, then we may have various diseases, for example, flu, sore throat and so on. Lychee is rich in vitamin C. This fruit contains 40% more vitamin C compared to orange juice. Products containing vitamin C contribute to the improvement of immunity.They help the body to be resistant to bacterial infections. With frequent use of litchi, regular colds , flu viruses, and sore throat can be easily avoided. This fruit also helps alleviate inflammation.

5. Lose weight

To lose weight you need to have a balanced and healthy diet, as well as do exercises.Consumption of large quantities of fruit is very beneficial for the health of the whole organism. Fruits contain all the important vitamins that the body requires. There are many fruits that will help you lose weight. Fruits that are high in water will fill your stomach and reduce the need for more high-calorie foods. Lychee is low in calories, consists of unsaturated fats and highly soluble fiber, which is very useful for people with excessive body weight. Oligol will help improve blood circulation in the organs and throw off those extra pounds.

6. Helps with problems with the digestive tract

Lychee is very useful in diseases of the gastrointestinal tract for many reasons. It can solve not only numerous digestive problems, but also remove problems with central nervous system.The seeds contained in this fruit are used to treat the intestinal tract, and can also relieve the patient from worms. Lychee can also be recommended for minor diarrhea, as well as for stomach ulcers. Lychee pulp is an excellent antacid. It is used to combat high acidity of the stomach, nausea, and dyspepsia.

7. Acts like an aphrodisiac

Aphrodisiacs stimulate sexual desire. Individual foods, mostly fruits, can easily increase your sexual desire. Lychee is still referred to as an aphrodisiac in ancient Chinese culture.

8. Contains a high concentration of copper and potassium

Lychee also contains a large amount of minerals such as potassium and copper.Potassium is an important element that helps control heart rate, as well as blood pressure, protects the heart from stroke and coronary diseases. Copper helps in the production of red blood cells.

9. Treats constipation

Lychee consists of soluble fiber, it improves digestion and protects against intestinal problems. In addition, litchi fruits help to release the stomach from toxic substances, clean the colon and solve problems with constipation.

10. Prevents anemia

As soon as the number of red blood cells and hemoglobin levels become below normal, this leads to anemia. Anemia is considered a typical problem and is much less common in developing countries than in the poor, where people have problems with good nutrition. Lychee contains a large amount of copper, which increases the number of red blood cells.

11. Helps fight stress

Stress is a complex condition of the body, which requires internal strength, endurance, and increased vigilance. The group of vitamin B’s, which is present in the fruit of litchi, will help you overcome stress . One lychee fruit will provide ample supply of vitamin B6, one of the so-called anti-stress vitamins.

12. Maintains bone health

Lychee is a rich source of phosphorus , magnesium, manganese, which will help maintain the health of your bones. Vitamin D in this fruit will improve the absorption of calcium by the body.

Nutritional Value of Lychee

Being Healthy

10 Ways To Improve Eyesight

Published by:

We see things around us with our brain, not our eyes. Our eyes function like a camera, capturing light and sending data back to the brain. The eyes are most highly developed sensory organs. In fact, if the human eye was a digital camera, it would have 576 megapixels lens.

Vision problems – With growing pollution longs hours on TV, Laptop and mobile, your eyes are not adapted at all to the loads that fell on them! You should take good care of eye health right now, otherwise will lose visual acuity at very young age.

These tips will help improve your vision, even if you wear glasses or contact lenses. Pay attention to the important advice: blink more often when you are at the computer to moisten the sclera. It is the drying of the sclera that is the main cause of various eye diseases!

Here are few best ways to keep your eyes health and improve eyesight:

  1. Stop using phone in low light
    If you are one of those users who are practically glued to the screen most of the time and have experienced itching, watering and pain in the eyes, it is time to do things in a different way. The best way to deal with it is to cut the screen time, but that is almost impractical in today’s world. You should stop using your phone in low or dim surrounding light or should put an anti-glare screen protector on the phone.
  2. Eye rest
    Make the habit of briefly closing your eyes throughout the day. Two minutes will be enough for the rest of the eye muscles and vision regeneration! Close your eyes for 2 minutes every hour during the working day – and you will not only improve your vision, but also with the nervous system.
  3. Wear glasses 
    Even if you have slightly poor eyesight like 0.25 or 0.5 , you still should regularly wear glasses. Scientists still have not come to a single conclusion – glasses are useful or not, because often the vision drops when a person begins to use them regularly.Wearing sunglasses is also very healthy for eyes. Sunglasses are not just a fashion accessory, as they also help protect the eyes from ultraviolet (UV) light. Excessive UV exposure can damage the eyes. UV light can also increase a person’s risk of cataracts, eye cancer.
  4. Eye massage
    Massage your eyes at least once a day. With regular to eye massage, blood circulation is improved, the eyes are fully relaxed, as a result, the vision becomes sharper. You use your thumbs to do little circles around your eyes (around, do not actually rub your eyes), GENTLY. Do this massage regularly every night before bed.
  5. Regular breaks
    Do not let your eyes be constantly in tension: every 20 minutes, distract from work and look away. This recommendation is especially important for people suffering from myopia.
  6. Exercises for vision
    Perform these simple exercises at least 1 time in 2 days, and the result will be! Move your eyes along the arrow in the pictures. This is a great workout to strengthen the eye muscles! Exercises can be done with open and closed eyes.
  7. Walk on Green Grass early morning
    Walk daily on green dew laden grass in early morning for at least 20 minutes, this increase blood circulation and is considered to be one of the best ways to keep eyes healthy.
  8. Wash your eyes
    If you are working for long hours on monitor then its very important that you wash your eyes with cold water every 1 or 2 hrs. This not only relax your eyes but also prevents eyes from getting dry..
  9. Diet
    Carrots, butter, fish oil, herbs, nuts: make sure that your diet is rich in these products.They will help to see well in the dark, vitamin A is very important for good vision.
  10. Quitting smoking
    Science has clearly established that smoking is bad for a person’s health and can cause cancer. However, many people may not realize that there is also a link between smoking and a number of eye diseases.Smoking increases the risk of age-related macular degeneration, cataracts, and uveitis. It can also increase the risk of diabetic retinopathy. Tobacco smoke is also irritating to the eye, which can make dry eye worse.
Being Healthy

How to Eat Chia Seeds for Quick Weight Loss

Published by:

How to Eat Chia Seeds for Quick Weight Loss: Are you going to gym or doing regular exercise to lose some extra kilos and yet not successful? Don’t worry; the good news is that there are many super foods that can help you achieve your ideal weight pretty easily.

Chia seeds have been extremely popular for their amazing nutritional benefits. The high fiber content in chia seeds can help you reduce the stubborn belly fat. The best part is that they are very much affordable, highly nutritious and give an added flavour to any dish.

These small seeds are abundant in polyunsaturated fatty acids and proteins as well. You can add chia seeds to your diet in multiple ways to lose weight quickly.

These powerful seeds are rich in anti-oxidants, healthy fats and fiber that can help you in flushing out the toxins from the body, reducing inflammation and keeping you full for longer period of time.

Nutritional properties of Chia seeds:

• Copper
• Dietary Fiber
• Omega-6-fatty acids
• Omega-3-fatty acids
• Calcium
• Sodium
• Protein
• Phosphorus
• Zinc
• Manganese

As per your preference, you can incorporate chia seeds with your daily diet to get benefits. You can add chia seeds in your food in different ways, such as:

• Grounded chia seeds
• Soaked chia seeds
• Chia seeds in oil form

Let’s have a quick look at how you can use Chia seeds in different ways to lose weight fast.

1. Chia Seeds with your Favorite Salad:

You can make your salad even better by adding some chia seeds in your fresh fruits. With all its nutritional benefits, you will feel energised all day and also fuller.

2. Chia Seeds Smoothie:

Love smoothies? If yes, than you make your smoothie even more satisfying with chia seeds. You can make your smoothie and give it a nutritional twist by adding some chia seeds into it.


✓ Some blueberries
✓ One banana
✓ 1-2 table spoons of chia seeds
✓ Low fat milk


✓ Peel of the banana and add it to your smoothie maker
✓ Now add the blueberries, chia seeds and milk
✓ Blend it and pour in a glass to drink freshly

** You can also add yogurt instead of milk and a little honey for better taste which is completely optional.

3. Chia seed Pudding:

While many people think that chia seeds can only be used as topping, it can also be used as the main ingredient for cooking. Chia pudding is undoubtedly one of the tastiest ways to use this incredible super food for all its benefits.


✓ 2 cups of low fat milk
✓ 2-3 cups of chia seeds
✓ Half tablespoon of vanilla extract
✓ Some raisins
✓ 2 tablespoons of honey
✓ 2 tablespoons of dried coconut powder


✓ Combine milk, honey, chia seeds, and the vanilla extract in a bowl.
✓ Allow it to sit for 15 minutes.
✓ Stir the mixture and cover the bowl securely with a plastic wrap
✓ Now refrigerate it overnight
✓ Next day, add raisins and coconut powder as topping and enjoy!

4. Iced Tea with Chia Seeds:


✓ 2-3 tablespoons of chia seeds
✓ 1 tablespoon of green tea
✓ 1 tablespoon of lime juice
✓ 1 tablespoon of organic honey
✓ Ice cubes
✓ Water


Soak the chia seeds in water for 1-2 hours

Boil one cup of water in a pan and once it starts boiling, switch off the heat.

Now add the green tea in the hot water.

Allow it to steep for 2-3 minutes

Let it cool for a while and then refrigerate for half an hour

Now add the chia seeds, honey, lime juice and some ice cubes into your tea
Relish this delicious drink in summers to lose weight.

5. Chia seeds Oatmeal:

For a quick and on-go breakfast, try this delicious oatmeal recipe which will make your feel filler throughput the day and let you shed a few kilos.


✓ Half cup of milk
✓ ¼ cups of rolled oats
✓ ¼ cup of Greek yogurt
✓ 2 tablespoons of chia seeds
✓ 2 tablespoons of honey
✓ A pinch of cinnamon powder
✓ Few blueberries


✓ Mix milk, Greek yogurt, chia seeds, honey and cinnamon in a small jar with a lid.
✓ Shake it well to mix it properly
✓ Remove the lid and add some blueberries
✓ Now close the lid and refrigerate for at least 8 hours

**You can also add other fruits like peaches and different variety of berries.

6. Spinach Kale Shake:

While you are trying to lose weight, it is vital that you consume a good amount of veggies in your diet and what can be better than a vegetable shake. You can add any green vegetable of your choice with chia seeds.

Here is a recipe of nutritious shake with spinach, kale and chia seeds.


✓ 2 cups of fresh spinach
✓ 1 cup of almond milk
✓ 1 leaf of kale
✓ 1 tablespoon of chia seeds
✓ 1 banana


✓ Blend the spinach, chia seeds, kale leaf with the almond milk
✓ Once the mixture is smooth, add some banana and blend again
✓ Drink fresh

7. Quinoa Chia Salad:


✓ 2 tablespoons of chia seeds
✓ Half cup of quinoa
✓ ¼ cup of red bell pepper-chopped
✓ ¼ cup of green bell pepper-chopped
✓ ½ kale-chopped
✓ 1 tablespoon of fresh lime juice
✓ ½ tablespoon of black pepper powder
✓ 1 tablespoon of olive oil
✓ Salt


✓ Cook quinoa in a pan for some time.
✓ Add all chopped vegetables in a bowl along with chia seeds, lime juice, black pepper, olive oil and salt.
✓ Mix thoroughly and spread it over the cooked quinoa
✓ Mix it again and enjoy the salad!

This list is definitely not exhaustive, you can enjoy many other chia seeds recipes; however the ones listed here will surely give you the nutritional boost and help in weight loss.

Being Healthy

Tomato Sauce – How many Tomato Do they Have?

Published by:

Tomato Sauce, We all probably have these Sauce bottles in are home. But do we know what these bottles really contain, does it has real tomato or chemicals? Lets find out the truth behind these sauce bottles.

We will be analyzing 1 liter of Maggie Hot and Sweet Tomato Chilli Sauce bottles and find out from what this sauces are made up of and are these really health.

Maggie Hot and Sweet Tomato Chilli Sauce are made from below ingredients. They’ve got –

  • Water
  • Sugar
  • Tomato Paste
  • Chile Puree
  • Salt
  • Acidity Regulator
  • Chile Powder
  • Thickening Agent
  • Garlic
  • Preservatives

Lets find out more about these ingredients

Tomato Paste – These 1 liter tomato sauce bottles have not more than 12% of tomato paste in it. Which is around 120 ml of tomato paste in it.
To find out how much grams of tomato it would take to get approx. 120 ml of tomato paste, we took 1 tomato regular sized (weight 120 grams) and churned it into a mixer without added any water and what we got was more than 120 ml of tomato paste.
Which concludes that this whole 1 liter of bottle that cost more than 100 Rs, is only having not more than 1 tomato in it.

Thickening Agent – When these 1000 ml Bottles will have only 1 tomato in it then they will defiantly use some chemicals to make it look like a real tomato sauce. Thus they uses thickening agents to make it as thick and real as real tomato paste. Consumption of these thickens in high quantity may lead to serious health issue, and we can very well imagine how much of thickener is used in rest 900 ml.

Sugar – Though we take a small amount of this sauce in small quantity its important to know how much sugar it has. 1 liter of this bottle has total 370 grams of sugar.

Acidity Regulator and preservatives – These ingredients are added to make product last long. These ingredients taken in high quantity are very dangerous.

Chile Pure, Salt, Chile Powder, Garlic are added for taste.

Conclusion, with one 1 tomato in these 1000 ML bottle these products are just made of thickener, artificial color and processed sugar. These are not at all healthy and should be avoided at all cost.
When these branded bottles have so less tomato then you can figure out how much tomato will be there in sauces that we eat from road side.


Maggie Hot and Sweet Tomato Chilli Sauce Ingredients 

Mule 4 Mulesoft Tutorial

Error Handling In Mule 4

Published by:

In this tutorial we will be understand about various types of error handling in mule 4 and how we can implement it in our project with an example.

There are 3 types of error handling mechanism in Mule 4.

  1. On Error Continue
  2. On Error Propagate
  3. Try Catch Scope

On Error Continue

On-Error Continue catches the error, and do not report it as an error; thus the processing of the flow continues even after the error has occurred. This error handler can be used in flows where you don’t want to stop the flow processing even if an error has occurred.

For example in the below flow, the parent flow will execute till the end even if web consumer has returned an error.

SchedulerFlow is calling flow callWebService flow, in case of any error at point 9 (at web service consumer) the flow will process as follows: 1->2->3->7->8->9->12->13->4.
Here at point 13 the error is send to its parent flow (SchedulerFlow) as flow message, and parent flow executes its processing further.

On Error Propagate

On Error Propagate works exactly as Mule 3 Catch exception strategy. In case on any error, On Error Propagate processes the error message and re-throws the error to its parent flow. No further processing is done on that particular flow.

For example in the below Flow, when flow execution starts, point 1, 2, 3 will execute first, on error at point 3 the error is catch by on-error propagate and error processing begins with point 6, 7; once the error handling flow is completed the flow processing ends and an error is re-thrown to its parent flow.

In can of no error or happy scenario point 1,2,3,4,5 are executed, in case of error at point 3; point 1,2,3,6,7 are executed.

In the second example below, SchedulerFlow is calling flow callWebService flow, in case of any error at point 9 (at web service consumer) the flow will process as follows: 1->2->3->7->8->9->12->13->5->6.
Here at point 13 the error is thrown to its parent flow (SchedulerFlow), and parent flow error handler is invoked.

Try Catch Scope

Try catch scope can be used within a flow to do error handling of just inner components. Try catch scope can be very useful in cases where we want to add separate error processing strategy for various components in the flow.

For example: In case of error at point 3 (at web service consumer) the flow will process as follows: 1->2->3->7->8->10->11.
In case of error at point 5 (at saleforces connector) the flow will process as follows: 1->2->3->4->5->9->6.


Configuring On-Error Continue and On-Error Propagate

As in Mule 3 we had to specify which error is to be catch inside the catch exception strategy, same we can do in Mule 4 with even more control.

In Mule 4 we can specify Error Type and/or When Condition which when is evaluated true that particular error handler is executed. In case none error handler catches the error the error is re-thrown to its parent flow. 

Error Type: This matches with the type of error that is thrown. Error Type are auto populated based on connectors used in the flow. It contains the list of errors that the connectors can throw in the flow.


When Condition: The expression that will be evaluated to determine if the exception strategy could be executed. This should always be boolean expression. 

In below example when variable errorCount is greater than 3 then only that particular error handler is invoked.

Mule 4

Inbound Outbound Properties

Published by:

In this “Inbound Outbound Properties” tutorial of Mule 4 we will look on how we can set and modify Mule Inbound and Outbound Properties.

In Mule Inbound properties referees to the additional information that comes to an Mule API along with the message body/payload itself. It may consist of inbound Headers, Query Params, URI Params, HTTP method etc.
In Mule Inbound properties are preset by the sender of the message thus cannot be added or modified.

Mule Outbound Properties are headers and properties that Mule API set before ending its request to other external systems.

Inbound Properties
In Mule 3 we used to access inbound properties by #[message.inboundProperties]

Whereas in Mule 4 we access these properties by #[attributes]

We have create a simple project using RAML.
The GET method of the RAML has URI Param – user_id, which can assess by #[attributes.uriParams['user_id']]

Similarly to access Query Param we do it by #[attributes.queryParams['code']]

To view all the Inbound Properties that are received by a Mule API:


Output :


Outbound Properties
As in Mule 3 we used to set outbound properties via using Set Property Component.
In Mule 4, outbound properties no longer exist. Instead, the headers or properties (e.g. HTTP headers or JMS properties) that you wish to send as part of a request or message (e.g. HTTP request or JMS message) respectively are now configured explicitly as part of the connector operation configuration. 
To Set the outbound HTTP headers and HTTP status code for a Mule API we need to modify the HTTP Listener Configuration.

SoapUI Output –

Being Healthy

6 Ways To Remove Pesticide from fruits and veggies

Published by:

In today’s world where staying healthy is a challenge and avoiding packed and fast food is everyone’s dream, eating fruits and green vegetables is one and the best way for us to be healthy. But really are these fresh fruits and vegetables making our body fit and healthy?

No, not any more. We all are aware of the increase of insecticides and pesticides sprayed on fruits and veggies to increase its production and enhance its quality. These insecticides and pesticides can lead to number of long term or incurable diseases like cancer.

So, it’s important for us to know how can we remove these chemicals from our fresh fruits and veggies and reap their actual benefits.

  1. Cleaning with Cold Water
  2. Salt Water
  3. Vinegar
  4. Baking Powder
  5. Lemon
  6. Peal and Trim

Cleaning with Cold Water
The Centre for Science and Environment (CSE) says that 75% to 80% of pesticide reduces are removed by cold water washing. Soak fruits and veggies for couple of hours in cold water and then wash it with fresh water. However, fruits like grapes, apples, guava, plums, mangoes, peaches and pears and fruity vegetables like tomatoes and okra require two to three washings, as do green leafy vegetables like spinach and kale.

Salt Water
Using salt water for washing fruits and vegetables is also best way to remove pesticides and insecticides. Soak fruits and veggies for 5 – 10 mins and then wash it with fresh water.
This method isn’t ideal for fragile fruits like berries, which can be damaged by soaking and end up tasting salty. For these, a simple cold water soak and rinse is best.

You can use white vinegar or apple cider vinegar in water and soak for 30-60 mins. The water vinegar solution should be with 10 percent vinegar and 90 percent water. Stir them around and rinse thoroughly. Be careful while washing fruits like berries, and those with a thin peel as the solution might damage their porous outer-skin.

Lemon Water
Lemon is one of the best antioxidants that not only help reducing oxidants from our body but also removes pesticides from fruits and vegetables. Lemon can be used as an alternative to vinegar, with 2-3 lemons added in a small bucket of water, soak the veggies in it for 30-60 mins and then wash thoroughly.

Baking Soda (One of the best solutions)
This solution is know to remove more than 90% of pesticides and insecticides from our food. As per the study published in the Journal of Agricultural and Food Chemistry, baking soda solution was found to be most effective at removing pesticide residues both on the surface and beneath the skin of apples.
A mix of only 1:100 of baking soda and water for 12 to 15 minutes of soaking can completely remove the pesticides.

Peal and Trim
Peeling and trimming is probably the most effective way for reducing the amount of chemical residue on your fresh food. Of course, it’s not suitable for all produce – like those with no skin! Fruits with thicker peal (like oranges, watermelon) are considered to be more safer than fruits with thinner peal.

Foods That are better to be bought Organic:

Here is the list of most contaminated produce (most important to buy organic) known as the Dirty Dozen:

  1. Strawberries
  2. Spinach
  3. Nectarines
  4. Apples
  5. Grapes
  6. Peaches
  7. Cherries
  8. Pears
  9. Tomatoes
  10. Celery
  11. Sweet Bell Peppers
  12. Hot Peppers

And here is the list of least contaminated produce known as the Clean Fifteen:

  1. Avocados
  2. Sweet corn (Note: could be GMO)
  3. Pineapples
  4. Cabbage
  5. Onions
  6. Sweet peas, frozen
  7. Papayas (Note: could be GMO)
  8. Asparagus
  9. Eggplant
  10. Honeydew Melon
  11. Kiwi
  12. Cantaloupe
  13. Cauliflower
  14. Broccoli

Editor’s note: This list has the most updated information from the EWG’s 2018 data.

Being Healthy

Mayonnaise Sauce – Death by Choice

Published by:

We all love mayonnaise sauce and why won’t we, as it tastes so good. All the top brands like Mc Donald, Dominos, Subway sell it and also use in their products because it adds so much flavor to it, ki dil mange more. Having mayonnaise sauce with tandoori chicken, momos or fried food, hmmm its just like heaven on earth. Hold on, before you plan to order some food with mayonnaise sauce, you must know what all ingredients it’s made up off.

Since in India, food restaurants do not have any legal obligation on disclosing the ingredients used in preparation of their products to general public, we will be examining ingredients of packed mayonnaise sauce bottle (Funfoods- Mayonnaise Classic 275 grams) which we can easily get from any grocery store.

The ingredients labelled on this bottle are :
  • Soyabean Oil
  • Sugar
  • Water
  • Egg Powder
  • Milk Solids
  • Salt
  • Lemon Juice
  • Acidity Regulator (INS 260 and INS 330)
  • Emulsifier and Stabilizer (INS 415 and INS 440)
  • Antioxidant (INS 319)
  • Preservatives (INS 211 and INS 202)

Sugar, water, egg powder, milk solids, salt and lemon juice are ingredients that we all generally consume almost on daily basis and their presence should not be harmful to our body.

Why mayonnaise sauce tastes so good because it has more than 60% of total oil (fat) in 275 grams of bottle, more oil means better taste. Eating mayonnaise sauce is almost like drinking oil. We might eat mayonnaise sauce in small quantity but still its not at all healthy. If we intake only 20 grams (around 2 teaspoon) of mayonnaise sauce then it amounts to more than 12 grams or 15 ml of oil that we would be consuming.
People suffering from high cholesterol should avoid it at all cost.

Antioxidant in foods are used to preserve and improve shelf life of the product. One of the best source of natural antioxidant is lemon juice. Along with presence of lemon juice this bottle has additional unnatural antioxidant – INS 319 (Tertiary butylhydroquinone or TBHQ). TBHQ is used in fats, including vegetable oils and animal fats. Many — if not most — processed foods contain some fats, so it’s found in a wide range of products. For example, snack crackers, noodles, and fast and frozen foods.

As per Food and Drug Administration (FDA) of USA, TBHQ can’t account for more than 0.02 percent of the oils in a food product as it can be harmful to the body.
According to the Centers for Science in the Public Interest (CSPI), a well-designed government study found that this additive increased the incidence of tumors in rats. And according to the National Library of Medicine (NLM), cases of vision disturbances have been reported when humans consume TBHQ. They also cite studies that have found TBHQ to cause liver enlargement, neurotoxic effects, convulsions, and paralysis in laboratory animals.

Acidity Regulator (INS 260 and INS 330) are commonly found in packed food and beverages. Though these regulators are not harmful but should be consumed with caution as it may cause severe allergic reactions (rashhivesdifficulty in breathingtightness in the chest; swelling of the mouth, face, lips, or tongue irritation).

Emulsifier and Stabilizer (INS 415 and INS 440) – These are used as thickeners in various food products like toothpaste, Jam, sauce etc. These are safe if taken in small quantity but can cause some side effects such as intestinal gas (flatulence) and bloating.

Preservatives are present in almost 99.9% of packed food. If you are already dependent on packed food then you might be taking these preservatives in high quantity. This mayonnaise sauce has INS 211 and INS 202 preservatives.

  • Sodium Benzoate (INS 211):
    Generally the amount of sodium benzoate in foods is so low it is unlikely to cause significant side effects in most people. Sodium benzoate can trigger allergic reactions in some people, though. According to the December 2007 issue of “Environmental Health Perspectives” it has also been implicated as a potential trigger for hyperactivity in children with attention-deficit hyperactivity disorder. Sodium benzoate does in itself not cause the disorder, and more research is needed to determine what role, if any, it plays in worsening hyperactivity.
  • Potassium sorbate (INS 202):
    Potassium sorbate has several adverse health effects. Potassium sorbate has long been considered a safe and non-toxic food additive. However, several studies have suggested that the chemical can actually be toxic. As well, some researchers now believe that potassium sorbate can cause a wide range of long-term health problems and side effects. Prolonged use of the preservative could lead to Migraine, Hypersensitivity Reactions, Hyperkalemia, allergic reactions, Nausea, Diarrhea, etc.

Conclusion: If you are among those who have busy schedule with no or little exercise and are more dependent on packed food, then please be cautious while consuming mayonnaise sauce.
Avoid having mayonnaise sauce and if not, better prepare at home. Preparing mayonnaise sauce won’t take more than 5-10 mins at home.

Funfoods- Mayonnaise Classic 275 grams

The content of the product can be verified at any local store as they are all mentioned on the bottle label.

Other Links:


XML Tutorial

XML Namespace

Published by:

XML Namespace

Namespace avoid conflicts with element.  For example: In the example below the XML has 2 section one for book author details and other one is having the details of library customers. Both elements have similar tags that might be bight confusing. So to make it more simpler to understand we use namespaces.

<?xml version = "1.0" encoding = "UTF-8" ?>
      <name>Honey Maxi</name>
      <name>Jack Mauga</name>
      <name>Zaphod Beeblebrox</name>
      <name>June Hox</name>
Defining a Namespace

Syntax: xmlns:prefix=”URI

xmlns – Namespace declaration always starts with xmlns which stands for XML namespace.
prefix – Then there is a prefix. The prefix can be any name that adds meaning to the element name.
URI – URI is defined to uniquely identify namespace. An XML cannot have 2 same URI, URI should always be unique.

There are multiple places we can define a namespace:

  • Inside a element
    <author xmlns:author="https://www.tutorialsatoz.com/author">
  • Inside a root element
    <library xmlns:customer="https://www.tutorialsatoz.com/customer" xmlns:author="https://www.tutorialsatoz.com/author">
  • Inside XML definition
    <?xml version = "1.0" encoding = "UTF-8" 
Referring Defined Namespace

Once we have defined our namespace we need to refer our elements using the prefix defined.

<?xml version = "1.0" encoding = "UTF-8" 
      <author:name>Honey Maxi</author:name>
      <author:name>Jack Mauga</author:name>
      <customer:name>Zaphod Beeblebrox</customer:name>
      <customer:name>June Hox</customer:name>
XML Tutorial

Creating a Simple XML

Published by:

Creating a Simple XML
When use elements and attributes?

Usage of attributes or elements is usually decided by the data you are trying to model.

For instance, if a certain entity is PART of the data, then it is advisable to make it an element. For example the name of the employee is an essential part of the employee data.

Now if you want to convey METADATA about data (something that provides additional information about the data) but is not really part of the data, then it is better to make it an attribute. For instance, lets say each employee has a GUID needed for back end processing, then making it an attribute is better.(GUID is not something that conveys really useful information to someone looking at the xml, but might be necessary for other purposes).

Data repeats (1 to many), it’s probably an element

Data never repeats, and only makes sense when correlated to something else, it’s an attribute.

There is no rule as such that says something should be an attribute or a element.

Its not necessary to AVOID attributes at all costs..Sometimes they are easier to model, than elements. It really depends on the data you are trying to represent.

Creating an XML with an example:

Here we will be creating an XML for book Library. The following data we need to have in the XML –

  • Book name
  • Book Author
  • Issued To
  • Issued Date
  • Returned Date
Sample 1:

<?xml version = "1.0" encoding = "UTF-8" ?>
  <book name='Guide to the Galaxy 2' author='Honey Maxi'>
        <issued name='Zaphod Beeblebrox'>
    <book name='On the Run' author='Jack Mauga'>
    <issued name='June Hox'>
Sample 2:

<?xml version = "1.0" encoding = "UTF-8" ?>
    <book name='Guide to the Galaxy 2'>
    <author>Honey Maxi</author>
    <author>Kira Maxi</author>
      <name>Zaphod Beeblebrox</name>
    <book name='On the Run'>
    <author>Jack Mauga</author>
      <name>June Hox</name>
Sample 3:

<?xml version = "1.0" encoding = "UTF-8" ?>
  <book name='Guide to the Galaxy 2'>
      <author>Honey Maxi</author>
        <to>Zaphod Beeblebrox</to>
  <book name='On the Run'>
      <author>Jack Mauga</author>
        <to>June Hox</to>
XML Tutorial

Understanding XML Structure

Published by:

XML Structure

XML has XML Definition, below it Root element and inside it its child elements and attribute.

To write a correct XML we need flow few guidelines:

XML Syntax:

<XML Definition>
1. XML Definition:

This is an optional field, but used in most of the XML. This field comes at the very start of your XML and should not even have any space or character before it. This defines the metadata for the XML been used below. It contains XML version and XML file encoding.

XML file Encoding – File encoding depicts various characters a particular file may have. Every encoding have different sets of characters build into it. For example: If you live in US for example, you could go pretty far with ASCII. But in many counties we need characters like ä, å, ü etc. (If so was ASCII only or you try to read this text as ASCII encoded text, you’d see some weird characters in the places of ä, å and ü.) Think also the China, Japan, Thailand and other “exotic” countries, you might need more verity of characters thus need to use a different encoding type.
There are various different types of file encoding, example: UTF-8 (most commonly used), UTF-16, UTF-32, ISO-8859 etc.

<?xml version="1.0" encoding="UTF-8"?>
2. Root Element

This is a mandatory field, and is the parent of all the elements. All the other elements to be defined in XML should and must come inside one root element. There can only be one root element in the XML. Here “student” is the root element and also the parent element to its child element “firstname” and “lastname

<?xml version="1.0" encoding="UTF-8"?>
3. Child Elements

All the other elements defined comes inside root element. Which can have other elements or attributes in it.

XML has 2 basic components

  • Elements
  • Attribute

Elements are building blocks of XML. Element are defined using tags. There are closing and opening tag in every element in XML.

Opening Tag:


Closing Tag:


Both opening and closing tags when combined together creates element


Elements can have opening tag; and closing tag inside it. Such elements will not hold any text data inside it. Also know as Empty Elements or empty tag.

<firstname />
Elements may contain attributes, text data or other elements inside it know as child elements.Examples:

  • Elements with Text data
  • Element with attribute
    <firstname gender="female">Varun</firstname>
  • Element with Child Elements: All the elements inside parent element are referred as child elements. Here “student” is an parent element to child element “firstname“.
        <firstname gender="male">Varun</firstname>

Attributes are part of elements and are defined only in opening tag of an element. Attributes define addition information to the element, more of a metadata. There can be no or multiple attributes to an element.
Syntax: name=”vaule”

<firstname gender="female">Varun</firstname>

Here we have defined attribute gender=”male”.


XML Tutorial

XML – Why and Its Uses

Published by:

XML stands for Extensible Markup Language.
Why use XML

Suppose, communication is to be established between applications by sending messages. Application A wants to send first names and last name of students to application B and B on receiving the message should acknowledge it sending message “Accepted”. There are many different message formats in which application A can send message to application B. They won’t be able to properly communicate until a proper message structure is defined between application A and B.

Thus, XML defines a message structure for the data that needs to be communicated between different applications.

Other Uses of XML

  • XML can be used to store data.
  • Better for rendering data in a structure format, i.e. records and lists and trees
  • Its is used by many programming tools/software.
  • Can be used to render HTML
Why XML is so widely used

  • Validation – XML allows validation of its data and structure using XSD or Schema.
  • Searchable – Content inside XML can be easily searched using XPATH or XQuery
  • Transformation – XSLT can be used to transform data in XML into desired format.
  • Parsing – XML has Parsing standards: DOM, SAX, StAX
Example of XML



Mule 3 Mulesoft Basics Mulesoft Tutorial

Externalizing Common Mule Flows

Published by:

Externalizing Common Mule Flows

In this tutorial we will be externalizing some common mule flows so they can be used by multiple Mule Applications
For Example – If I have a common exception handling which is same for all my other applications and I want to externalize this common exception handling code so that –
1. No one in the team can modify the common flows leading to code discrepancy.
2. Teams don’t have to copy same code again and again in my next API which they are going to build.
3. Also, This will also help my API code look more neat and clean.

Externalizing common mule flows can be achieved by exporting the flows to be externalized into a JAR file and then importing the JAR in other applications. Tells look on the details of how we can do this with just few steps.

1. Understanding the Flow

In the flow below we want to externalize sub flow – “externalizeMuleAPISub_Flow” which is been called by Flow reference in Get and Post  Flows  and exception handling – “externalizeMuleAPI-apiKitGlobalExceptionMapping”.

2. Creating new Mule project

We need to create a new mule project and dump the mule common flows that we want to externalize into it. And remove copied code from our previous project.

Here we have deleted and added the 2 flows from our old project into our new project.


3. Exporting the new project as JAR file.

Here are the steps to be followed to export the project as JAR.

Right Click on the Project in Package Explorer >> Click Export

In the Popup Window Select Java>Jar File and Click Next.

Select The project to be exported “externalflows” and add the path where the JAR is to be saved and Click Finish.


Now, we have create the project with common flows as Jar and export it to the specified location.

4. Importing the JAR file

Now after exporting JAR, we need to import it to our main project.

To Import the Jar -> go to Project Properties and Click “Add External Jars” and select the JAR File.

5. Adding the Common Flows

Now we need to add the mule XML file name that we have imported as JAR into our main project.

6. Running the Code

You might see few error been reported by Mule even after adding the mule XML filename. But do not worry on building the application all the error will go off.

Being Healthy Cancer Diabetes Causing Products Death by Sugar

Pepsi, Coca-cola, Thumps Up Its Ingredients – Cancer and Diabetes

Published by:

In today’s busy schedule where diseases like diabetes and cancer are on the rise, we need to more health conscious. Thus, it’s important to know if the eatables that we purchase from market are safe for us, and not leading us to these deadly diseases.

Soft drinks! We frequently savor these- in parties or in general. But do we know ,what are it’s ingredients and it’s nutritional value. If not, then do read this post till the end, after which you’ll never drink these again.

We’ll talk about Pepsi, Coca-cola and Thumps Up, their ingredients and the diseases these may cause. All the bottles are of 600 ml each which usually make up 2 regular size glasses. The ingredients are similar in all these bottles. You can also check these ingredients, as they are printed on the bottle.

These all have –

  • Carbonated water
  • Caffeine
  • Acidity regulator
  • Color
  • flavor
  • and lots of sugar.

Let’s talk about these ingredients in details:

In each 100 ml of the soft drink, it has 10 – 12 grams of sugar, that means in a bottle of 600 ml it has approximately 60 grams sugar. In 2 glasses of lemonade you might be adding 3-4 teaspoon of sugar whereas these 600 ml bottles have more than 15 teaspoons of sugar. This high quantity of sugar can lead to various diseases. This may lead to weak eyesight, heart problems, obesity, tooth decay, kidney problems and diabetes.
If you think that you are safe, because you are consuming these once a week or a month then you’ll be shocked to know that our body needs around 25 grams of sugar in a Day whereas 1 glass of these soft drink has 30 grams of it.

Acidity regulator 338 or phosphoric acid
This acid is used in various products like – pharmaceuticals, household cleaning agent, fertilizers, and in detergents. If consumed in high quantity it may lead to kidney disease and kidney stones and also reduce bone density. Company never mentions the quantity of this acid in theses bottles, but you can get an idea from the videos over the internet where its shown, that with the help of these soft drinks you can clean your toilets. You can also try this and trust me your toilet will be as clean as new.

It’s a chemical which is mostly found in coffee beans and tea leaves. Caffeine works as an energy drink which keeps us mentally alert and also provides relief from headache.
Caffeine taken in large quantity can cause blood pressure, heart attack and even weak bones. Diabetes patient should avoid this at all cost.

Can Soft drinks cause Cancer ?
According to Cancer Council Victoria and University of Melbourne reports, soft drinks can cause cancer even if u r suffering from obesity or not. In total these soft drinks are sweet poison that is made up of chemical, color, artificial flavor which has no nutritional value.

Being Healthy Cancer Diabetes Causing Products Death by Sugar

Frooti, Maaza, Slice – How many Mango do they Have?

Published by:

Frooti, Maaza and Slice. Are these really mango juice or factory produced chemical products? How many mangos does these juices actually have? We are going to reveal the real truth behind these products and I’m sure after reading this, you will never drink these mango juices.

In this blog we are going to talk about mango frooti, Tropicana Slice, Maaza and there content. These bottles are of 600ml which is equivalent to, 2 regular size glasses (350 ml each). And cost around Rs 37/-.

These products are made from almost same kind of ingredients. They’ve got –

  • Water
  • Sugar
  • Acidity Regulator
  • Antioxidant
  • Preservative
  • Synthetic Food Color
  • Mango Flavor (Artificial and Natural)
  • and Mango Pulp.

Let’s find out how much real mango they have.
Frooti and Maaza have about 19.5% mango pulp in 600 ml that’s around 117 ml, which is not even 1/3 of a regular glass. Try this at home, take a single regular size mango and make a pulp out of it, you will be surprised to know that the home made pulp will be double in quantity than what’s present in these bottles. These bottles have only half of real mango in it rest is all water and chemical.

Tropicana Slice has even lesser percentage. It has just 13.6% of concentrated mango pulp. What is concentrated mango pulp? It’s a process where water is extracted from the fruit either by heating or squeezing and later when needed water is added back.
Tropicana claims that there 600 ml bottle is having mango pulp equivalent to single strength mango pulp. But never mention the weight or size of the single mango that they are taking about.


Coming on to Sugar. As per United States Department of Agriculture (USDA), 1 mango of 165 gms has 22 g of sugar. But these bottles have 13 grams of sugar for every 100ML that is 78 grams in a 600 ml bottle which is equivalent to 20 spoons of sugar. Assuming these juices has at most 1 mango in them amounting to approx 22 grams of natural sugar, to which, they still have more than 50 grams of additional processed sugar. A single glass of these juices have around 40 grams of sugar whereas an average healthy male body needs 25 to 30 grams of sugar in a day. Taking this much sugar can lead you standing next to number of diseases.

Now wondering how much Synthetic color and Artificial flavor is added to it? Let’s do an experiment. Try taking 1/3 of a regular glass around 150 ML of mango pulp and add 2 glasses of water to it. How will it taste like “Taste like Water hummm!!”. Whereas these drinks are having same thickness and color as if of 2 glasses of real mango juices. So we can see how much color and flavor would have been added to it. Added Color and flavor quantity is not mentioned on the bottles but ya you guessed it right!

There’s still more… it has Acidity Regulator, Antioxidant and Preservative. Again, it’s quantity in which its added to the bottle is not mentioned! These ingredients taken in high quantity are very dangerous. And if in case u r already more dependent on packed food be aware u r already taking in high doses of these.

Over internet you will find lots of people now days taking frooti, maaza challenge and drinking 2.5 liters of these juices in just few minutes to get more likes and money. They are actually taking 325 grams of sugar! That to most of it is, processed sugar. This is way way too dangerous. Please don’t do or let anyone do, else what you will earn, you might spent on your treatment in a hospital for your entire life. Do read this blog of ours on what happens after taking high amount of sugar in our body. Link.

Talking about Nutritional value; its Noting!! compared to 1 real mango.

So, what do we conclude. With even less than 1 real mango fruits inside these 600 ml bottle, these juices are just sugary syrup nothing more and as dangerous as soft drinks. Please don’t drink these and specially not let your children drink. Better make these juices at home.
Thanks for reading, Please share, as this can save someone’s life and subscribe our channel. In our next blog we will be taking about Tropicana fruit juices, 100% real juice and find out what if these are really juices or something else.

Mule 4 Mulesoft Basics Mulesoft Tutorial

Variables in Mule 4

Published by:

Variable in Mule 4

In this Variable in Mule 4 tutorial we will look how we can create and use mule variable in Mule 4, and how it is different from Mule 3 and Mule 4.

In Mule 3 we had Flow variables, Session variables and record variable to store the data inside mule flow. But now in Mule 4 this has been changed; session variable and record variable has been removed and there is only Flow Variable.

As in Mule 3, Flow Variable in Mule 4 value is lost even when the flow crosses the transport barrier.
Session variable has been completely removed in Mule 4.

In Mule 4, flow variables have been enhanced to work efficiently during batch processing, just like the record variables. Flow variables created in batch steps are now automatically tied to the processing record and stays with it throughout the processing phase. No longer record variables are needed.
Continue reading

Mule 3 Mule Interview Question Mulesoft Tutorial

Interview Questions Mulesoft / Mule ESB Tutorial

Published by:

MuleSoft or Mule ESB interview Questions

Here are the 18 most important and common mulesoft or mule esb interview questions and answers which are bound to be asked in any Mule ESB interview. Whether it’s Mulesoft or Mule ESB interview with Accenture, Cognizant, Infosys, Deloitte or any company below Mule ESB interview questions are always always been asked. You can easily clear any Mulesoft or Mule ESB interview questions if you learn answers to these Mule ESB questions.

1. What are Web Services?

Web service is a function or program in any language that can be accessed over HTTP. Message format can be XML or JSON or any other program as long as the other programs can understand and communicate. Web services can be synchronous or asynchronous. Any web service has server-client relationship. Any web service can have multiple clients. Eg: When a travel portal is selling tickets of an airliner, Portal is client and the Airline is the server as it is selling its service. Continue reading

Mule 3 Mule Interview Question Mulesoft Tutorial

Interview Questions 2 – Mulesoft / Mule ESB Tutorial

Published by:

MuleSoft or Mule ESB interview Questions

Here are the most important and common mulesoft or mule esb interview questions and answers which are bound to be asked in any Mule ESB interview. Also see Mule Interview Questions I.

1. What are inbound and Outbound properties ?

Inbound properties are immutable, are automatically generated by the message source and cannot be set or manipulated by the user.  They contain metadata specific to the message source. A message retains its inbound properties only for the duration of the flow; when a message passes out of a flow, its inbound properties do not follow it.
Continue reading

Mule 3 Mule Interview Question Mulesoft Tutorial

RAML Interview Questions – Mule Tutorial

Published by:

RAML Interview Questions.

In this mule tutorial, here are the most important and common RAML interview questions and answers which are bound to be asked in any Mule ESB interview.

1. What is RAML and why we use it?

RAML – RESTful API Modeling Language
RAML is similar to WSDL, it contains endpoint URL, request/response schema, HTTP methods and query and URI parameter.
RAML helps client (a consumer of the service) know, what the service is and what/how all operations can be invoked.
RAML helps the developer in creating the initial structure of this API. RAML can also be used for documentation purpose.

2. Who can you import RAML in your poject?

Read here: Mule Tutorial – Creating Mule Project with RAML
Continue reading

Mule 3 Mulesoft Basics Mulesoft Tutorial

Validation Framework – Handling Business Errors MuleSoft

Published by:

MuleSoft Validation Framework – Handling Business Errors

In this tutorial of mulesoft validation we will create an exception handling framework that will generate business/logical error and do custom validations to request/response message while mapping mulesoft code and learn how to handle those error.
For example: The message that mulesoft application received should have some validations while mapping to the backend application request, in case of validation failure the application should throw an error with error message.

The validations are:
1. if a is (a < b or a < 10) then generate error with error message “A should not be less than 10 or b”.
2. all the values a or b or c or d sum should be less than 500 else generate error with message “a+b+c+d should be less than 500.”

The above example, can be resolved in couple of ways and we will see one of the most simplest and easy way by creating validation framework.
We will resolve by using dataweave and a custom exception class.
Continue reading

Mule 3 Mulesoft Basics Mulesoft Tutorial

Scatter-Gather In Depth – MuleSoft Tutorial

Published by:

MuleSoft Scatter-Gather Scope

In this tutorial we will look at various configuration properties of Scatter-Gather with examples in detail and also see how to handle exception in Scatter-Gather.

Why use Scatter-Gather in Mulesoft:
To achieve parallel processing of multiple flows in mule we can use Scatter-Gather. The routing message processor Scatter-Gather sends a request message to multiple routes concurrently which are configured inside Scatter-Gather and collects the responses from all routes, and aggregates them into a single message. There will be multiple threads created for executing multiple routes simultaneously.
Scatter-Gather can also execute multiple routes sequentially.

Please read Validation Framework to understand how error is generated in the example.
Continue reading

Mule 3 Mulesoft Basics Mulesoft Tutorial

Caching or Cache Scope – Mulesoft / Mule ESB Tutorial

Published by:

Caching In Mule ESB or Cache Scope

In this Mule ESB tutorial we will look into what is caching and why to use it, how can we implement caching in mulesoft project and  configuration properties in Mule Cache Scope/Activity. Also a step by step configuration of mule cache scope/activity and how to cache information retrieved from database. Please refer to Mule Tutorial: Connecting with Database mule tutorial to know how to connect to database in Mule ESB.

What is caching and why to use it?

Caching is a concept with is used to store frequently used data in the memory, file system or database which saves processing time and load if it would have to be access from original source location every time.

For example: We have to create an API to retrieve user information, that has connect to an external database which is on different server and fetch the records. (Assumption: external DB is not changing frequently)
Continue reading

Mule 3 Mulesoft Basics Mulesoft Tutorial

Understanding Various Mule Flows – Mulesoft Tutorial

Published by:

Mulesoft / Mule EBS – Mule Flows Tutorial
Mule Flows

In this mule ESB tutorial we will understand various mule flows in detail with downloadable examples.

Various types of flows in mule

There are 4 types of flows in mule. While creating these flows the flow name should be unique in whole mule project despite beaning in different mule application XML file.


  1. Subflow always processes messages synchronously (relative to the flow that triggered its execution).
  2. Subflow executes in the same thread of the calling process. Calling process triggers the sub-flow and waits for it to complete and resumes once the sub-flow has completed.
  3. Subflow inherits processing strategy and exception handling strategy from the parent/calling flow.

Use – It can be used to split common logic and be reused by other flows.
Continue reading

Mule 3 Mulesoft Basics Mulesoft Tutorial

Creating Mule Project with RAML – Mulesoft / Mule ESB Tutorial

Published by:

Creating Mule Project with RAML

In this Mule tutorial we will learn how to create Mule project with RAML and a detailed walk-through on how the Mule flow works in case of a success or error scenario:

Mule ESB – What is RAML and why it’s used

RAML stands for RESTful API Modeling Language and is similar to WSDL. A RAML provides a structure to an API and also help the client who is invoking the API to know before hand what the API does.

A RAML contains:

  1. Endpoint URL with its Query parameters and URI parameters,
  2. HTTP methods to which API is listening to (GET, POST, PUT, DELETE),
  3. Request and response schema and sample message,
  4. HTTP response code that an API will return (eg: 200, 400, 404, 500). Continue reading