<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ravi Teja Gajarla on Medium]]></title>
        <description><![CDATA[Stories by Ravi Teja Gajarla on Medium]]></description>
        <link>https://medium.com/@raviteja-gajarla?source=rss-8a444c9be66c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*iPJO-n38J7TImXcf.jpg</url>
            <title>Stories by Ravi Teja Gajarla on Medium</title>
            <link>https://medium.com/@raviteja-gajarla?source=rss-8a444c9be66c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:53:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@raviteja-gajarla/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Java Code to publish and consume from RabbitMQ using JMS and AMQP]]></title>
            <link>https://raviteja-gajarla.medium.com/java-code-to-publish-and-consume-from-rabbitmq-using-jms-and-amqp-d5ba1ff745a8?source=rss-8a444c9be66c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5ba1ff745a8</guid>
            <dc:creator><![CDATA[Ravi Teja Gajarla]]></dc:creator>
            <pubDate>Mon, 21 Jul 2025 01:51:27 GMT</pubDate>
            <atom:updated>2025-07-21T01:51:27.797Z</atom:updated>
            <content:encoded><![CDATA[<p>Here is the sample Java code to connect to RabbitMQ to publish and consume messages using both JMS and AMQP libraries.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab050e74491bb9f06e9d2a6ebe59815e/href">https://medium.com/media/ab050e74491bb9f06e9d2a6ebe59815e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5ba1ff745a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python code to read data from MongoDB with filters]]></title>
            <link>https://raviteja-gajarla.medium.com/python-code-to-read-data-from-mongodb-with-filters-1843286d835b?source=rss-8a444c9be66c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1843286d835b</guid>
            <dc:creator><![CDATA[Ravi Teja Gajarla]]></dc:creator>
            <pubDate>Sun, 20 Jul 2025 17:30:51 GMT</pubDate>
            <atom:updated>2025-07-20T17:30:51.405Z</atom:updated>
            <content:encoded><![CDATA[<p>Here is the simple python code to read data from MongoDB with filters that are commonly used. Used pymongo from MongoClient.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/50e7a503a2b022bb3af4f2c68b720815/href">https://medium.com/media/50e7a503a2b022bb3af4f2c68b720815/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1843286d835b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Masking sensitive data using Dataweave in Mulesoft]]></title>
            <link>https://raviteja-gajarla.medium.com/masking-sensitive-data-using-dataweave-in-mulesoft-86eaff64e356?source=rss-8a444c9be66c------2</link>
            <guid isPermaLink="false">https://medium.com/p/86eaff64e356</guid>
            <dc:creator><![CDATA[Ravi Teja Gajarla]]></dc:creator>
            <pubDate>Sat, 16 Jan 2021 19:59:02 GMT</pubDate>
            <atom:updated>2021-01-17T00:45:19.220Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, we will discuss an example of how to mask sensitive data using Dataweave in Mulesoft. Dataweave has an operator called mask which can achieve data masking. In order to use mask function we have to import Values (dw::util::Values).</p><p>Input:</p><pre>{<br> &quot;employee&quot;: {<br>  &quot;id&quot;: &quot;101&quot;,<br>  &quot;firstName&quot;: &quot;John&quot;,<br>  &quot;lastName&quot;: &quot;Grisham&quot;,<br>  &quot;designation&quot;: &quot;Engineer&quot;,<br>  &quot;salary&quot;: 20000,<br>  &quot;gender&quot;: &quot;M&quot;,<br>  &quot;email&quot;: &quot;101@a.com&quot;,<br>  &quot;phone&quot;: &quot;1234567890&quot;<br> }<br>}</pre><p>Output:</p><pre>{<br> &quot;employee&quot;: {<br>  &quot;id&quot;: &quot;101&quot;,<br>  &quot;firstName&quot;: &quot;JOHN&quot;,<br>  &quot;lastName&quot;: &quot;G***&quot;,<br>  &quot;designation&quot;: &quot;Engineer&quot;,<br>  &quot;salary&quot;: &quot;$20,000.00&quot;,<br>  &quot;gender&quot;: &quot;M&quot;,<br>  &quot;email&quot;: &quot;***@a.com&quot;,<br>  &quot;phone&quot;: &quot;(###)-###-7890&quot;<br> }<br>}</pre><p>Below image shows the dataweave code and output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ErfSVNf93hlz5IkrbAK9Qg.png" /></figure><p>Below image shows the same logic for array input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V_F-K8jieGd5iWh73hwvrA.png" /></figure><p>Here is the dataweave code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f8a2e946ff2f6c878cbcf5c7a277e29/href">https://medium.com/media/3f8a2e946ff2f6c878cbcf5c7a277e29/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86eaff64e356" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Update individual fields in object using Dataweave in Mule 4]]></title>
            <link>https://raviteja-gajarla.medium.com/update-individual-fields-in-object-using-dataweave-in-mule-4-350dd4f58836?source=rss-8a444c9be66c------2</link>
            <guid isPermaLink="false">https://medium.com/p/350dd4f58836</guid>
            <dc:creator><![CDATA[Ravi Teja Gajarla]]></dc:creator>
            <pubDate>Fri, 15 Jan 2021 19:53:45 GMT</pubDate>
            <atom:updated>2021-01-15T19:53:45.195Z</atom:updated>
            <content:encoded><![CDATA[<p>The following code snippet helps to modify individual fields in a object.</p><p>Input:</p><pre>[{<br> &quot;id&quot;: &quot;111&quot;,<br> &quot;name&quot;: &quot;Ernie&quot;,<br> &quot;address&quot;: &quot;Hulo&quot;<br>}, {<br> &quot;id&quot;: &quot;112&quot;,<br> &quot;name&quot;: &quot;John&quot;,<br> &quot;address&quot;: &quot;Huawei&quot;,<br> &quot;email&quot;: &quot;b@a.com&quot;<br>}]</pre><p>Output:</p><pre>[{<br>  &quot;id&quot;: &quot;111&quot;,<br>  &quot;name&quot;: &quot;Ernie&quot;,<br>  &quot;address&quot;: &quot;Hulo&quot;,<br>  &quot;email&quot;: &quot;a@a.com&quot;<br> },<br> {<br>  &quot;id&quot;: &quot;112&quot;,<br>  &quot;name&quot;: &quot;John&quot;,<br>  &quot;address&quot;: &quot;Huawei&quot;,<br>  &quot;email&quot;: &quot;b@a.com&quot;<br>}]</pre><p>Below image shows the dataweave code to achieve above output using update operator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M0Ifn-eMjyo9mxXAnSa8HQ.png" /></figure><p>Below is the dataweave code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/99ef8ee36de2d1d94d451161a16ba184/href">https://medium.com/media/99ef8ee36de2d1d94d451161a16ba184/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=350dd4f58836" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Parse nested JSON with dynamic keys in Dataweave 2.0 Mule 4]]></title>
            <link>https://raviteja-gajarla.medium.com/parse-nested-json-with-dynamic-keys-in-dataweave-2-0-mule-4-ca847d07a9bf?source=rss-8a444c9be66c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca847d07a9bf</guid>
            <dc:creator><![CDATA[Ravi Teja Gajarla]]></dc:creator>
            <pubDate>Fri, 01 Jan 2021 20:31:42 GMT</pubDate>
            <atom:updated>2021-01-01T20:31:42.195Z</atom:updated>
            <content:encoded><![CDATA[<p>The below shown dataweave code is a usecase to read nested json object keys dynamically.</p><p>Scenario: Keys are in a separate array. Values for these are in nested in the same object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MkmOimKO0Pdr7XpMcgy8kw.png" /></figure><p>Input:</p><pre>&quot;data&quot;: {<br> &quot;schema&quot;: &quot;g5uhJxM3EDHB9UQ5rdqfhw&quot;,<br> &quot;payload&quot;: {<br>  &quot;BillingAddress&quot;: {<br>   &quot;State&quot;: &quot;MN&quot;,<br>   &quot;Street&quot;: &quot;45 WEST 132ND RD&quot;,<br>   &quot;PostalCode&quot;: &quot;10038&quot;,<br>   &quot;City&quot;: &quot;Albany&quot;<br>  },<br>  &quot;LastModifiedDate&quot;: &quot;2020-01-18T18:56:50.000Z&quot;,<br>  &quot;Phone&quot;: &quot;2128629611&quot;,<br>  &quot;ChangeEventHeader&quot;: {<br>   &quot;commitNumber&quot;: 10650061284745,<br>   &quot;commitUser&quot;: &quot;0054T000001EgNOQA0&quot;,<br>   &quot;sequenceNumber&quot;: 1,<br>   &quot;entityName&quot;: &quot;Account&quot;,<br>   &quot;changeType&quot;: &quot;UPDATE&quot;,<br>   &quot;changedFields&quot;: [<br>    &quot;Phone&quot;,<br>    &quot;LastModifiedDate&quot;,<br>    &quot;LastModifiedById&quot;,<br>    &quot;Name.FirstName&quot;,<br>    &quot;Name.LastName&quot;,<br>    &quot;BillingAddress.Street&quot;,<br>    &quot;BillingAddress.City&quot;,<br>    &quot;BillingAddress.State&quot;,<br>    &quot;BillingAddress.PostalCode&quot;<br>   ],<br>   &quot;changeOrigin&quot;: &quot;com/salesforce/api/soap/48.0;client=SfdcInternalAPI/&quot;,<br>   &quot;transactionKey&quot;: &quot;0008b822-43ef-5d0b-a8b6-3f5974f155e1&quot;,<br>   &quot;commitTimestamp&quot;: 1579373810000,<br>   &quot;recordIds&quot;: [<br>    &quot;0011k00000Y07GvAAJ&quot;<br>   ]<br>  },<br>  &quot;HealthCloudGA__SourceSystemId__c&quot;: &quot;24556&quot;,<br>  &quot;LastModifiedById&quot;: &quot;0054T000001EgNOQA0&quot;,<br>  &quot;Name&quot;: {<br>   &quot;FirstName&quot;: &quot;MIKE&quot;,<br>   &quot;LastName&quot;: &quot;BOLTON&quot;<br>  }<br> },<br> &quot;event&quot;: {<br>  &quot;replayId&quot;: 1033698<br> }<br>}</pre><p>Output:</p><pre>{<br> &quot;PostalCode&quot;: &quot;10038&quot;,<br> &quot;State&quot;: &quot;MN&quot;,<br> &quot;City&quot;: &quot;Albany&quot;,<br> &quot;Street&quot;: &quot;45 WEST 132ND RD&quot;,<br> &quot;LastName&quot;: &quot;BOLTON&quot;,<br> &quot;FirstName&quot;: &quot;MIKE&quot;,<br> &quot;LastModifiedById&quot;: &quot;0054T000001EgNOQA0&quot;,<br> &quot;LastModifiedDate&quot;: &quot;2020-01-18T18:56:50.000Z&quot;,<br> &quot;Phone&quot;: &quot;2128629611&quot;<br>}</pre><p>Dataweave Code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ada3a1c787ee6809b3ddc12f653f8365/href">https://medium.com/media/ada3a1c787ee6809b3ddc12f653f8365/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca847d07a9bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Convert each key value entry in an array to separate object]]></title>
            <link>https://raviteja-gajarla.medium.com/convert-each-key-value-entry-in-an-array-to-separate-object-771cf98bf05f?source=rss-8a444c9be66c------2</link>
            <guid isPermaLink="false">https://medium.com/p/771cf98bf05f</guid>
            <dc:creator><![CDATA[Ravi Teja Gajarla]]></dc:creator>
            <pubDate>Thu, 29 Oct 2020 21:40:02 GMT</pubDate>
            <atom:updated>2020-10-29T21:40:02.383Z</atom:updated>
            <content:encoded><![CDATA[<p>The following dataweave code converts each key value entry in an array of objects to separate object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zHEG9xwRbNfrsNMOO86jew.png" /></figure><p>You can find the above dataweave code below for you to play with it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eb907df1f55d2cc27079dcefc36b4cee/href">https://medium.com/media/eb907df1f55d2cc27079dcefc36b4cee/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=771cf98bf05f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Convert data to XML with multiple namespace in root element in Dataweave 2.0 Mule 4]]></title>
            <link>https://raviteja-gajarla.medium.com/convert-data-to-xml-with-multiple-namespace-in-root-element-in-dataweave-2-0-mule-4-7a45020c96c?source=rss-8a444c9be66c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a45020c96c</guid>
            <dc:creator><![CDATA[Ravi Teja Gajarla]]></dc:creator>
            <pubDate>Fri, 09 Oct 2020 19:47:23 GMT</pubDate>
            <atom:updated>2023-07-23T17:14:57.852Z</atom:updated>
            <content:encoded><![CDATA[<p>The following dataweave code converts attributes to xml payload with namespace in Anypoint studio.</p><p>Here the speciality is to keep the second namespace for the inner elements in the root atribute in the xml payload. Generally dataweave doesn’t allow for two namespaces in the root element.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L60BcmnE5pI9AEKIeZOESA.png" /></figure><p>Please find the code below for your reference.</p><p><a href="https://gist.github.com/ravitejagrt/9e4172acca1d1d515ca5978686b385dd">https://gist.github.com/ravitejagrt/9e4172acca1d1d515ca5978686b385dd</a></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/99574eb0581501d5f498bd876d4a92c4/href">https://medium.com/media/99574eb0581501d5f498bd876d4a92c4/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a45020c96c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Convert data in Array to a String in dataweave 2.0 Mule 4]]></title>
            <link>https://raviteja-gajarla.medium.com/convert-data-in-array-to-a-string-in-dataweave-2-0-mule-4-bf2448eb8070?source=rss-8a444c9be66c------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf2448eb8070</guid>
            <dc:creator><![CDATA[Ravi Teja Gajarla]]></dc:creator>
            <pubDate>Fri, 09 Oct 2020 19:26:05 GMT</pubDate>
            <atom:updated>2020-10-09T19:29:48.613Z</atom:updated>
            <content:encoded><![CDATA[<p>The below dataweave code converts the content of and array to a string using reduce operator.</p><p>This logic very useful to convert any kind of data into a string in Dataweave.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JGSS82rXI35F1mmCQcMZrg.png" /></figure><p>Please find the code below for your reference.</p><p><a href="https://gist.github.com/ravitejagrt/8068c9b86acf1da163ac963eca0e0d34">https://gist.github.com/ravitejagrt/8068c9b86acf1da163ac963eca0e0d34</a></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7b8849e9d3dcb2a3b874115d6679959b/href">https://medium.com/media/7b8849e9d3dcb2a3b874115d6679959b/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf2448eb8070" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keystore vs Truststote Differences]]></title>
            <link>https://raviteja-gajarla.medium.com/keystore-vs-truststote-differences-334710c53db9?source=rss-8a444c9be66c------2</link>
            <guid isPermaLink="false">https://medium.com/p/334710c53db9</guid>
            <dc:creator><![CDATA[Ravi Teja Gajarla]]></dc:creator>
            <pubDate>Fri, 09 Oct 2020 18:39:55 GMT</pubDate>
            <atom:updated>2020-10-09T18:40:19.170Z</atom:updated>
            <content:encoded><![CDATA[<h3>Keystore vs Truststore Differences</h3><p>The following tables presents basic understanding and insights into the keystore and trustore differences</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*375RUHQCf3Tyg3RMm43DcA.jpeg" /></figure><p><strong>KeyStore</strong></p><p>· Keystore is used to store your credential</p><p>· Truststore is used to store others credential</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — -</p><p>· Keystore holds private keys, certificates with public keys and some secret keys that identify our own system</p><p>· It’s the opposite in case of truststore, truststore holds certificate that identify others</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — -</p><p>· When we must use HTTPS, server and client needs keystores and truststores</p><p>· For SSL handshake, server looks up its private key from the keystore and presents its corresponding public key and certificate to the client.</p><p>· Then client contains the server’s certificate in the truststore to make the connection.</p><p>This is one-way</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — -</p><p>For two way, (mutual authentication situation)</p><p>· Client also need to authenticate itself so, client presents it public key and certificate to the server.</p><p>· Server’s truststore contains it for validation and makes the connection</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=334710c53db9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>