<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8478734</id><updated>2012-02-01T07:51:38.846-08:00</updated><title type='text'>Ravi Reddy</title><subtitle type='html'>Currently Working for Oracle India in SOA Support.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default?start-index=101&amp;max-results=100'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>144</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8478734.post-4841213586227908128</id><published>2012-01-24T02:30:00.001-08:00</published><updated>2012-01-24T02:30:45.854-08:00</updated><title type='text'>How to increase JVM Memory Size for JDeveloper 11g</title><content type='html'>Open the file D:\fmw1115\Middleware\jdeveloper\ide\bin\ide.conf&lt;br /&gt;&lt;br /&gt;and change the lines&lt;br /&gt;&lt;br /&gt;AddVMOption  -Xmx1024M&lt;br /&gt;AddVMOption  -Xms128M&lt;br /&gt;&lt;br /&gt;Also open the file D:\fmw1115\Middleware\jdeveloper\jdev\bin\jdev.conf&lt;br /&gt;&lt;br /&gt;and change the line &lt;br /&gt;&lt;br /&gt;AddVMOption  -XX:MaxPermSize=256M&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-4841213586227908128?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/4841213586227908128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=4841213586227908128' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4841213586227908128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4841213586227908128'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2012/01/how-to-increase-jvm-memory-size-for.html' title='How to increase JVM Memory Size for JDeveloper 11g'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-4755848812386095517</id><published>2012-01-19T01:41:00.001-08:00</published><updated>2012-01-19T01:41:15.548-08:00</updated><title type='text'>20 Linux System Monitoring Tools Every SysAdmin Should Know</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Nice Artcile ,&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html" href="http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html"&gt;http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-4755848812386095517?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/4755848812386095517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=4755848812386095517' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4755848812386095517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4755848812386095517'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2012/01/20-linux-system-monitoring-tools-every.html' title='20 Linux System Monitoring Tools Every SysAdmin Should Know'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-3130723740471927287</id><published>2011-12-13T21:10:00.001-08:00</published><updated>2011-12-13T21:10:55.924-08:00</updated><title type='text'>BSNL 3g Prepaid Data Card Recharge</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I used the site &lt;a href="http://www.paytm.com/"&gt;http://www.paytm.com/&lt;/a&gt; , here Select Data Card Option and Select the Provider as BSNL and&amp;#160; Select the Circle as Karnataka, after this enter the amount , you need to exactly put the amount that is required for the data card recharge,&lt;/p&gt;  &lt;p&gt;You can find the details from this site , &lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.bsnl.in/service/3G/3G_files/3g.htm"&gt;http://www.bsnl.in/service/3G/3G_files/3g.htm&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;If the value is shown as 100, then you need to put 103/-&lt;/p&gt;  &lt;p&gt;For Karnataka for Rs.103/- you get the 225MB download , &lt;/p&gt;  &lt;p&gt;you can find exact amount from the URL , &lt;/p&gt;  &lt;p&gt;&lt;a href="http://portal.bsnl.in/rc/aspxfiles/3GRechargeSelect.aspx"&gt;http://portal.bsnl.in/rc/aspxfiles/3GRechargeSelect.aspx&lt;/a&gt; , by giving your mobile number ,&lt;/p&gt;  &lt;p&gt;To find the 3g usage &lt;/p&gt;  &lt;p&gt;dial *123# from your phone &lt;/p&gt;  &lt;p&gt;You can contact BSNL 3g data card call center using the number ,&lt;/p&gt;  &lt;p&gt;Contact Number: 9448024365&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.bangaloretelecom.com/3gservices/3gservices.html" href="http://www.bangaloretelecom.com/3gservices/3gservices.html"&gt;http://www.bangaloretelecom.com/3gservices/3gservices.html&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-3130723740471927287?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/3130723740471927287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=3130723740471927287' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3130723740471927287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3130723740471927287'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/12/bsnl-3g-prepaid-data-card-recharge.html' title='BSNL 3g Prepaid Data Card Recharge'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-5282941075682879161</id><published>2011-12-01T21:40:00.001-08:00</published><updated>2011-12-01T21:40:05.700-08:00</updated><title type='text'>How to Add a Hard Disk Space to Oracle VM</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;1. Create a 30GB file ,&lt;/p&gt;  &lt;p&gt;dd if=/dev/zero of=fmw11g.img&amp;#160; bs=1024k count=30000&lt;/p&gt;  &lt;p&gt;2. Add the file /OVM/linuxvm/fmw11g.img   &lt;br /&gt;to the vm.cfg file , for example ,&lt;/p&gt;  &lt;p&gt;disk = ['file:/OVM/linuxvm/System.img,xvda,w','file:/OVM/linuxvm/fmw11g.img,xvdb,w',]&lt;/p&gt;  &lt;p&gt;3. Now start the VM by using the command ,   &lt;br /&gt;xm create vm.cfg&lt;/p&gt;  &lt;p&gt;4. In the fdisk -l command , you should be able to see this file ,&lt;/p&gt;  &lt;p&gt;For example ,&lt;/p&gt;  &lt;p&gt;fdisk -l&lt;/p&gt;  &lt;p&gt;Disk /dev/xvda: 12.8 GB, 12884901888 bytes   &lt;br /&gt;255 heads, 63 sectors/track, 1566 cylinders    &lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; Device Boot&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Start&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; End&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Blocks&amp;#160;&amp;#160; Id&amp;#160; System   &lt;br /&gt;/dev/xvda1&amp;#160;&amp;#160; *&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 13&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 104391&amp;#160;&amp;#160; 83&amp;#160; Linux    &lt;br /&gt;/dev/xvda2&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 14&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1264&amp;#160;&amp;#160;&amp;#160; 10048657+&amp;#160; 83&amp;#160; Linux    &lt;br /&gt;/dev/xvda3&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1265&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1566&amp;#160;&amp;#160;&amp;#160;&amp;#160; 2425815&amp;#160;&amp;#160; 82&amp;#160; Linux swap / Solaris&lt;/p&gt;  &lt;p&gt;Disk /dev/xvdb: 31.4 GB, 31457280000 bytes   &lt;br /&gt;255 heads, 63 sectors/track, 3824 cylinders    &lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/p&gt;  &lt;p&gt;5. using fdisk /dev/xvdb command create a partion and format that partition   &lt;br /&gt;using the command ,&lt;/p&gt;  &lt;p&gt;mkfs.ext3 /dev/xvdb1&lt;/p&gt;  &lt;p&gt;6. After this mount this file system by adding this entry to the /etc/fstab file ,   &lt;br /&gt;/dev/xvdb1&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; /fmw11g&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ext3&amp;#160;&amp;#160;&amp;#160; defaults&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1 2&lt;/p&gt;  &lt;p&gt;run the command , mount -a   &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-5282941075682879161?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/5282941075682879161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=5282941075682879161' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5282941075682879161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5282941075682879161'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/12/how-to-add-hard-disk-space-to-oracle-vm.html' title='How to Add a Hard Disk Space to Oracle VM'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-5502770274790711213</id><published>2011-11-25T02:24:00.001-08:00</published><updated>2011-11-25T02:24:06.749-08:00</updated><title type='text'>Find out whether a Schema is Valid or Not</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Some times in SOA you need to find out whether the schema you have designed/developed is valid and conforms to XML schema standards etc. &lt;/p&gt;  &lt;p&gt;For this you can use the JDK 1.6 tool xjc.exe to check ,&lt;/p&gt;  &lt;p&gt;%JDK_HOME%\bin\xjc.exe &amp;lt;your-schema-file&amp;gt; and check whether you are getting errors or not.   &lt;br /&gt;When I ran the xjc command with the original schmea , I got the errors    &lt;br /&gt;parsing a schema...    &lt;br /&gt;[ERROR] sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'party,IdentificationType'.    &lt;br /&gt;&amp;#160; line 45 of file:/D:/bugs-download/Bug12965191/restriction_example/restriction/schema-restriction/xsd/party/party.xsd    &lt;br /&gt;[ERROR] rcase-Recurse.2: There is not a complete functional mapping between the particles.    &lt;br /&gt;&amp;#160; line 7 of file:/D:/bugs-download/Bug12965191/restriction_example/restriction/schema-restriction/xsd/local-party.xsd    &lt;br /&gt;[ERROR] derivation-ok-restriction.5.4.2: Error for type 'LocalPartyType7'.&amp;#160; The particle of the type is not a valid restriction of the particle of the base.    &lt;br /&gt;&amp;#160; line 7 of file:/D:/bugs-download/Bug12965191/restriction_example/restriction/schema-restriction/xsd/local-party.xsd    &lt;br /&gt;Failed to parse a schema.&lt;/p&gt;  &lt;p&gt;The above error indicates that schema is not a valid schema.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-5502770274790711213?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/5502770274790711213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=5502770274790711213' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5502770274790711213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5502770274790711213'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/11/find-out-whether-schema-is-valid-or-not.html' title='Find out whether a Schema is Valid or Not'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-448585838610403224</id><published>2011-11-23T01:25:00.001-08:00</published><updated>2011-11-23T01:40:17.586-08:00</updated><title type='text'>How to set the SOA composite name</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;By default no composite name is set when a SOA componenet gets executed.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;XPath for Mediator components:    &lt;br /&gt;Use the the following XPath expression in an Assign value dialog when you define a routing rule.&lt;/p&gt;  &lt;p&gt;med:setCompositeInstanceTitle(title string)&lt;/p&gt;  &lt;p&gt;and use the following target tracking.compositeInstanceTitle.   &lt;br /&gt;Note: this property will not appear in the property selection dialog, but can be used though.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;Java for BPEL components    &lt;br /&gt;Add an Embedded Java activity inside your process flow and add the following function to it:&lt;/p&gt;  &lt;p&gt;setCompositeInstanceTitle(title string);   &lt;br /&gt;for example , &lt;/p&gt;  &lt;p&gt;In the java embeding add the following code ,&lt;/p&gt;  &lt;p&gt;System.out.println(&amp;quot;Hello, World 11 &amp;quot;+ new java.util.Date());   &lt;br /&gt;setCompositeInstanceTitle(&amp;quot;Hello, World 11 &amp;quot;+ new java.util.Date());    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Reference &lt;/p&gt;  &lt;p&gt;&lt;a title="http://docs.oracle.com/cd/E15523_01/integration.1111/e10226/soacompapp_mang.htm" href="http://docs.oracle.com/cd/E15523_01/integration.1111/e10226/soacompapp_mang.htm"&gt;http://docs.oracle.com/cd/E15523_01/integration.1111/e10226/soacompapp_mang.htm&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;For 10g use &lt;/p&gt;  &lt;p&gt;System.out.println(&amp;quot;Hello, World 11 &amp;quot;+ new java.util.Date());    &lt;br /&gt;setTitle(&amp;quot;Hello, World 11 &amp;quot;+ new java.util.Date());&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-448585838610403224?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/448585838610403224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=448585838610403224' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/448585838610403224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/448585838610403224'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/11/how-to-set-soa-composite-name.html' title='How to set the SOA composite name'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-9174375194305304315</id><published>2011-10-11T21:05:00.001-07:00</published><updated>2011-10-11T21:05:04.554-07:00</updated><title type='text'>HTTP Proxy Server Settings for the SOA/Weblogic Server</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Set the following env variables before staring the SOA Server ,&lt;/p&gt;  &lt;p&gt;On Unix&lt;/p&gt;  &lt;p&gt;export JAVA_OPTIONS=&amp;quot;-Dhttp.proxySet=true -Dhttp.proxyHost=www-proxy.us.oracle.com&amp;#160; -Dhttp.proxyPort=80&amp;#160; -Dhttp.nonProxyHosts=localhost.localdomain|127.0.0.1|localhost|*.idc.oracle.com&amp;quot;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;On Windows&lt;/p&gt;  &lt;p&gt;On Unix&lt;/p&gt;  &lt;p&gt;set JAVA_OPTIONS=&amp;quot;-Dhttp.proxySet=true -Dhttp.proxyHost=www-proxy.us.oracle.com&amp;#160; -Dhttp.proxyPort=80&amp;#160; -Dhttp.nonProxyHosts=localhost.localdomain|127.0.0.1|localhost|*.idc.oracle.com&amp;quot;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;After this start the WebLogic Server.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-9174375194305304315?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/9174375194305304315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=9174375194305304315' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/9174375194305304315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/9174375194305304315'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/10/http-proxy-server-settings-for.html' title='HTTP Proxy Server Settings for the SOA/Weblogic Server'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2202071244912115464</id><published>2011-10-04T21:04:00.001-07:00</published><updated>2011-10-04T21:39:35.583-07:00</updated><title type='text'>BPEL Example of Inserting to Array</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I have the following XSD Element , &lt;/p&gt;  &lt;p&gt;Basically this structure stores the name and address (multiple values) , state , country and pincode etc ,    &lt;br /&gt;My requirement is to add the data to this element from a BPEL process ,&lt;/p&gt;  &lt;p&gt;&amp;lt;complexType&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;sequence&amp;gt;     &lt;br /&gt;&amp;#160; &amp;lt;element name=&amp;quot;fullname&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;element name=&amp;quot;addrline&amp;quot; type=&amp;quot;string&amp;quot; maxOccurs=&amp;quot;unbounded&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;element name=&amp;quot;state&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;element name=&amp;quot;country&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;element name=&amp;quot;zip&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/sequence&amp;gt;     &lt;br /&gt;&amp;#160; &amp;lt;/complexType&amp;gt;&lt;/p&gt;  &lt;p&gt;Create a simple BPEL process , and for the output select the above XSD element , in the BPEL    &lt;br /&gt;&lt;/p&gt;  &lt;pre class="brush: xml"&gt; &lt;br /&gt;&lt;br /&gt;      &lt;assign name="Assign1"&gt;&lt;br /&gt;     &lt;copy&gt;&lt;br /&gt;        &lt;from expression="Ravi Reddy" /&gt;&lt;br /&gt;        &lt;to variable="outputVariable" query="/client:processResponse/client:fullname" part="payload" /&gt;&lt;br /&gt;      &lt;/copy&gt;&lt;br /&gt;      &lt;copy&gt;&lt;br /&gt;        &lt;from expression="&amp;#39;KA&amp;#39;" /&gt;&lt;br /&gt;        &lt;to variable="outputVariable" query="/client:processResponse/client:state" part="payload" /&gt;&lt;br /&gt;      &lt;/copy&gt;&lt;br /&gt;      &lt;copy&gt;&lt;br /&gt;        &lt;from expression="&amp;#39;INDIA&amp;#39;" /&gt;&lt;br /&gt;        &lt;to variable="outputVariable" query="/client:processResponse/client:country" part="payload" /&gt;&lt;br /&gt;      &lt;/copy&gt;&lt;br /&gt;      &lt;copy&gt;&lt;br /&gt;        &lt;from expression="&amp;#39;560078&amp;#39;" /&gt;&lt;br /&gt;        &lt;to variable="outputVariable" query="/client:processResponse/client:zip" part="payload" /&gt;&lt;br /&gt;      &lt;/copy&gt;&lt;br /&gt;      &lt;br /&gt;       &lt;copy&gt;&lt;br /&gt;        &lt;from expression="&amp;#39;No: 3&amp;#39;" /&gt;&lt;br /&gt;        &lt;to variable="outputVariable" query="/client:processResponse/client:addrline" part="payload" /&gt;&lt;br /&gt;      &lt;/copy&gt;&lt;br /&gt;       &lt;br /&gt;       &lt;br /&gt;                &lt;bpelx:insertafter&gt;&lt;br /&gt;                    &lt;bpelx:from&gt;&lt;client:addrline&gt;Near Dairy Circle&lt;/client:addrline&gt;&lt;/bpelx:from&gt;&lt;br /&gt;                    &lt;bpelx:to variable="outputVariable" query="/client:processResponse/client:addrline[1]" part="payload"&gt;&lt;/bpelx:to&gt;&lt;br /&gt;                &lt;/bpelx:insertafter&gt;&lt;br /&gt;                &lt;br /&gt;                 &lt;bpelx:insertbefore&gt;&lt;br /&gt;                    &lt;bpelx:from&gt;&lt;client:addrline&gt;Next to Christ University&lt;/client:addrline&gt;&lt;/bpelx:from&gt;&lt;br /&gt;                    &lt;bpelx:to variable="outputVariable" query="/client:processResponse/client:addrline[1]" part="payload"&gt;&lt;/bpelx:to&gt;&lt;br /&gt;                &lt;/bpelx:insertbefore&gt;&lt;br /&gt;                &lt;br /&gt;                  &lt;bpelx:insertafter&gt;&lt;br /&gt;                    &lt;bpelx:from&gt;&lt;client:addrline&gt;Bannerghata Road&lt;/client:addrline&gt;&lt;/bpelx:from&gt;&lt;br /&gt;                    &lt;bpelx:to variable="outputVariable" query="/client:processResponse/client:addrline[2]" part="payload"&gt;&lt;/bpelx:to&gt;&lt;br /&gt;                &lt;/bpelx:insertafter&gt;&lt;br /&gt;               &lt;br /&gt;          &lt;br /&gt;            &lt;br /&gt;    &lt;/assign&gt;&lt;br /&gt;    &lt;br /&gt;    &lt;/pre&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2202071244912115464?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2202071244912115464/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=2202071244912115464' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2202071244912115464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2202071244912115464'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/10/bpel-example-of-inserting-to-array.html' title='BPEL Example of Inserting to Array'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-6016707401074997043</id><published>2011-10-04T20:47:00.001-07:00</published><updated>2011-10-04T20:47:49.651-07:00</updated><title type='text'>How to start the VM in Single user mode in Oracle VM 2.2/3.0/XEN</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Add the following line to the end of the file vm.cfg file ,&lt;/p&gt;  &lt;p&gt;extra = 'single'&lt;/p&gt;  &lt;p&gt;to the xen domU config file &lt;/p&gt;  &lt;p&gt;After this start the VM using the command ,&lt;/p&gt;  &lt;p&gt;xm create vm.cfg&lt;/p&gt;  &lt;p&gt;This will start the VM in single user mode. &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-6016707401074997043?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/6016707401074997043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=6016707401074997043' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6016707401074997043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6016707401074997043'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/10/how-to-start-vm-in-single-user-mode-in.html' title='How to start the VM in Single user mode in Oracle VM 2.2/3.0/XEN'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-1555452446071347784</id><published>2011-10-04T20:45:00.001-07:00</published><updated>2011-10-04T20:45:45.804-07:00</updated><title type='text'>How to Run the Oracle VM 2.2 Images on Oracle VM 3.0 With out the Oracle VM Manager</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I am having problems with the Oracle VM manager 3.0 as it needs 6GB machine to run in my home. Here is the procedure I followed to run the Oracle VM 2.2 images on Oracle VM 3.0.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;1. You need to set the Bridged Networking on Oracle VM 3.0&lt;/p&gt;  &lt;p&gt;open the file &lt;/p&gt;  &lt;p&gt; vi /etc/xen/xend-config.sxp&lt;/p&gt;  &lt;p&gt;Uncomment the following line , (Line no 163)&lt;/p&gt;  &lt;p&gt;(network-script network-bridge)&lt;/p&gt;  &lt;p&gt;And also ensure that you have the following line uncommented (line 178)&lt;/p&gt;  &lt;p&gt;(vif-script vif-bridge)&lt;/p&gt;  &lt;p&gt;After this restart the Oracle VM Server&lt;/p&gt;  &lt;p&gt;Run the command ,&lt;/p&gt;  &lt;p&gt; brctl show&amp;#160; (This displays the following , )&lt;/p&gt;  &lt;p&gt;bridge name&amp;#160;&amp;#160;&amp;#160;&amp;#160; bridge id&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; STP enabled&amp;#160;&amp;#160;&amp;#160;&amp;#160; interfaces   &lt;br /&gt;bond0&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 8000.0021918b3e8a&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; no&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; pbond0&lt;/p&gt;  &lt;p&gt;In the linux guest vm I have the following line ,&lt;/p&gt;  &lt;p&gt;vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0']   &lt;br /&gt;vif = ['type=netfront']&lt;/p&gt;  &lt;p&gt;In the Windows Guest OS I have the following line ,&lt;/p&gt;  &lt;p&gt;vif = ['bridge=bond0,mac=00:16:3E:26:BE:CE,type=ioemu']&lt;/p&gt;  &lt;p&gt;Start the VM’s manually using the command&lt;/p&gt;  &lt;p&gt;xm create vm.cfg&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-1555452446071347784?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/1555452446071347784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=1555452446071347784' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1555452446071347784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1555452446071347784'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/10/how-to-run-oracle-vm-22-images-on.html' title='How to Run the Oracle VM 2.2 Images on Oracle VM 3.0 With out the Oracle VM Manager'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-7617932793081511281</id><published>2011-07-31T20:45:00.001-07:00</published><updated>2011-07-31T20:45:18.698-07:00</updated><title type='text'>Wants to Send SMS Reminder at a future data and only one</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I want to fire a job at 9:59 AM on July-14-2011 , 7/14/2011 (MM/DD/YYYY)&lt;/p&gt;  &lt;p&gt;echo /home/ias/Oracle/Middleware/jdk160_18/bin/java -cp /home/ias/JavaUtils Sms160By2 9198808XXXXX &amp;quot;\&amp;quot;Test 5&amp;quot;\&amp;quot; | at 9:59 AM 7/14/2011&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-7617932793081511281?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/7617932793081511281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=7617932793081511281' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7617932793081511281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7617932793081511281'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/07/wants-to-send-sms-reminder-at-future.html' title='Wants to Send SMS Reminder at a future data and only one'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-9192438970207452301</id><published>2011-07-31T20:37:00.001-07:00</published><updated>2011-07-31T20:37:30.111-07:00</updated><title type='text'>Install VmWare ESXI Server from USB</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;1) Format the US Drive with fat32.   &lt;br /&gt;2) Get Syslinux, not the version 4, but an older version. Use 3.86 from &lt;a href="http://www.kernel.org/pub/linux/utils/boot/syslinux/3.xx/"&gt;http://www.kernel.org/pub/linux/utils/boot/syslinux/3.xx/&lt;/a&gt;     &lt;br /&gt;Version 4 can give you an error on boot, &amp;quot;invalid c32 image&amp;quot;.    &lt;br /&gt;3) Run syslinux: syslinux.exe -m -f -a G: (G: being the drive letter).    &lt;br /&gt;4) Get the ESXi iso,&amp;#160; VMware-VMvisor-Installer-4.1.0.update1-348481.x86_64.iso     &lt;br /&gt;5) Extract the iso, using the 7-Zip and copy contents to usb drive    &lt;br /&gt;6) Rename isolinux.cfg to syslinux.cfg    &lt;br /&gt;7) Modify the syslinux.cfg, add &amp;quot;ks=usb&amp;quot; after vmkboot.gz&lt;/p&gt;  &lt;p&gt;For example , &lt;/p&gt;  &lt;p&gt;append vmkboot.gz ks=usb --- vmkernel.gz --- sys.vgz --- cim.vgz --- ienviron.vgz --- install.vgz&lt;/p&gt;  &lt;p&gt;8) Create the ks.cfg file in the USB root directory with the following contents&lt;/p&gt;  &lt;p&gt;vmaccepteula   &lt;br /&gt;rootpw Welcome1    &lt;br /&gt;autopart --firstdisk --overwritevmfs    &lt;br /&gt;install usb    &lt;br /&gt;network --bootproto=dhcp --device=vmnic0&lt;/p&gt;  &lt;p&gt;9) Boot it from the USB and install the ESXi software&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-9192438970207452301?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/9192438970207452301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=9192438970207452301' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/9192438970207452301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/9192438970207452301'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/07/install-vmware-esxi-server-from-usb.html' title='Install VmWare ESXI Server from USB'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-4501482323730228928</id><published>2011-07-24T21:36:00.001-07:00</published><updated>2011-07-24T21:36:20.288-07:00</updated><title type='text'>Installing VMware ESXi  on a USB Memory Stick</title><content type='html'>&lt;p&gt;1.The first thing you’ll need is a spare USB memory stick. I used 1 8GB USB drive for this. But 4GB or 2GB is also sufficient for this.   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 2.&amp;#160; The next step is to download ESXi from VMware here and burn if off onto CD.&lt;/p&gt;  &lt;p&gt;3. Now insert the USB memory stick into a USB port which is able to be booted.   &lt;br /&gt;Though at this stage make sure that your server can boot from the CD/DVD drive.&lt;/p&gt;  &lt;p&gt;4. Insert the CD containing the ESXi install into the servers CD/DVD drive and boot or restart the server.   &lt;br /&gt;Choose the default options.&lt;/p&gt;  &lt;p&gt;5. At this stage you will see a list of all your storage devices connected to your VMware ESXi host – select your USB memory stick and press 'Enter'&lt;/p&gt;  &lt;p&gt;6. Wait while the ESXi is written down to your USB flash drive – at this point you should see it flashing away    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;7. Once the installation has completed you will receive the screen below.&amp;#160; At this point remove the ESXi installation CD from the servers CD/DVD drive and press ‘Enter’ to reboot the server.    &lt;br /&gt;IMPORTANT: Upon the server rebooting ensure that its boot priority order is set so that the USB port(s) are booted from first.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;Your server should now be booting successfully off of the USB memory stick to VMware ESXi&amp;#160; 4 – all you need to do now is configure it!&lt;/p&gt;  &lt;p&gt;After this you have to create a VMFS file system that can be used as a data store ,&lt;/p&gt;  &lt;p&gt;For this you need to create a VMFS file system. First run the command ,    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;fdisk -l&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt; Disk /dev/disks/t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740: 1000.2 GB, 1000204886016 bytes&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt; 255 heads, 63 sectors/track, 121601 cylinders&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt; Units = cylinders of 16065 * 512 = 8225280 bytes&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Device Boot&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Start&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; End&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Blocks&amp;#160; Id System&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt; /dev/disks/t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740p1&amp;#160;&amp;#160; *&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 13&amp;#160;&amp;#160;&amp;#160; 102400&amp;#160;&amp;#160;&amp;#160; 7&amp;#160; HPFS/NTFS&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt; Partition 1 does not end on cylinder boundary&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt; /dev/disks/t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740p2&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 13&amp;#160;&amp;#160;&amp;#160;&amp;#160; 19123 153497600&amp;#160;&amp;#160;&amp;#160; 7&amp;#160; HPFS/NTFS&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt; /dev/disks/t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740p3&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 19123&amp;#160;&amp;#160;&amp;#160;&amp;#160; 31871 102400000&amp;#160;&amp;#160;&amp;#160; 7&amp;#160; HPFS/NTFS&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt; ...&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt; /dev/disks/t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740p8&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 39573&amp;#160;&amp;#160;&amp;#160;&amp;#160; 51731&amp;#160; 97659146&amp;#160;&amp;#160; 83&amp;#160; Linux&amp;#160; &lt;br /&gt;&amp;#160; &lt;br /&gt;And run the command     &lt;br /&gt;fdisk /dev/disks/t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740&lt;/p&gt;  &lt;p&gt;and create a partion , and specify the format type as &amp;quot;fb&amp;quot;. This is for the VMFS file system.&lt;/p&gt;  &lt;p&gt;In the fdisk , type &amp;quot;t&amp;quot;. It will ask you for partition number. This is where that first fdisk is useful. You need to know what the new partition number is.    &lt;br /&gt;It will be one more than the last number on fdisk. Type this number in &lt;/p&gt;  &lt;p&gt;You will now be prompted for the hex code for the partition type. You can also type &amp;quot;L&amp;quot; for a list of codes. The code you want is &amp;quot;fb&amp;quot;. So type &amp;quot;fb&amp;quot; in the space. This will return that the partition has been changed to fb (unknown). &lt;/p&gt;  &lt;p&gt;Now run the command to create the VMFS file system ,&lt;/p&gt;  &lt;p&gt;vmkfstools -C vmfs3 -S storage1 /vmfs/devices/disks/vml.0100000000202020202057442d574341563548323430373430574443205744:9&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt; Checking if remote hosts are using this device as a valid file system. This may take a few seconds...&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt; Creating vmfs3 file system on &amp;quot;t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740:9&amp;quot; with blockSize 1048576 and volume label &amp;quot;storage1&amp;quot;.    &lt;br /&gt; Successfully created new volume: 4e2c8868-54253438-de36-001aa0c2472f&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160; &lt;br /&gt;&amp;#160; &lt;br /&gt;If you do not specify the VMFS file system , while creating the vmfs file system you may get the error as ,&lt;/p&gt;  &lt;p&gt;vmkfstools -C vmfs3 -S storage1 /vmfs/devices/disks/vml.0100000000202020202057442d574341563548323430373430574443205744:9&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt; Checking if remote hosts are using this device as a valid file system. This may take a few seconds...&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt; Creating vmfs3 file system on &amp;quot;t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740:9&amp;quot; with blockSize 1048576 and volume label &amp;quot;storage1&amp;quot;.vmkfstools -C vmfs3 -S storage1 /vmfs/devices/disks/vml.0100000000202020202057442d574341563548323430373430574443205744:9    &lt;br /&gt; /vmfs/devices/disks/vml.0100000000202020202057442d574341563548323430373430574443205744:9: Permission denied.&amp;#160; (Have you set the partition type to 0xfb?)&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt; Error: Permission denied &lt;/p&gt;  &lt;p&gt;Now in the VMWare VSphere Client you can see the datastore.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-4501482323730228928?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/4501482323730228928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=4501482323730228928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4501482323730228928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4501482323730228928'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/07/installing-vmware-esxi-on-usb-memory.html' title='Installing VMware ESXi  on a USB Memory Stick'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-4507345401909676634</id><published>2011-07-21T00:28:00.001-07:00</published><updated>2011-07-21T01:12:06.455-07:00</updated><title type='text'>Sending SMS to Multiple People</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;Sending SMS to Multiple People&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;I used the following code available at &lt;/p&gt;  &lt;p&gt;https://sourceforge.net/projects/servalivecheck/&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;I have a file say sms.txt with the following entries I want to send an SMS to all the people in this file.&lt;/p&gt;  &lt;p&gt;Sms.lst has the following entries&lt;/p&gt;  &lt;p&gt;Ravi,9198808XXXXX&lt;/p&gt;  &lt;p&gt;Naveen,919663XXXXX&lt;/p&gt;  &lt;p&gt;In Unix create an shell script with the following entries&lt;/p&gt;  &lt;p&gt;cat dd.sh&lt;/p&gt;  &lt;p&gt;#!/bin/bash&lt;/p&gt;  &lt;p&gt;for x in `awk -F',' '{ print $2 }' sms.lst`&lt;/p&gt;  &lt;p&gt;do&lt;/p&gt;  &lt;p&gt;/home/ias/Oracle/Middleware/jdk160_18/bin/java -cp /home/ias/JavaUtils Sms160By2 $x &amp;quot;\&amp;quot; We are playing Cricket on this Saturday &amp;quot;\&amp;quot;&lt;/p&gt;  &lt;p&gt;Done&lt;/p&gt;  &lt;p&gt;On Windows run the following batch file ,&lt;/p&gt;  &lt;p&gt;for /F &amp;quot;tokens=2* delims=,&amp;quot; %i in (sms.lst) do java -cp . Sms160By2 %i &amp;quot;We are playing Cricket on this Saturday&amp;quot;&lt;/p&gt;  &lt;p&gt;This sends the SMS to all the people in the group.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-4507345401909676634?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/4507345401909676634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=4507345401909676634' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4507345401909676634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4507345401909676634'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/07/sending-sms-to-multiple-people.html' title='Sending SMS to Multiple People'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-8757513956246541211</id><published>2011-07-12T00:35:00.001-07:00</published><updated>2011-07-12T00:35:05.247-07:00</updated><title type='text'>Yum Configuration With OEL</title><content type='html'>&lt;p&gt;Refer to the URL , &lt;a href="http://public-yum.oracle.com/"&gt;http://public-yum.oracle.com/&lt;/a&gt; for more details on this.&lt;/p&gt;  &lt;p&gt;1.Download and Install Oracle Linux&lt;/p&gt;  &lt;p&gt;2. Download and copy the appropriate yum configuration file in place, by running the following commands as root:&lt;/p&gt;  &lt;p&gt;Oracle Linux 5&lt;/p&gt;  &lt;p&gt;# cd /etc/yum.repos.d   &lt;br /&gt;# wget &lt;a href="http://public-yum.oracle.com/public-yum-el5.repo"&gt;http://public-yum.oracle.com/public-yum-el5.repo&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Enable the appropriate repository by editing the yum configuration file&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; Open the yum configuration file in a text editor   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Locate the section in the file for the repository you plan to update from, e.g. [el4_u6_base]    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Change enabled=0 to enabled=1&lt;/p&gt;  &lt;p&gt;Begin using yum, for example:&lt;/p&gt;  &lt;p&gt;yum list&lt;/p&gt;  &lt;p&gt;yum install firefox&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;After this install the oracle-validated package this will install the necessary packages and sets the kernel parameters    &lt;br /&gt;and also creates oracle user etc.&lt;/p&gt;  &lt;p&gt;yum install oracle-validated   &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-8757513956246541211?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/8757513956246541211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=8757513956246541211' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8757513956246541211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8757513956246541211'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/07/yum-configuration-with-oel.html' title='Yum Configuration With OEL'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-3268115229555474999</id><published>2011-07-10T20:04:00.001-07:00</published><updated>2011-07-10T20:09:04.523-07:00</updated><title type='text'>Parsing Railway’s PNR Data (JSON Parsing)</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Here I am using a Service from the following URL , &lt;/p&gt;  &lt;p&gt;&lt;a href="http://pnrapi.appspot.com/"&gt;http://pnrapi.appspot.com/&lt;/a&gt;&amp;lt;pnr-number&amp;gt;&lt;/p&gt;  &lt;p&gt;for example ,&lt;/p&gt;  &lt;p&gt;&lt;a href="http://pnrapi.appspot.com/1416780219"&gt;http://pnrapi.appspot.com/1416780219&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This gives the data in the following format ,&lt;/p&gt;  &lt;p&gt;{'status': 'OK', 'data': {'passenger': [{'status': 'G3&amp;#160; , 45', 'seat_number': 'W/L&amp;#160;&amp;#160; 15,CK'}],    &lt;br /&gt;'from': 'SC', 'alight': 'YPR', 'pnr_number': '1416780219', 'train_number': '*12735',     &lt;br /&gt;'to': 'YPR', 'board': 'SC', 'train_name': 'YPR GARIB RATH',     &lt;br /&gt;'travel_date': {'date': '26-6-2011', 'timestamp': 1309046400}, 'class': '3A'}}&lt;/p&gt;  &lt;p&gt;you need to have the following jar files in the classpath ,&lt;/p&gt;  &lt;p&gt;D:\fmw1114\Middleware\jdk160_21\bin\javaw.exe -client -classpath C:\JDeveloper\mywork\Application5\Project1\classes;D:\commons-httpclient-3.1\commons-io-2.0.1.jar;D:\commons-httpclient-3.1\json-lib-2.4-jdk15.jar;D:\commons-httpclient-3.1\commons-httpclient-3.1.jar;D:\commons-httpclient-3.1\commons-lang-2.6.jar;D:\commons-httpclient-3.1\commons-logging-1.1.1.jar;D:\commons-httpclient-3.1\commons-logging-adapters-1.1.1.jar;D:\commons-httpclient-3.1\commons-logging-api-1.1.1.jar;D:\commons-httpclient-3.1\commons-logging-tests.jar;D:\commons-httpclient-3.1\ezmorph-1.0.6.jar;D:\commons-httpclient-3.1\commons-collections-3.2.1.jar;D:\commons-httpclient-3.1\commons-beanutils-1.8.3.jar;D:\commons-httpclient-3.1\commons-beanutils-bean-collections-1.8.3.jar;D:\commons-httpclient-3.1\commons-beanutils-core-1.8.3.jar project1.ParsePNR   &lt;br /&gt;&lt;/p&gt;  &lt;pre class="brush: java"&gt;&lt;br /&gt;package project1;&lt;br /&gt;&lt;br /&gt;import java.io.BufferedReader;&lt;br /&gt;import java.io.InputStream;&lt;br /&gt;&lt;br /&gt;import java.io.InputStreamReader;&lt;br /&gt;&lt;br /&gt;import java.net.URL;&lt;br /&gt;&lt;br /&gt;import net.sf.json.JSONArray;&lt;br /&gt;import net.sf.json.JSONObject;&lt;br /&gt;import net.sf.json.JSONSerializer;&lt;br /&gt;import org.apache.commons.io.IOUtils;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class ParsePNR {&lt;br /&gt;    public ParsePNR() {&lt;br /&gt;        super();&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public static void main(String[] args) throws Exception {&lt;br /&gt;         //   InputStream is =&lt;br /&gt;          //          ParsingJSON.class.getResourceAsStream( &amp;quot;c:\\sample-json.txt&amp;quot;);&lt;br /&gt;            // String jsonTxt = IOUtils.toString( is );&lt;br /&gt;/*&lt;br /&gt;    String test = &amp;quot;\&amp;quot;status\&amp;quot; : \&amp;quot;OK\&amp;quot;,\n&amp;quot; + &lt;br /&gt;    &amp;quot;\&amp;quot;data\&amp;quot; : { \n&amp;quot; + &lt;br /&gt;    &amp;quot;          \&amp;quot;train_name\&amp;quot; : \&amp;quot;ERNAKULAM EXP\&amp;quot;,\n&amp;quot; + &lt;br /&gt;    &amp;quot;          \&amp;quot;train_number\&amp;quot; : \&amp;quot;*12677\&amp;quot;,\n&amp;quot; + &lt;br /&gt;    &amp;quot;          \&amp;quot;from\&amp;quot; : \&amp;quot;SBC\&amp;quot;,\n&amp;quot; + &lt;br /&gt;    &amp;quot;          \&amp;quot;to\&amp;quot; : \&amp;quot;CBE\&amp;quot;,\n&amp;quot; + &lt;br /&gt;    &amp;quot;          \&amp;quot;alight\&amp;quot; : \&amp;quot;CBE\&amp;quot;,\n&amp;quot; + &lt;br /&gt;    &amp;quot;          \&amp;quot;board\&amp;quot; : \&amp;quot;SBC\&amp;quot;,\n&amp;quot; + &lt;br /&gt;    &amp;quot;          \&amp;quot;class\&amp;quot; : \&amp;quot;2S\&amp;quot;,\n&amp;quot; + &lt;br /&gt;    &amp;quot;          \&amp;quot;travel_date\&amp;quot; : \&amp;quot;2- 6-2011\&amp;quot;\n&amp;quot; + &lt;br /&gt;    &amp;quot;          \&amp;quot;passenger\&amp;quot; : [ { \&amp;quot;seat_number\&amp;quot; : \&amp;quot;D8  , 31,GN\&amp;quot;, \&amp;quot;status\&amp;quot; : \&amp;quot;CNF\&amp;quot; },\n&amp;quot; + &lt;br /&gt;    &amp;quot;                          { \&amp;quot;seat_number\&amp;quot; : \&amp;quot;D8  , 32,GN\&amp;quot;, \&amp;quot;status\&amp;quot; : \&amp;quot;CNF\&amp;quot; } ]\n&amp;quot; + &lt;br /&gt;    &amp;quot;         }&amp;quot;;&lt;br /&gt;&lt;br /&gt;// Sample Data (1 passenger)&lt;br /&gt;{'status': 'OK', 'data': {'passenger': [{'status': 'G3  , 45', 'seat_number': 'W/L   15,CK'}], 'from': 'SC', 'alight': 'YPR', 'pnr_number': '1416780219', 'train_number': '*12735', 'to': 'YPR', 'board': 'SC', 'train_name': 'YPR GARIB RATH', 'travel_date': {'date': '26-6-2011', 'timestamp': 1309046400}, 'class': '3A'}}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// Sample Data (2 passenger)&lt;br /&gt;{'status': 'OK', 'data': {'passenger': [{'status': 'G3  , 45', 'seat_number': 'W/L   15,CK'},{'status': 'G3  , 46', 'seat_number': 'W/L   16,CK'}], 'from': 'SC', 'alight': 'YPR', 'pnr_number': '1416780219', 'train_number': '*12735', 'to': 'YPR', 'board': 'SC', 'train_name': 'YPR GARIB RATH', 'travel_date': {'date': '26-6-2011', 'timestamp': 1309046400}, 'class': '3A'}}&lt;br /&gt;&lt;br /&gt;Replace the class with class1 as class is a reserved word in java.&lt;br /&gt;&lt;br /&gt;  */&lt;br /&gt;        String pnr=&amp;quot;&amp;quot;;&lt;br /&gt;        if (args.length == 0 )&lt;br /&gt;            pnr = &amp;quot;1416780219&amp;quot;;&lt;br /&gt;        else&lt;br /&gt;            pnr = args[0];&lt;br /&gt;                System.setProperty(&amp;quot;http.proxyHost&amp;quot;, &amp;quot;www-proxy.us.oracle.com&amp;quot;);&lt;br /&gt;        System.setProperty(&amp;quot;http.proxyPort&amp;quot;, &amp;quot;80&amp;quot;);&lt;br /&gt;        System.setProperty(&amp;quot;http.nonProxyHosts&amp;quot;,&amp;quot;*.us.oracle.com|*.oraclecorp.com|*.idc.oracle.com|*.uk.oracle.com|localhost&amp;quot;);&lt;br /&gt;&lt;br /&gt;            URL url = new URL(&amp;quot;http://pnrapi.appspot.com/&amp;quot;+pnr);&lt;br /&gt;            // Read all the text returned by the server&lt;br /&gt;            BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));&lt;br /&gt;            String str=&amp;quot;&amp;quot;;&lt;br /&gt;            String line;&lt;br /&gt;            while ((line = in.readLine()) != null) {&lt;br /&gt;               // str is one line of text; readLine() strips the newline character(s)&lt;br /&gt;              str= str.concat(line );&lt;br /&gt;             //  System.out.println(line);&lt;br /&gt;             System.out.println(str);&lt;br /&gt;            }&lt;br /&gt;            in.close();&lt;br /&gt;      str=   str.replace(&amp;quot;'class':&amp;quot;,&amp;quot;'class1':&amp;quot;);&lt;br /&gt;             /*String jsonTxt =&amp;quot;{'status': 'OK', 'data': {'passenger': [{'status': 'G3  , 45', 'seat_number': 'W/L   15,CK'},{'status': 'G3  , 46', 'seat_number': 'W/L   16,CK'}], &amp;quot; +&lt;br /&gt;                &amp;quot;'from': 'SC', 'alight': 'YPR', 'pnr_number': '1416780219', &amp;quot; +&lt;br /&gt;                &amp;quot;'train_number': '*12735', 'to': 'YPR', 'board': 'SC', &amp;quot; +&lt;br /&gt;                &amp;quot;'train_name': 'YPR GARIB RATH', 'travel_date': {'date': '26-6-2011', 'timestamp': 1309046400}, &amp;quot; +&lt;br /&gt;                &amp;quot;'class1': '3A'}}&amp;quot;; */&lt;br /&gt;           String  jsonTxt = str;&lt;br /&gt;            JSONObject json = (JSONObject) JSONSerializer.toJSON( jsonTxt );&lt;br /&gt;            String status = json.getString( &amp;quot;status&amp;quot; );&lt;br /&gt;            if (status.compareToIgnoreCase(&amp;quot;INVALID&amp;quot;) == 0) {&lt;br /&gt;                &lt;br /&gt;                System.out.println(&amp;quot;Status is &amp;quot;+status);&lt;br /&gt;                System.exit(0);&lt;br /&gt;                &lt;br /&gt;            }&lt;br /&gt;            JSONObject data = json.getJSONObject(&amp;quot;data&amp;quot;);&lt;br /&gt;            String train_name = data.getString(&amp;quot;train_name&amp;quot;);&lt;br /&gt;            String train_number = data.getString(&amp;quot;train_number&amp;quot;);&lt;br /&gt;            String class_d = data.getString(&amp;quot;class1&amp;quot;);&lt;br /&gt;            String from = data.getString(&amp;quot;from&amp;quot;);&lt;br /&gt;            String alight = data.getString(&amp;quot;alight&amp;quot;);&lt;br /&gt;          &lt;br /&gt;            &lt;br /&gt;            JSONObject travel_date = data.getJSONObject(&amp;quot;travel_date&amp;quot;);&lt;br /&gt;           String date = travel_date.getString(&amp;quot;date&amp;quot;);&lt;br /&gt;          &lt;br /&gt;            &lt;br /&gt;            &lt;br /&gt;            &lt;br /&gt;            System.out.printf( &amp;quot;status: %s\n&amp;quot;, status );&lt;br /&gt;           &lt;br /&gt;            System.out.printf( &amp;quot;Train number : %s  Tain Name : %s \n&amp;quot;, train_number, train_name );&lt;br /&gt;            System.out.printf( &amp;quot;From : %s To : %s Date Of Travel : %s Class : %s\n&amp;quot;, from, alight , date , class_d   );&lt;br /&gt;            &lt;br /&gt;            JSONArray passenger = data.getJSONArray(&amp;quot;passenger&amp;quot;);&lt;br /&gt;           int i1=0;&lt;br /&gt;                for (Object o : passenger) {&lt;br /&gt;                    i1++;&lt;br /&gt;                    JSONObject passengerDetails = (JSONObject) o;&lt;br /&gt;                    String status_p = passengerDetails.getString(&amp;quot;status&amp;quot;);&lt;br /&gt;                    String seat_number = passengerDetails.getString(&amp;quot;seat_number&amp;quot;);&lt;br /&gt;                   &lt;br /&gt;                    System.out.printf( &amp;quot;Passenger : %d Current Status : %s  Previous Staus : %s\n&amp;quot;, i1,  status_p, seat_number );&lt;br /&gt;                  &lt;br /&gt;                }&lt;br /&gt;&lt;br /&gt;            &lt;br /&gt;           &lt;br /&gt;        }&lt;br /&gt;}&lt;/pre&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-3268115229555474999?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/3268115229555474999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=3268115229555474999' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3268115229555474999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3268115229555474999'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/07/parsing-railways-pnr-data-json-parsing.html' title='Parsing Railway’s PNR Data (JSON Parsing)'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-6517952642459062214</id><published>2011-07-06T23:34:00.001-07:00</published><updated>2011-07-06T23:34:12.483-07:00</updated><title type='text'>How to start the vncserver automatically</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Open the file&lt;/p&gt;  &lt;p&gt;vi .vnc/xstartup&lt;/p&gt;  &lt;p&gt;and add the line &lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;exec gnome-session &amp;amp;&lt;/p&gt;  &lt;p&gt;and remove the line that starts with &amp;quot;twm&amp;quot;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;chkconfig --level 3 vncserver on    &lt;br /&gt;chkconfig --level 5 vncserver on&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Add the following line in /etc/sysconfig/vncservers&lt;/p&gt;  &lt;p&gt;VNCSERVERS=&amp;quot;1:root&amp;quot;&lt;/p&gt;  &lt;p&gt;service vncserver start&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-6517952642459062214?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/6517952642459062214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=6517952642459062214' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6517952642459062214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6517952642459062214'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/07/how-to-start-vncserver-automatically.html' title='How to start the vncserver automatically'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-1857545657459278156</id><published>2011-07-05T05:06:00.001-07:00</published><updated>2011-07-05T05:10:06.572-07:00</updated><title type='text'>XE On Linux</title><content type='html'>&lt;p&gt;Oracle is installed to: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle&lt;/p&gt;  &lt;p&gt;To start XE&lt;/p&gt;  &lt;p&gt;/etc/init.d/oracle-xe start&lt;/p&gt;  &lt;p&gt;To stop XE&lt;/p&gt;  &lt;p&gt;/etc/init.d/oracle-xe stop&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;export PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin:$PATH   &lt;br /&gt;export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server    &lt;br /&gt;export ORACLE_SID=XE&lt;/p&gt;  &lt;p&gt;sqlplus &amp;quot;/ as sysdba&amp;quot;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;If you want to use Oracle XE as your database, you have to set the RCU_JDBC_TRIM_BLOCKS environment variable to TRUE *prior* to running RCU. As a reminder as to support level, when running RCU against XE you will receive a warning stating that the database version is not supported by Oracle.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-1857545657459278156?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/1857545657459278156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=1857545657459278156' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1857545657459278156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1857545657459278156'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/07/xe-on-linux.html' title='XE On Linux'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-7825346031323663155</id><published>2011-06-22T21:33:00.001-07:00</published><updated>2011-06-22T21:33:18.405-07:00</updated><title type='text'>Adding Source Code to a Blog</title><content type='html'>&lt;p&gt;&lt;a title="http://codeshode.blogspot.com/2010/06/format-my-source-code-for-blogging.html" href="http://codeshode.blogspot.com/2010/06/format-my-source-code-for-blogging.html"&gt;http://codeshode.blogspot.com/2010/06/format-my-source-code-for-blogging.html&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Copy the following Code&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Copy the following code and paste it into your Blogger Template just above the &lt;b&gt;&amp;lt;/head&amp;gt;&lt;/b&gt; tag&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;link&lt;/code&gt; &lt;code&gt;href&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/styles/shCore.css"&gt;http://alexgorbatchev.com/pub/sh/current/styles/shCore.css&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;rel&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'stylesheet'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/css'&lt;/code&gt;&lt;code&gt;/&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;link&lt;/code&gt; &lt;code&gt;href&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css"&gt;http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;rel&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'stylesheet'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/css'&lt;/code&gt;&lt;code&gt;/&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script&lt;/code&gt; &lt;code&gt;src&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js"&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/javascript'&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code&gt;script&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script&lt;/code&gt; &lt;code&gt;src&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js"&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/javascript'&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code&gt;script&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script&lt;/code&gt; &lt;code&gt;src&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCSharp.js"&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCSharp.js&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/javascript'&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code&gt;script&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script&lt;/code&gt; &lt;code&gt;src&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js"&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/javascript'&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code&gt;script&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script&lt;/code&gt; &lt;code&gt;src&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js"&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/javascript'&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code&gt;script&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script&lt;/code&gt; &lt;code&gt;src&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js"&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/javascript'&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code&gt;script&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script&lt;/code&gt; &lt;code&gt;src&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js"&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/javascript'&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code&gt;script&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script&lt;/code&gt; &lt;code&gt;src&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPython.js"&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPython.js&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/javascript'&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code&gt;script&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script&lt;/code&gt; &lt;code&gt;src&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushRuby.js"&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushRuby.js&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/javascript'&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code&gt;script&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script&lt;/code&gt; &lt;code&gt;src&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js"&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/javascript'&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code&gt;script&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script&lt;/code&gt; &lt;code&gt;src&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushVb.js"&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushVb.js&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/javascript'&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code&gt;script&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script&lt;/code&gt; &lt;code&gt;src&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js"&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/javascript'&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code&gt;script&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script&lt;/code&gt; &lt;code&gt;src&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'&lt;a href="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPerl.js"&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPerl.js&lt;/a&gt;'&lt;/code&gt; &lt;code&gt;type&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'text/javascript'&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code&gt;script&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;code&gt;script&lt;/code&gt; &lt;code&gt;language&lt;/code&gt;&lt;code&gt;=&lt;/code&gt;&lt;code&gt;'javascript'&lt;/code&gt;&lt;code&gt;&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;SyntaxHighlighter.config.bloggerMode = true; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;SyntaxHighlighter.config.clipboardSwf = '&lt;a href="http://alexgorbatchev.com/pub/sh/current/scripts/clipboard.swf"&gt;http://alexgorbatchev.com/pub/sh/current/scripts/clipboard.swf&lt;/a&gt;'; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;SyntaxHighlighter.all(); &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;/&lt;/code&gt;&lt;code&gt;script&lt;/code&gt;&lt;code&gt;&amp;gt;&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;a name="more"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Save the template &lt;/li&gt;    &lt;li&gt;Then you can start creating code blocks in your existing or new Blog entries. &lt;/li&gt;    &lt;li&gt;There are 2 ways to add a code block using syntaxhighlighter&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Add the following cdoe ,&lt;/p&gt;  &lt;pre&gt;&amp;lt;pre class=&amp;quot;brush: java&amp;quot;&amp;gt;&lt;br /&gt;// Comment&lt;br /&gt;public class Testing&lt;br /&gt;{&lt;br /&gt;public Testing() {&lt;br /&gt;}&lt;br /&gt;public void Method()&lt;br /&gt;{&lt;br /&gt;/* Another Comment&lt;br /&gt;on multiple lines */&lt;br /&gt;int x = 9;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&amp;lt;/pre&amp;gt;&lt;/pre&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-7825346031323663155?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/7825346031323663155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=7825346031323663155' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7825346031323663155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7825346031323663155'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/06/adding-source-code-to-blog.html' title='Adding Source Code to a Blog'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-1450940924292243808</id><published>2011-06-22T04:47:00.001-07:00</published><updated>2011-06-22T22:19:39.897-07:00</updated><title type='text'>How to use AQ with WebLogic Server</title><content type='html'>Create the jmsuser user for accessing the AQ   &lt;pre class="brush: sql"&gt;sqlplus SYS/manager1@ORCL AS SYSDBA&lt;br /&gt;&lt;br /&gt;grant connect,resource,aq_administrator_role to jmsuser identified by jmsuser;&lt;br /&gt;grant select on sys.DBA_PENDING_TRANSACTIONS to jmsuser;&lt;br /&gt;grant execute on sys.dbms_aqadm to jmsuser;&lt;br /&gt;grant execute on sys.dbms_aq to jmsuser;&lt;br /&gt;grant execute on sys.dbms_aqin to jmsuser;&lt;br /&gt;grant execute on sys.dbms_aqjms to jmsuser;&lt;br /&gt;exec dbms_aqadm.grant_system_privilege('ENQUEUE_ANY','jmsuser');&lt;br /&gt;exec dbms_aqadm.grant_system_privilege('DEQUEUE_ANY','jmsuser');&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java"&gt;package webserv1;&lt;br /&gt;&lt;br /&gt;import java.util.Hashtable;&lt;br /&gt;&lt;br /&gt;import javax.jms.Message;&lt;br /&gt;import javax.jms.Queue;&lt;br /&gt;import javax.jms.QueueConnection;&lt;br /&gt;import javax.jms.QueueConnectionFactory;&lt;br /&gt;import javax.jms.QueueReceiver;&lt;br /&gt;import javax.jms.QueueSender;&lt;br /&gt;import javax.jms.QueueSession;&lt;br /&gt;import javax.jms.Session;&lt;br /&gt;import javax.jms.TextMessage;&lt;br /&gt;&lt;br /&gt;import javax.naming.Context;&lt;br /&gt;import javax.naming.InitialContext;&lt;br /&gt;&lt;br /&gt;public class SendMsgQueue {&lt;br /&gt;    public SendMsgQueue() {&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public static void main(String argv[]) throws Exception {&lt;br /&gt;    &lt;br /&gt;         Hashtable env = new Hashtable(); &lt;br /&gt;         //  Standalone OC4J connection details &lt;br /&gt;         env.put(Context.INITIAL_CONTEXT_FACTORY, &amp;quot;weblogic.jndi.WLInitialContextFactory&amp;quot;); &lt;br /&gt;         env.put(Context.SECURITY_PRINCIPAL, &amp;quot;weblogic&amp;quot;); &lt;br /&gt;         env.put(Context.SECURITY_CREDENTIALS, &amp;quot;welcome1&amp;quot;); &lt;br /&gt;         env.put(Context.PROVIDER_URL, &amp;quot;t3://localhost:7001&amp;quot;);&lt;br /&gt;         // env.put(Context.PROVIDER_URL, &amp;quot;t3://ceiacb5.us.oracle.com:7001&amp;quot;);&lt;br /&gt;         InitialContext context = new InitialContext(env);&lt;br /&gt;         &lt;br /&gt;         &lt;br /&gt;          // The producer and consumer need to get a connection factory and use it to set up&lt;br /&gt;          // a connection and a session&lt;br /&gt;          &lt;br /&gt;          QueueConnectionFactory connFactory =           (QueueConnectionFactory) context.lookup(&amp;quot;AQJMS_XAConnectionFactory&amp;quot;);&lt;br /&gt;          QueueConnection conn = connFactory.createQueueConnection();&lt;br /&gt;          // This session is not transacted, and it uses automatic message acknowledgement&lt;br /&gt;          QueueSession session = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);&lt;br /&gt;          Queue q = (Queue) context.lookup(&amp;quot;jms/JMSDEMO_QUEUE1&amp;quot;);&lt;br /&gt;          // Sender&lt;br /&gt;          QueueSender sender = session.createSender(q);&lt;br /&gt;          // Text message&lt;br /&gt;          TextMessage msg = session.createTextMessage();&lt;br /&gt;          msg.setText("Hello Test123");&lt;br /&gt;          System.out.println(&amp;quot;Sending the message: &amp;quot;+msg.getText());&lt;br /&gt;          sender.send(msg);&lt;br /&gt;         &lt;br /&gt;          session.close();&lt;br /&gt;          conn.close();&lt;br /&gt;       }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java"&gt;&lt;strong&gt;&lt;font size="3"&gt;Program for Receving the Message&lt;/font&gt;&lt;/strong&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java"&gt;package webserv1;&lt;br /&gt;&lt;br /&gt;import java.util.Hashtable;&lt;br /&gt;&lt;br /&gt;import javax.jms.Message;&lt;br /&gt;import javax.jms.Queue;&lt;br /&gt;import javax.jms.QueueConnection;&lt;br /&gt;import javax.jms.QueueConnectionFactory;&lt;br /&gt;import javax.jms.QueueReceiver;&lt;br /&gt;import javax.jms.QueueSender;&lt;br /&gt;import javax.jms.QueueSession;&lt;br /&gt;import javax.jms.Session;&lt;br /&gt;import javax.jms.TextMessage;&lt;br /&gt;&lt;br /&gt;import javax.naming.Context;&lt;br /&gt;import javax.naming.InitialContext;&lt;br /&gt;&lt;br /&gt;public class RecvMsgQueue {&lt;br /&gt;    public RecvMsgQueue() {&lt;br /&gt;        super();&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;  public static void main(String argv[]) throws Exception {&lt;br /&gt;  &lt;br /&gt;       Hashtable env = new Hashtable(); &lt;br /&gt;       //  Standalone OC4J connection details &lt;br /&gt;       env.put(Context.INITIAL_CONTEXT_FACTORY, &amp;quot;weblogic.jndi.WLInitialContextFactory&amp;quot;); &lt;br /&gt;       env.put(Context.SECURITY_PRINCIPAL, &amp;quot;weblogic&amp;quot;); &lt;br /&gt;       env.put(Context.SECURITY_CREDENTIALS, &amp;quot;welcome1&amp;quot;); &lt;br /&gt;      env.put(Context.PROVIDER_URL, &amp;quot;t3://localhost:7001&amp;quot;); &lt;br /&gt;   // env.put(Context.PROVIDER_URL, &amp;quot;t3://ceiacb5.us.oracle.com:7001&amp;quot;); &lt;br /&gt;       InitialContext context = new InitialContext(env);&lt;br /&gt;         &lt;br /&gt;        // The producer and consumer need to get a connection factory and use it to set up&lt;br /&gt;        // a connection and a session&lt;br /&gt;        &lt;br /&gt;      //  QueueConnectionFactory connFactory = (QueueConnectionFactory) context.lookup(&amp;quot;jms/oc4jQueueConnFactory&amp;quot;);&lt;br /&gt;      QueueConnectionFactory connFactory =(QueueConnectionFactory) context.lookup(&amp;quot;AQJMS_XAConnectionFactory&amp;quot;);&lt;br /&gt;    &lt;br /&gt;      &lt;br /&gt;        QueueConnection conn = connFactory.createQueueConnection();&lt;br /&gt;        // This session is not transacted, and it uses automatic message acknowledgement&lt;br /&gt;        QueueSession session = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);&lt;br /&gt;       &lt;br /&gt;       Queue q = (Queue) context.lookup(&amp;quot;jms/JMSDEMO_QUEUE1&amp;quot;);&lt;br /&gt;     //   Queue q = (Queue) context.lookup(&amp;quot;jms/oc4jQueue&amp;quot;);&lt;br /&gt;      /*  // Sender&lt;br /&gt;        QueueSender sender = session.createSender(q);&lt;br /&gt;        // Text message&lt;br /&gt;        TextMessage msg = session.createTextMessage();&lt;br /&gt;        msg.setText(&amp;quot;Hello there!&amp;quot;);&lt;br /&gt;        System.out.println(&amp;quot;Sending the message: &amp;quot;+msg.getText());&lt;br /&gt;        sender.send(msg);&lt;br /&gt;        &lt;br /&gt;       */ &lt;br /&gt;        // Receiver&lt;br /&gt;        QueueReceiver receiver = session.createReceiver(q);&lt;br /&gt;        conn.start();&lt;br /&gt;        Message m = receiver.receive();&lt;br /&gt;        if(m instanceof TextMessage) {&lt;br /&gt;           TextMessage txt = (TextMessage) m;&lt;br /&gt;           System.out.println(&amp;quot;Message Received: &amp;quot;+txt.getText());&lt;br /&gt;        }&lt;br /&gt;        session.close();&lt;br /&gt;        conn.close();&lt;br /&gt;     }&lt;br /&gt;}&lt;/pre&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-1450940924292243808?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/1450940924292243808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=1450940924292243808' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1450940924292243808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1450940924292243808'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/06/how-to-use-aq-with-weblogic-server.html' title='How to use AQ with WebLogic Server'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-6385931640787956409</id><published>2011-06-20T04:15:00.001-07:00</published><updated>2011-06-20T04:15:46.391-07:00</updated><title type='text'>How to Install multiple Linux Distributions in the same Machine</title><content type='html'>&lt;p&gt;My requirement is to have the following OS's in my computer.&lt;/p&gt;  &lt;p&gt;Windows 7    &lt;br /&gt;Redhat Linux 4     &lt;br /&gt;Oracle Enterprise Linux 5&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;First install Windows 7.&lt;/p&gt;  &lt;p&gt;Using Windows 7 Disk Manager, create 3 partitions    &lt;br /&gt;say     &lt;br /&gt;hda5 =&amp;gt; 50 GB (For RedHat Linux)     &lt;br /&gt;hda6 =&amp;gt; 6 GB (For the Swap , we can use the same Swap for other linux install also)     &lt;br /&gt;hda7 =&amp;gt; 50GB ((For Oracle Linux)&lt;/p&gt;  &lt;p&gt;Now this install Redhat Linux 5 , select the root(/) partition as hda5    &lt;br /&gt;and swap as hda6. In the install screen please select the option to install the grub.&lt;/p&gt;  &lt;p&gt;Now install Oracle Linux 5 , here select the root(/) partition as hda7    &lt;br /&gt;and swap as hda6. &lt;/p&gt;  &lt;p&gt;In the install do not choose to install the grub option as you already have grub installed    &lt;br /&gt;by the first install.&lt;/p&gt;  &lt;p&gt;Now Boot the machine in to Redhat Linux and mount the hda7 partition.&lt;/p&gt;  &lt;p&gt;mount /dev/hda7 /test&lt;/p&gt;  &lt;p&gt;Find out the files under the directory /test/boot directory ,&lt;/p&gt;  &lt;p&gt;ls vm* init*&lt;/p&gt;  &lt;p&gt;initrd-2.6.18-194.el5.img&amp;#160;&amp;#160;&amp;#160;&amp;#160; vmlinuz-2.6.18-194.el5    &lt;br /&gt;initrd-2.6.18-194.el5PAE.img&amp;#160; vmlinuz-2.6.18-194.el5PAE&lt;/p&gt;  &lt;p&gt;Now edit the /etc/grub.cong file and add the following entries&lt;/p&gt;  &lt;p&gt;title Enterprise Linux (2.6.18-194.el5PAE)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; root (hd0,7)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; kernel /boot/vmlinuz-2.6.18-194.el5PAE ro root=LABEL=/ rhgb quiet     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; initrd /boot/initrd-2.6.18-194.el5PAE.img     &lt;br /&gt;title Enterprise Linux-base (2.6.18-194.el5)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; root (hd0,7)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; kernel /boot/vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; initrd /boot/initrd-2.6.18-194.el5.img&lt;/p&gt;  &lt;p&gt;After this restart the machine and now you will see OEL , Windows 7 and Redhat in the grub boot screen.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-6385931640787956409?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/6385931640787956409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=6385931640787956409' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6385931640787956409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6385931640787956409'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/06/how-to-install-multiple-linux.html' title='How to Install multiple Linux Distributions in the same Machine'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-4485717301158837110</id><published>2011-06-19T03:58:00.001-07:00</published><updated>2011-06-19T03:58:07.722-07:00</updated><title type='text'>EEVaram Links</title><content type='html'>&lt;p&gt;&lt;a href="http://www.eevaramjanavaartha.com/PDF/Rastriam.pdf"&gt;http://www.eevaramjanavaartha.com/PDF/Rastriam.pdf&lt;/a&gt;    &lt;br /&gt;&lt;a href="http://www.eevaramjanavaartha.com/PDF/Coverstory.pdf"&gt;http://www.eevaramjanavaartha.com/PDF/Coverstory.pdf&lt;/a&gt;    &lt;br /&gt;&lt;a href="http://www.eevaramjanavaartha.com/PDF/Rajakiyam.pdf"&gt;http://www.eevaramjanavaartha.com/PDF/Rajakiyam.pdf&lt;/a&gt;    &lt;br /&gt;&lt;a href="http://www.eevaramjanavaartha.com/PDF/Antharjathiyam.pdf"&gt;http://www.eevaramjanavaartha.com/PDF/Antharjathiyam.pdf&lt;/a&gt;    &lt;br /&gt;&lt;a href="http://www.eevaramjanavaartha.com/PDF/Medianaadi.pdf"&gt;http://www.eevaramjanavaartha.com/PDF/Medianaadi.pdf&lt;/a&gt;    &lt;br /&gt;&lt;a href="http://www.eevaramjanavaartha.com/PDF/abknotebook.pdf"&gt;http://www.eevaramjanavaartha.com/PDF/abknotebook.pdf&lt;/a&gt;    &lt;br /&gt;&lt;a href="http://www.eevaramjanavaartha.com/PDF/Lekhini.pdf"&gt;http://www.eevaramjanavaartha.com/PDF/Lekhini.pdf&lt;/a&gt;    &lt;br /&gt;&lt;a href="http://www.eevaramjanavaartha.com/PDF/Aaha.pdf"&gt;http://www.eevaramjanavaartha.com/PDF/Aaha.pdf&lt;/a&gt;    &lt;br /&gt;&lt;a href="http://www.eevaramjanavaartha.com/PDF/Cinisangathulu.pdf"&gt;http://www.eevaramjanavaartha.com/PDF/Cinisangathulu.pdf&lt;/a&gt;    &lt;br /&gt;&lt;a href="http://www.eevaramjanavaartha.com/PDF/Sampadkiyam.pdf"&gt;http://www.eevaramjanavaartha.com/PDF/Sampadkiyam.pdf&lt;/a&gt;    &lt;br /&gt;&lt;a href="http://www.eevaramjanavaartha.com/PDF/Samakaleenam.pdf"&gt;http://www.eevaramjanavaartha.com/PDF/Samakaleenam.pdf&lt;/a&gt;    &lt;br /&gt;&lt;a href="http://www.eevaramjanavaartha.com/PDF/Sports.pdf"&gt;http://www.eevaramjanavaartha.com/PDF/Sports.pdf&lt;/a&gt;    &lt;br /&gt;&lt;a href="http://www.eevaramjanavaartha.com/PDF/Zerovision.pdf"&gt;http://www.eevaramjanavaartha.com/PDF/Zerovision.pdf&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-4485717301158837110?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/4485717301158837110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=4485717301158837110' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4485717301158837110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4485717301158837110'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/06/eevaram-links.html' title='EEVaram Links'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-3530757687117070372</id><published>2011-06-18T23:28:00.001-07:00</published><updated>2011-06-18T23:28:01.420-07:00</updated><title type='text'>Changing the SOA Suite database Username etc in 10g</title><content type='html'>&lt;p&gt;Changing the SOA Suite database Username etc in 10g&lt;/p&gt;  &lt;p&gt;SOA 10g by default installs to orabpel and oraesb user. In a testing environment you may want to create more then one SOA 10g instance in one db. This procedure explains how to do that&lt;/p&gt;  &lt;p&gt;1. First run the irca to create the necessary schemas.&lt;/p&gt;  &lt;p&gt;./irca.sh all &amp;quot;incq128ad.idc.oracle.com 1521 db10gr2.idc.oracle.com&amp;quot; welcome1 -overwrite ORABPEL welcome1&amp;#160; ORAESB welcome1 ORAWSM welcome1&lt;/p&gt;  &lt;p&gt;Then run irca gaian with a different username's for example ORABPEL_OracleAS_3 , ORAESB_OracleAS_3 and ORAWSM_OracleAS_3.&lt;/p&gt;  &lt;p&gt;./irca.sh all &amp;quot;incq128ad.idc.oracle.com 1521 db10gr2.idc.oracle.com&amp;quot; welcome1 -overwrite ORABPEL_OracleAS_3 welcome1&amp;#160; ORAESB_OracleAS_3 welcome1 ORAWSM_OracleAS_3 welcome1&lt;/p&gt;  &lt;p&gt;2. Install the SOA Suite normally. SOA Suite 10g by default install in the orabpel and oraesb schema's only.&lt;/p&gt;  &lt;p&gt;3. Now open the ${SOA_HOME}\j2ee\home\config\data-sources.xml file ,&lt;/p&gt;  &lt;p&gt;and change the username and password etc for the data-sources. You can also use the EM Application Server control   &lt;br /&gt;for this purpose.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;4.&amp;#160; From the ${SOA_HOME}\bpel\install\extensions directory, copy the following files to ${SOA_HOME}\bpel\domains\default\deploy:&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; bpel_TaskActionHandler_1.0.jar   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; bpel_TaskManager_1.0.jar&lt;/p&gt;  &lt;p&gt;5. Connect to the oraesb schema&amp;#160; and run the following sql script ,&lt;/p&gt;  &lt;p&gt;SQL&amp;gt; spool params.sql   &lt;br /&gt;SQL&amp;gt; SELECT 'INSERT INTO esb_parameter VALUES (''' || param_name || ''', ''' || param_value || ''');' FROM esb_parameter;    &lt;br /&gt;SQL&amp;gt; spool off    &lt;br /&gt;SQL&amp;gt; quit&lt;/p&gt;  &lt;p&gt;Take the params.sql file and run it against the schema ORAESB_OracleAS_3.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;6. Now apply the latest SOA 10g patch set ,     &lt;br /&gt;and run the schema upgrade scripts on the new schemans i.e ORABPEL_OracleAS_3 , ORAESB_OracleAS_3&lt;/p&gt;  &lt;p&gt; If your SOA Suite is 10.1.3.3 or later, you will have to also run an additional script that updates the BPEL schema. This is documented in the install guides for each version, but in summary, the script is:&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; ${SOA_HOME}\bpel\system\database\scripts\upgrade_10131_10135_oracle.sql&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;7. For OWSM open the file ,    &lt;br /&gt;${SOA_HOME}\owsm\bin\install_properties&lt;/p&gt;  &lt;p&gt;Scroll down to the section that contains the install.db.* properties. After backing up the existing settings, modify them for your environment:&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; install.db.type=oracle   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; install.db.driver.type=thin    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; install.db.host=localhost    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; install.db.port=1521    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; install.db.name=xe    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; install.db.userid=oraowsm_OracleAS_1    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; install.db.password=oraowsm&lt;/p&gt;  &lt;p&gt;8. Run the command ,&lt;/p&gt;  &lt;p&gt;${SOA_HOME}\owsm\bin\wsmadmin.bat install&lt;/p&gt;  &lt;p&gt;9. Restart all the oc4j containers and check whether every thing is working fine or not. &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-3530757687117070372?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/3530757687117070372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=3530757687117070372' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3530757687117070372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3530757687117070372'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/06/changing-soa-suite-database-username.html' title='Changing the SOA Suite database Username etc in 10g'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-695186217727211311</id><published>2011-06-11T21:46:00.001-07:00</published><updated>2011-06-11T21:46:55.380-07:00</updated><title type='text'>How to Add Shared Folders in VmWare Player</title><content type='html'>&lt;p&gt;First Install the VMWare tools on the Guest OS. &lt;/p&gt;  &lt;p&gt;With out the vmware tools the sharing feature may not work.&lt;/p&gt;  &lt;p&gt;Launch VMWare Player. Confirm that the virtual machine that you want to modify the settings for it powered off, then right click it and click &amp;quot;Edit VM.&amp;quot;&lt;/p&gt;  &lt;p&gt;Click the &amp;quot;Options&amp;quot; tab on the top of the window, then click the &amp;quot;Shared Folders&amp;quot; category below.&lt;/p&gt;  &lt;p&gt;Click the radio button labeled &amp;quot;Enabled.&amp;quot; And add the directories you want to share.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-695186217727211311?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/695186217727211311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=695186217727211311' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/695186217727211311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/695186217727211311'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/06/how-to-add-shared-folders-in-vmware.html' title='How to Add Shared Folders in VmWare Player'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-8798075931265835618</id><published>2011-06-09T04:42:00.001-07:00</published><updated>2011-06-09T04:42:14.752-07:00</updated><title type='text'>Search Oracle Forums</title><content type='html'>&lt;p&gt;&lt;a href="http://myforums.oracle.com/jive3/forum.jspa?forumID=3150"&gt;http://myforums.oracle.com/jive3/forum.jspa?forumID=3150&lt;/a&gt; (integration_ww@oracle.com)     &lt;br /&gt;&lt;a href="http://myforums.oracle.com/jive3/forum.jspa?forumID=3209"&gt;http://myforums.oracle.com/jive3/forum.jspa?forumID=3209&lt;/a&gt; (helpwls_ww@oracle.com)     &lt;br /&gt;&lt;a href="http://myforums.oracle.com/jive3/forum.jspa?forumID=3213"&gt;http://myforums.oracle.com/jive3/forum.jspa?forumID=3213&lt;/a&gt; OC4J (helpj2ee_us@oracle.com)     &lt;br /&gt;&lt;a href="http://myforums.oracle.com/jive3/forum.jspa?forumID=3208"&gt;http://myforums.oracle.com/jive3/forum.jspa?forumID=3208&lt;/a&gt; Oracle Application Server (helpias_us@oracle.com) &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-8798075931265835618?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/8798075931265835618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=8798075931265835618' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8798075931265835618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8798075931265835618'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/06/search-oracle-forums.html' title='Search Oracle Forums'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-442194445645159152</id><published>2011-06-09T04:15:00.001-07:00</published><updated>2011-06-09T04:15:30.387-07:00</updated><title type='text'>SOA PS3 Purging Scripts With the Debug Option</title><content type='html'>&lt;p&gt;spool soainfra_purge_n2_output3.txt   &lt;br /&gt;set serveroutput on    &lt;br /&gt;set pages 1000    &lt;br /&gt;ALTER PROCEDURE debug_purge&amp;#160; COMPILE PLSQL_CCFLAGS = 'debug_on:TRUE' REUSE SETTINGS;    &lt;br /&gt;ALTER PROCEDURE log_info COMPILE PLSQL_CCFLAGS = 'debug_on:TRUE' REUSE SETTINGS;&lt;/p&gt;  &lt;p&gt;DECLARE&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160; MAX_CREATION_DATE timestamp;   &lt;br /&gt;&amp;#160;&amp;#160; MIN_CREATION_DATE timestamp;    &lt;br /&gt;&amp;#160;&amp;#160; batch_size integer;    &lt;br /&gt;&amp;#160;&amp;#160; max_runtime integer;    &lt;br /&gt;&amp;#160;&amp;#160; retention_period timestamp;&lt;/p&gt;  &lt;p&gt;BEGIN&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160; MIN_CREATION_DATE := to_timestamp('2011-02-01 10:00:00','YYYY-MM-DD HH24:MI:SS');   &lt;br /&gt;&amp;#160; MAX_CREATION_DATE := to_timestamp('2011-07-08 09:00:00','YYYY-MM-DD HH24:MI:SS');    &lt;br /&gt;&amp;#160; max_runtime := 60;    &lt;br /&gt;&amp;#160;&amp;#160; retention_period := to_timestamp('2011-07-08','YYYY-MM-DD');    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; --batch_size := 10000;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; batch_size := 100000;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; soa.delete_instances(    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; min_creation_date =&amp;gt; MIN_CREATION_DATE,    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; max_creation_date =&amp;gt; MAX_CREATION_DATE,    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; batch_size =&amp;gt; batch_size,    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; max_runtime =&amp;gt; max_runtime,    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; retention_period =&amp;gt; retention_period,    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; purge_partitioned_component =&amp;gt; false);    &lt;br /&gt;&amp;#160;&amp;#160; END;    &lt;br /&gt;&amp;#160;&amp;#160; /&lt;/p&gt;  &lt;p&gt;ALTER PROCEDURE debug_purge COMPILE PLSQL_CCFLAGS = 'debug_on:false' REUSE SETTINGS;   &lt;br /&gt;ALTER PROCEDURE log_info COMPILE PLSQL_CCFLAGS = 'debug_on:false' REUSE SETTINGS;    &lt;br /&gt;spool off&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-442194445645159152?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/442194445645159152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=442194445645159152' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/442194445645159152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/442194445645159152'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/06/soa-ps3-purging-scripts-with-debug.html' title='SOA PS3 Purging Scripts With the Debug Option'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2075063885584090849</id><published>2011-06-09T02:49:00.001-07:00</published><updated>2011-06-09T02:49:07.412-07:00</updated><title type='text'>How to add swap space in linux</title><content type='html'>&lt;p&gt;&lt;a href="http://www.thegeekstuff.com/2010/08/how-to-add-swap-space/"&gt;http://www.thegeekstuff.com/2010/08/how-to-add-swap-space/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;dd if=/dev/zero of=/extraswap bs=1M count=512   &lt;br /&gt;mkswap /extraswap    &lt;br /&gt;cp /etc/fstab /etc/fstab.mybackup    &lt;br /&gt;Add this line at the end of the file    &lt;br /&gt;/extraswap&amp;#160;&amp;#160; none&amp;#160;&amp;#160; swap&amp;#160;&amp;#160; sw&amp;#160;&amp;#160; 0&amp;#160;&amp;#160; 0    &lt;br /&gt;or     &lt;br /&gt;swapon /extraswap&lt;/p&gt;  &lt;p&gt;Verify whether the newly created swap area is available for your use.   &lt;br /&gt;swapon -s&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2075063885584090849?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2075063885584090849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=2075063885584090849' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2075063885584090849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2075063885584090849'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/06/how-to-add-swap-space-in-linux.html' title='How to add swap space in linux'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-6173383069111122537</id><published>2011-06-07T19:50:00.001-07:00</published><updated>2011-06-09T22:28:29.798-07:00</updated><title type='text'>Create RAC Instance using Oracle VM</title><content type='html'>&lt;p&gt;First Install the Oracle VM Server on a new machine.&lt;/p&gt;  &lt;p&gt;On Some other linux machine (or an vmware instance) install the Oracle VM manager.&lt;/p&gt;  &lt;p&gt;Extract the Oracle VM manager zip file and mount the iso file on a unix machine.    &lt;br /&gt;Install the Oracle VM manager by running the command ,     &lt;br /&gt;sh runInstaller.sh&amp;#160; &lt;/p&gt;  &lt;p&gt;The Oracle VM manager asks a series of questions like db connect info etc    &lt;br /&gt;after this it will install Oracle XE and OC4J etc. If you have an existing DB you can use that     &lt;br /&gt;database instead of XE.&lt;/p&gt;  &lt;p&gt;On the Oracle VM Server , create a HDD partion say about 100GB in /dev/sdb6    &lt;br /&gt;(ensure that you have atleast you have 80GB partition else the RAC install will fail)&lt;/p&gt;  &lt;p&gt;and run the following commands to create the storage repository ,&lt;/p&gt;  &lt;p&gt;mkfs.ext3 /dev/sdb6    &lt;br /&gt;/opt/ovs-agent-2.3/utils/repos.py -n /dev/sdb6     &lt;br /&gt;/opt/ovs-agent-2.3/utils/repos.py -i     &lt;br /&gt;/opt/ovs-agent-2.3/utils/repos.py -l     &lt;br /&gt;/opt/ovs-agent-2.3/utils/repos.py -r 90ab429e-a00f-488d-9680-91dd878e3f48&lt;/p&gt;  &lt;p&gt;Output of the above commands ,&lt;/p&gt;  &lt;p&gt;[root@oraclevm ~]# /opt/ovs-agent-2.3/utils/repos.py -n /dev/sdb6    &lt;br /&gt;[ NEW ] 90ab429e-a00f-488d-9680-91dd878e3f48 =&amp;gt; /dev/sdb6     &lt;br /&gt;[root@oraclevm ~]# /opt/ovs-agent-2.3/utils/repos.py -i     &lt;br /&gt;*** Storage repositories initialized.     &lt;br /&gt;[root@oraclevm ~]# /opt/ovs-agent-2.3/utils/repos.py -l     &lt;br /&gt;[&amp;#160;&amp;#160; ] 90ab429e-a00f-488d-9680-91dd878e3f48 =&amp;gt; /dev/sdb6     &lt;br /&gt;[root@oraclevm ~]# /opt/ovs-agent-2.3/utils/repos.py -r 90ab429e-a00f-488d-9680-91dd878e3f48     &lt;br /&gt;[ R ] 90ab429e-a00f-488d-9680-91dd878e3f48 =&amp;gt; /dev/sdb6&lt;/p&gt;  &lt;p&gt;In the VM manager create a server pool and assign the Oracle VM Server to this pool.&lt;/p&gt;  &lt;p&gt;Copy the RAC Vmware template file to /OVS/seed_pool and extract the file , &lt;/p&gt;  &lt;p&gt;After this run the following commands ,&lt;/p&gt;  &lt;p&gt;# cd /OVS/seed_pool    &lt;br /&gt;# unzip -q /tmp/OVM_EL5U5_X86_11107RAC_PVM.zip     &lt;br /&gt;# tar xzf OVM_EL5U5_X86_11107RAC_PVM.tgz (or X86_64 for the 64-bit version)     &lt;br /&gt;(You may now delete the ZIP &amp;amp; TGZ files)     &lt;br /&gt;This will create the following, e.g.on 32bit:     &lt;br /&gt;/OVS/seed_pool/OVM_EL5U5_X86_11107RAC_PVM (or X86_64 for the 64-bit version)     &lt;br /&gt;|- System.img (OS image file)     &lt;br /&gt;|- Oracle11107RAC_x86-xvdb.img (database software image file)     &lt;br /&gt;|- vm.cfg (VM configuration file)     &lt;br /&gt;|- README     &lt;br /&gt;|- These PDF documents     &lt;br /&gt;|- lsinventory-sample.crs-32bit lsinventory-sample.rac-asm-32bit (or 64bit)&lt;/p&gt;  &lt;p&gt;Now create 5 shared disks i.e say ASM1 to ASM5 each of 2GB.&lt;/p&gt;  &lt;p&gt;Import the template using Oracle VM manager &lt;/p&gt;  &lt;p&gt;Create 2 Virtual Machines using the imported template&lt;/p&gt;  &lt;p&gt;Add the shared disks in the exact same order to both VMs.&lt;/p&gt;  &lt;p&gt;Power ON both virtual machines&lt;/p&gt;  &lt;p&gt;Complete the boot interview questions like private IP , public IP , VIP IP and hostnames etc.    &lt;br /&gt;For the private IP use 10.10.10.201 ,&lt;/p&gt;  &lt;p&gt;If you have only one network card then use eth0:1 for the private interface.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;Now Install Oracle RAC     &lt;br /&gt;First login as root user , (password is ovsroot) and run the command ,     &lt;br /&gt;cd /u01/clone/buildcluster.sh&lt;/p&gt;  &lt;p&gt;This will install the RAC software.&lt;/p&gt;  &lt;p&gt;For the command line tools , please download the following rpm’s&lt;/p&gt;  &lt;p&gt;wget &lt;a href="http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/oracle_addons/x86_64/ovmcli-2.2-9.el5.noarch.rpm"&gt;http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/oracle_addons/x86_64/ovmcli-2.2-9.el5.noarch.rpm&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;wget &lt;a href="http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/python-ZSI-2.1-a1.el5.noarch.rpm"&gt;http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/python-ZSI-2.1-a1.el5.noarch.rpm&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Run the command to configure the ovm client&lt;/p&gt;  &lt;p&gt;ovm config   &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;run the command ,&lt;/p&gt;  &lt;p&gt;ovm -u admin -p welcome1 vm ls   &lt;br /&gt;Name&amp;#160;&amp;#160;&amp;#160; Size(MB) Mem&amp;#160; VCPUs Status&amp;#160; Server_Pool    &lt;br /&gt;fmwrac1 29086&amp;#160;&amp;#160;&amp;#160; 1400 1&amp;#160;&amp;#160;&amp;#160;&amp;#160; Running oraclevm1_test    &lt;br /&gt;fmwrac2 29086&amp;#160;&amp;#160;&amp;#160; 1400 1&amp;#160;&amp;#160;&amp;#160;&amp;#160; Running oraclevm1_test&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-6173383069111122537?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/6173383069111122537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=6173383069111122537' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6173383069111122537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6173383069111122537'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/06/create-rac-instance-using-oracle-vm.html' title='Create RAC Instance using Oracle VM'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-7195462498043182766</id><published>2011-05-05T03:04:00.001-07:00</published><updated>2011-05-05T03:04:21.769-07:00</updated><title type='text'>Using SFTP with Oracle SOA</title><content type='html'>&lt;p&gt;Please refer to the URL &lt;/p&gt;  &lt;p&gt;&lt;a title="http://myexperienceswithsoa.blogspot.com/2011/04/using-sftp-with-oracle-soa.html" href="http://myexperienceswithsoa.blogspot.com/2011/04/using-sftp-with-oracle-soa.html"&gt;http://myexperienceswithsoa.blogspot.com/2011/04/using-sftp-with-oracle-soa.html&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-7195462498043182766?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/7195462498043182766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=7195462498043182766' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7195462498043182766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7195462498043182766'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/05/using-sftp-with-oracle-soa.html' title='Using SFTP with Oracle SOA'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-7752670092589136352</id><published>2011-04-21T22:08:00.001-07:00</published><updated>2011-04-21T22:08:57.380-07:00</updated><title type='text'>How to Redirect weblogic stdout to a log file</title><content type='html'>&lt;p&gt;By configuring one option in the Admin console of weblogic    &lt;br /&gt; Server -&amp;gt; Admin server (or the Managed Server) -&amp;gt; Logging -&amp;gt; General -&amp;gt; Advanced Settings -&amp;gt; Redirect stdout logging enabled &lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;or using JAVA_OPTIONS -Dweblogic.log.RedirectStdoutToServerLogEnabled=true&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-7752670092589136352?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/7752670092589136352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=7752670092589136352' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7752670092589136352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7752670092589136352'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/04/how-to-redirect-weblogic-stdout-to-log.html' title='How to Redirect weblogic stdout to a log file'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2573034867695916914</id><published>2011-03-31T02:07:00.001-07:00</published><updated>2011-03-31T02:33:08.135-07:00</updated><title type='text'>How to apply WebLogic Private Patch</title><content type='html'>&lt;p&gt;Patch Identifier: HJ5X   &lt;br /&gt;Passcode: I23H9PRN&lt;/p&gt;  &lt;p&gt;1) First download the patch using the Smart Update tool (BSU):    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; a) Launch Smart Update (BSU) as follows:     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; -cd &amp;lt;MW_HOME&amp;gt;/utils/bsu where MW_HOME is location of 10.3.3 Install     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; -Enter &amp;quot;bsu.sh&amp;quot; (for Unix/Linux) or &amp;quot;bsu.cmd&amp;quot; (for Windows)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; b) Login using your &amp;quot;My Oracle Support&amp;quot; account and password.     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; c) If the 'Target Installation' (on left menu) is not correct then:     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; - From menu bar, go to 'File -&amp;gt; Target Installation -&amp;gt; Find Other BEA Home'     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; - Then choose the BEA Home for WebLogic 10.3.3     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; d) Go to 'Get Patches' tab     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; e) From menu bar, choose Patches -&amp;gt; Retrieve Private     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; f) Enter the following:     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Patch Identifier: HJ5X    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Passcode: I23H9PRN    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; g) Choose option to check for patch conflicts     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; h) Patch will then be downloaded. The information is downloaded to these two files:     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; i. &amp;lt;MW_HOME&amp;gt;/utils/bsu/cache_dir/HJ5X.jar     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ii. &amp;lt;MW_HOME&amp;gt;/utils/bsu/cache_dir/patch-catalog.xml&lt;/p&gt;  &lt;p&gt;2) Next install the patch. There are two options for installing patch:    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Option 1: Install the patch using 'online mode' (this is the preferable option if you can run SmartUpdate Online, in the environment where you are applying patch)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Option 2: Apply the patch in 'offline mode' (use this option in environments where you can't run SmartUpdate online due to firewall restrictions)&lt;/p&gt;  &lt;p&gt;Below are instructions for 'Option 1' and 'Option 2'&lt;/p&gt;  &lt;p&gt;Instructions for Option 1 (Smart Update Online)    &lt;br /&gt;-------------------------------------------------------------------------     &lt;br /&gt;a) If you aren't already logged into SmartUpdate, then log in using steps 1a through 1c (above)     &lt;br /&gt;b) Go to 'Manage Patches' tab     &lt;br /&gt;c) You will see the Patch 1Y9I in the 'Downloaded Patches' window (at bottom of page)     &lt;br /&gt;d) Click the'Apply' button next to the patch and it will be installed.&lt;/p&gt;  &lt;p&gt;Instructions for Option 2 (Smart Update Offline)    &lt;br /&gt;------------------------------------------------------------------------------     &lt;br /&gt;a) Copy the files (that you downloaded in step 1) to the WebLogic environment where you are applying the patch.     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; For example, if you downloaded the patch to MW_HOME1 but want to apply it to MW_HOME2, then do the following:     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; i. copy &amp;lt;MW_HOME1&amp;gt;/utils/bsu/cache_dir/HJ5X.jar to &amp;lt;MW_HOME2&amp;gt;/utils/bsu/cache_dir/HJ5X.jar     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ii. copy &amp;lt;MW_HOME1&amp;gt;/utils/bsu/cache_dir/patch-catalog.xml to &amp;lt;MW_HOME2&amp;gt;/utils/bsu/cache_dir/patch-catalog.xml     &lt;br /&gt;b) Go to your &amp;lt;MW_HOME2&amp;gt;\utils\bsu and launch bsu.cmd (or bsu.sh)     &lt;br /&gt;c) When prompted for your Support ID, click the 'Work Offline' button     &lt;br /&gt;d) You will see the Patch HJ5X in the 'Downloaded Patches' window (at bottom of page)     &lt;br /&gt;e) Click the'Apply' button next to the patch and it will be installed.&lt;/p&gt;  &lt;p&gt;To check whether the patch has been applied or not , start the weblogic server you will see the entry as &lt;/p&gt;  &lt;p&gt;&amp;lt;Version: WebLogic Server Temporary Patch for 9833357 Fri Aug 13 13:14:52 EDT 2010   &lt;br /&gt;WebLogic Server 10.3.3.0&amp;#160; Fri Apr 9 00:05:28 PDT 2010 1321401 &amp;gt; &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2573034867695916914?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2573034867695916914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=2573034867695916914' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2573034867695916914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2573034867695916914'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/03/how-to-apply-weblogic-private-patch.html' title='How to apply WebLogic Private Patch'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-5830329913610789225</id><published>2011-03-16T22:37:00.001-07:00</published><updated>2011-03-16T22:37:42.294-07:00</updated><title type='text'>Wi-Fi hotspot on Windows 7</title><content type='html'>&lt;p&gt;Use the &lt;a href="http://www.connectify.me/windows.html"&gt;Connectify for Windows&lt;/a&gt; Software on Windows 7 machine.&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.connectify.me/thanks.html?v=1.2.0.14599" href="http://www.connectify.me/thanks.html?v=1.2.0.14599"&gt;http://www.connectify.me/thanks.html?v=1.2.0.14599&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-5830329913610789225?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/5830329913610789225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=5830329913610789225' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5830329913610789225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5830329913610789225'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/03/wi-fi-hotspot-on-windows-7.html' title='Wi-Fi hotspot on Windows 7'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-8289655244820380651</id><published>2011-03-13T09:14:00.001-07:00</published><updated>2011-03-13T09:14:54.386-07:00</updated><title type='text'>How to enable JDBC SQL Statement Tracing in OC4J</title><content type='html'>&lt;p&gt;Take a backup of ojdbc14.jar and&amp;#160; ojdbc14dms.jar files.&lt;/p&gt;  &lt;p&gt;cd ORACLE_HOME\jdbc\lib&lt;/p&gt;  &lt;p&gt;copy ojdbc14.jar ojdbc14.jar.org   &lt;br /&gt;copy&amp;#160; ojdbc14dms.jar ojdbc14dms.jar.org&lt;/p&gt;  &lt;p&gt;Replace the&amp;#160; JDBC jar files with the JDBC log files   &lt;br /&gt;copy ojdbc14dms_g.jar ojdbc14dms.jar    &lt;br /&gt;copy ojdbc14_g.jar ojdbc14.jar&lt;/p&gt;  &lt;p&gt;In the opmn.xml add the following values to the opmn.xml file   &lt;br /&gt; -Doracle.jdbc.Trace=true -Djava.util.logging.config.file=c:/temp/OracleLog.properties     &lt;br /&gt;&amp;#160; &lt;br /&gt;&amp;#160; &lt;br /&gt;For example ,&lt;/p&gt;  &lt;p&gt; &amp;lt;process-type id=&amp;quot;oc4j_soa&amp;quot; module-id=&amp;quot;OC4J&amp;quot; status=&amp;quot;enabled&amp;quot;&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;module-data&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;category id=&amp;quot;start-parameters&amp;quot;&amp;gt;    &lt;br /&gt;&amp;lt;data id=&amp;quot;java-options&amp;quot; value=&amp;quot; -Doracle.jdbc.Trace=true -Djava.util.logging.config.file=c:/temp/OracleLog.properties&amp;#160;&amp;#160; -Xrs -server -XX:MaxPermSize=128M -ms512M -mx1024M -XX:AppendRatio=3 -Djava.security.policy=$ORACLE_HOME/j2ee/oc4j_soa/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -Doraesb.home=d:\soa1013\integration\esb -Dhttp.proxySet=false -Doc4j.userThreads=true -Doracle.mdb.fastUndeploy=60 -Doc4j.formauth.redirect=true -Djava.net.preferIPv4Stack=true -Dorabpel.home=d:\soa1013\bpel -Xbootclasspath^/p:d:\soa1013\bpel/lib/orabpel-boot.jar -Dhttp.proxySet=false&amp;quot;/&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/category&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;category id=&amp;quot;stop-parameters&amp;quot;&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;Sample OracleLog.properties&amp;#160; file   &lt;br /&gt;==================================&lt;/p&gt;  &lt;p&gt;#### Console Handler ######&lt;/p&gt;  &lt;p&gt;#java.util.logging.ConsoleHandler.level = ALL   &lt;br /&gt;#java.util.logging.ConsoleHandler.formatter =    &lt;br /&gt;#java.util.logging.SimpleFormatter    &lt;br /&gt;#handlers = java.util.logging.ConsoleHandler&lt;/p&gt;  &lt;p&gt;#### File&amp;#160; Handler ######&lt;/p&gt;  &lt;p&gt;oracle.jdbc.handlers=java.util.logging.FileHandler   &lt;br /&gt;java.util.logging.FileHandler.level=ALL    &lt;br /&gt;java.util.logging.FileHandler.pattern=c:/temp/jdbc.log    &lt;br /&gt;java.util.logging.FileHandler.count=1    &lt;br /&gt;java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter&lt;/p&gt;  &lt;p&gt;# Uncomment and/or change the levels for more detail   &lt;br /&gt;#oracle.jdbc.level = FINEST    &lt;br /&gt;#oracle.jdbc.connector.level = FINE    &lt;br /&gt;#oracle.jdbc.driver.level = FINEST    &lt;br /&gt;#oracle.jdbc.internal.level = FINEST    &lt;br /&gt;#oracle.jdbc.oci.level = FINE    &lt;br /&gt;#oracle.jdbc.oracore.level = FINE    &lt;br /&gt;#oracle.jdbc.pool.level = FINE    &lt;br /&gt;#oracle.jdbc.rowset.level = FINEST    &lt;br /&gt;#oracle.jdbc.util.level = FINEST    &lt;br /&gt;#oracle.jdbc.xa.level = FINE    &lt;br /&gt;#oracle.jdbc.xa.client.level = FINE    &lt;br /&gt;#oracle.jpub.level = FINE    &lt;br /&gt;#oracle.net.level = FINE    &lt;br /&gt;#oracle.sql.level = FINEST    &lt;br /&gt;#.level=CONFIG    &lt;br /&gt;#oracle.level=CONFIG    &lt;br /&gt;#oracle.jdbc.pool.level=CONFIG    &lt;br /&gt;#oracle.jdbc.util.level=CONFIG    &lt;br /&gt;#oracle.sql.level=CONFIG&lt;/p&gt;  &lt;p&gt;#oracle.jdbc.driver.level=FINE&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;# This is the setting needed for sql debug    &lt;br /&gt;oracle.jdbc.driver.level=FINE    &lt;br /&gt;oracle.level=OFF &lt;/p&gt;  &lt;p&gt;oracle.level=OFF   &lt;br /&gt;#oracle.jdbc.driver.level=CONFIG     &lt;br /&gt;#oracle.sql.level = FINEST&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;#set JAVA_OPTIONS=-Doracle.jdbc.Trace=true&amp;#160; -Djava.util.logging.config.file=c:/temp/OracleLog.properties&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-8289655244820380651?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/8289655244820380651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=8289655244820380651' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8289655244820380651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8289655244820380651'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/03/how-to-enable-jdbc-sql-statement.html' title='How to enable JDBC SQL Statement Tracing in OC4J'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-4628229989206717881</id><published>2011-03-12T09:01:00.001-08:00</published><updated>2011-03-12T09:01:46.214-08:00</updated><title type='text'>How to use the JDBC Driver Tracing in Weblogic/SOA 11g to capture the sql statements issued by the JDBC Drivers</title><content type='html'>&lt;p&gt;Before starting the weblogic server set the following environment variables ,&lt;/p&gt;  &lt;p&gt;On Windows&lt;/p&gt;  &lt;p&gt;set EXT_PRE_CLASSPATH=C:\Oracle\Middleware\wlserver_10.3\server\ext\jdbc\oracle\11g\ojdbc6_g.jar   &lt;br /&gt;set JAVA_OPTIONS=-Doracle.jdbc.Trace=true -Djava.util.logging.config.file=c:/temp/OracleLog.properties&amp;#160; &lt;/p&gt;  &lt;p&gt;On Unix&lt;/p&gt;  &lt;p&gt;set EXT_PRE_CLASSPATH=/home/oracle/Middleware/wlserver_10.3/server/ext/jdbc/oracle/11g/ojdbc6_g.jar   &lt;br /&gt;set JAVA_OPTIONS=-Doracle.jdbc.Trace=true -Djava.util.logging.config.file=/tmp/OracleLog.properties&amp;#160; &lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;In the OracleLog.properties have the following entries ,&lt;/p&gt;  &lt;p&gt;#### Console Handler ######&lt;/p&gt;  &lt;p&gt;#java.util.logging.ConsoleHandler.level = ALL   &lt;br /&gt;#java.util.logging.ConsoleHandler.formatter =    &lt;br /&gt;#java.util.logging.SimpleFormatter    &lt;br /&gt;#handlers = java.util.logging.ConsoleHandler&lt;/p&gt;  &lt;p&gt;#### File&amp;#160; Handler ######&lt;/p&gt;  &lt;p&gt;oracle.jdbc.handlers=java.util.logging.FileHandler   &lt;br /&gt;java.util.logging.FileHandler.level=ALL    &lt;br /&gt;java.util.logging.FileHandler.pattern=c:/temp/jdbc.log    &lt;br /&gt;java.util.logging.FileHandler.count=1    &lt;br /&gt;java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter&lt;/p&gt;  &lt;p&gt;# Uncomment and/or change the levels for more detail   &lt;br /&gt;#oracle.jdbc.level = FINEST    &lt;br /&gt;#oracle.jdbc.connector.level = FINE    &lt;br /&gt;#oracle.jdbc.driver.level = FINEST    &lt;br /&gt;#oracle.jdbc.internal.level = FINEST    &lt;br /&gt;#oracle.jdbc.oci.level = FINE    &lt;br /&gt;#oracle.jdbc.oracore.level = FINE    &lt;br /&gt;#oracle.jdbc.pool.level = FINE    &lt;br /&gt;#oracle.jdbc.rowset.level = FINEST    &lt;br /&gt;#oracle.jdbc.util.level = FINEST    &lt;br /&gt;#oracle.jdbc.xa.level = FINE    &lt;br /&gt;#oracle.jdbc.xa.client.level = FINE    &lt;br /&gt;#oracle.jpub.level = FINE    &lt;br /&gt;#oracle.net.level = FINE    &lt;br /&gt;#oracle.sql.level = FINEST    &lt;br /&gt;#.level=CONFIG    &lt;br /&gt;#oracle.level=CONFIG    &lt;br /&gt;#oracle.jdbc.pool.level=CONFIG    &lt;br /&gt;#oracle.jdbc.util.level=CONFIG    &lt;br /&gt;#oracle.sql.level=CONFIG&lt;/p&gt;  &lt;p&gt;#oracle.jdbc.driver.level=FINE&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;# This is the setting needed for sql debug    &lt;br /&gt;oracle.jdbc.driver.level=FINE    &lt;br /&gt;oracle.level=OFF &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;TRACE_1: Public Enter: &amp;quot;DELETE FROM MDS_LABELS WHERE LABEL_NAME = ? AND LABEL_PARTITION_ID =?&amp;quot;   &lt;br /&gt;Mar 12, 2011 10:18:10 PM oracle.jdbc.driver.PhysicalConnection prepareStatement    &lt;br /&gt;TRACE_1: return: oracle.jdbc.driver.OraclePreparedStatementWrapper@1d56ac0    &lt;br /&gt;Mar 12, 2011 10:18:10 PM oracle.jdbc.driver.PhysicalConnection prepareStatement    &lt;br /&gt;TRACE_1: Exit    &lt;br /&gt;Mar 12, 2011 10:18:10 PM oracle.jdbc.driver.OracleStatement setPoolable    &lt;br /&gt;TRACE_1: Public Enter: true    &lt;br /&gt;Mar 12, 2011 10:18:10 PM oracle.jdbc.driver.OracleStatement setPoolable    &lt;br /&gt;TRACE_1: Exit    &lt;br /&gt;Mar 12, 2011 10:18:10 PM oracle.jdbc.driver.OraclePreparedStatement setString    &lt;br /&gt;TRACE_1: Public Enter: 1, &amp;quot;preDeployLabel_soa-infra&amp;quot;    &lt;br /&gt;Mar 12, 2011 10:18:10 PM oracle.jdbc.driver.OraclePreparedStatement setString    &lt;br /&gt;TRACE_1: Exit    &lt;br /&gt;Mar 12, 2011 10:18:10 PM oracle.jdbc.driver.OraclePreparedStatement setLong    &lt;br /&gt;TRACE_1: Public Enter: 2, 1    &lt;br /&gt;Mar 12, 2011 10:18:10 PM oracle.jdbc.driver.OraclePreparedStatement setLong    &lt;br /&gt;TRACE_1: Exit    &lt;br /&gt;Mar 12, 2011 10:18:10 PM oracle.jdbc.driver.OraclePreparedStatement executeUpdate    &lt;br /&gt;lTRACE_1: Public Enter:     &lt;br /&gt;Mar 12, 2011 10:18:10 PM oracle.jdbc.driver.OracleStatement doExecuteWithTimeout    &lt;br /&gt;CONFIG: SQL: DELETE FROM MDS_LABELS WHERE LABEL_NAME = ? AND LABEL_PARTITION_ID =?&lt;/p&gt;  &lt;p&gt;The sql statement is &amp;quot;DELETE FROM MDS_LABELS WHERE LABEL_NAME = ? AND LABEL_PARTITION_ID =?&amp;quot;   &lt;br /&gt;The bind variales are &amp;quot;preDeployLabel_soa-infra&amp;quot; and 1.    &lt;br /&gt;Mar 12, 2011 10:18:10 PM oracle.jdbc.driver.OraclePreparedStatement setString    &lt;br /&gt;TRACE_1: Public Enter: 1, &amp;quot;preDeployLabel_soa-infra&amp;quot;    &lt;br /&gt;Mar 12, 2011 10:18:10 PM oracle.jdbc.driver.OraclePreparedStatement setLong    &lt;br /&gt;TRACE_1: Public Enter: 2, 1&lt;/p&gt;  &lt;p&gt;The sql statement is &amp;quot;DELETE FROM MDS_LABELS WHERE LABEL_NAME = 'preDeployLabel_soa-infra' AND LABEL_PARTITION_ID =1&amp;quot;&lt;/p&gt;  &lt;p&gt;Another example ,&lt;/p&gt;  &lt;p&gt;TRACE_1: Public Enter: &amp;quot;SELECT PARTITION_ID FROM MDS_PARTITIONS WHERE PARTITION_NAME=?&amp;quot;&lt;/p&gt;  &lt;p&gt;Mar 12, 2011 10:18:10 PM oracle.jdbc.driver.OraclePreparedStatement setString   &lt;br /&gt;TRACE_1: Public Enter: 1, &amp;quot;soa-infra&amp;quot;    &lt;br /&gt;Mar 12, 2011 10:18:10 PM oracle.jdbc.driver.OraclePreparedStatement setString&lt;/p&gt;  &lt;p&gt;The sql statement is &amp;quot;SELECT PARTITION_ID FROM MDS_PARTITIONS WHERE PARTITION_NAME='soa-infra'&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;If you want only the sql statements with out bind variables use     &lt;br /&gt;oracle.jdbc.driver.level=CONFIG&lt;/p&gt;  &lt;p&gt;This displays the sql statemnets as &lt;/p&gt;  &lt;p&gt;CONFIG: 13EEB53C SQL: update&amp;#160; MEDIATOR_CASE_INSTANCE&amp;#160; set&amp;#160; STATUS ='locked',&amp;#160; LOCK_TIME =?,&amp;#160; CONTAINER_ID =? where&amp;#160; STATUS&amp;#160; = 'ready' and rownum &amp;lt; ?   &lt;br /&gt;CONFIG: 466208C SQL: SELECT CASE_ID, CONTAINER_ID, MSG_ID, OPERATION, COMPONENT_DN, PRIORITY, LOCK_TIME, QNAME_LOCAL_PART, IS_EVENT, QNAME_NAMESPACE, CASE_INFO, SOURCE_URI, COMPONENT_STATUS, INSTANCE_CREATED, CREATION_DATE, STATUS, DUMMY1 FROM MEDIATOR_DEFERRED_MESSAGE WHERE (((STATUS = ?) AND (LOCK_TIME = ?)) AND (CONTAINER_ID = ?))&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-4628229989206717881?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/4628229989206717881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=4628229989206717881' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4628229989206717881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4628229989206717881'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/03/how-to-use-jdbc-driver-tracing-in.html' title='How to use the JDBC Driver Tracing in Weblogic/SOA 11g to capture the sql statements issued by the JDBC Drivers'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-122559713831586268</id><published>2011-03-05T06:41:00.001-08:00</published><updated>2011-03-05T17:04:10.988-08:00</updated><title type='text'>OPatch on Windows 7 fails with the error OPATCH_JAVA_ERROR: Wrong number of arguments</title><content type='html'>&lt;p&gt;&amp;quot;Opatch apply&amp;quot; went smooth till verify patch and then exit with following error description:&lt;/p&gt;  &lt;p&gt;&amp;quot;OPATCH_JAVA_ERROR: Wrong number of arguments. VerifyPatch needs ORACLE_HOME, OUI location, patch location, patch I    &lt;br /&gt;Exception in thread &amp;quot;main&amp;quot; java.lang.Exception: Wrong number of arguments. VerifyPatch needs ORACLE_HOME, OUI location, patch location, patch ID and path to 'ar' command, no_inventory, OS_ID.&lt;/p&gt;  &lt;p&gt;at opatch.VerifyPatch.main&lt;/p&gt;  &lt;p&gt;Verification of the patch failed.    &lt;br /&gt;ERROR: OPatch failed as verification of the patch failed.&lt;/p&gt;  &lt;p&gt;Even rolling back a patch is failing. &lt;/p&gt;  &lt;p&gt;The OS_ID is retruning as &amp;quot;0&amp;quot; , that was the main reason why it is failing on Windows 7.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;Please set the environment variable &lt;/p&gt;  &lt;p&gt;set OPATCH_PLATFORM_ID=233 and run the opatch apply command.    &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-122559713831586268?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/122559713831586268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=122559713831586268' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/122559713831586268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/122559713831586268'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/03/opatch-on-windows-7-fails-with-error.html' title='OPatch on Windows 7 fails with the error OPATCH_JAVA_ERROR: Wrong number of arguments'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-4115674973519394368</id><published>2011-03-04T04:33:00.001-08:00</published><updated>2011-03-04T04:33:44.327-08:00</updated><title type='text'>How to use different JDBC drivers with SOA 10g</title><content type='html'>&lt;p&gt;Please refer to the following note for the certification information on the jdbc drivers with OAS 10.1.3.&lt;/p&gt;  &lt;p&gt;JDBC Driver Support for Oracle Application Server (Fusion Middleware) (Doc ID 365120.1)&lt;/p&gt;  &lt;p&gt;Couple of points , &lt;/p&gt;  &lt;p&gt;Please note that we can use only thin drivers. Please also note that replacing the shipped JDBC drivers with the new ones are not supported. We have to use the application library support   &lt;br /&gt;feature available in 10.1.3.x versions.&lt;/p&gt;  &lt;p&gt;How to Use The Latest Thin JDBC Driver Across All Applications For a 10.1.3.x OAS Container (Doc ID 420303.1)&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;The procedure given below should help you in configuring the 11g JDBC thin drivers with OAS 10.1.3. Please also refer to the BUG 8726607 - 10.1.3.5 CERT WITH 11G JDBC DRIVERS : EXTRA STEPS TO NOTE 420303.1&lt;/p&gt;  &lt;p&gt;1. Within each container, create the following directory to host the   &lt;br /&gt;shared library:&lt;/p&gt;  &lt;p&gt;&amp;#160; $OH/j2ee/&amp;lt;container&amp;gt;/shared-lib/oracle.jdbc/11.1.0.7   &lt;br /&gt;2. From the Oracle Database 11g installation, copy the following files    &lt;br /&gt;into the newly created directory above:&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160; $OH/rdbms/jlib/aqapi.jar   &lt;br /&gt;&amp;#160;&amp;#160; $OH/jdbc/lib/ojdbc5.jar *    &lt;br /&gt;&amp;#160;&amp;#160; $OH/oc4j/j2ee/home/lib/ojms-provider.jar&lt;/p&gt;  &lt;p&gt; ojdbc5.jar is for application server installs using JDK 5 (the   &lt;br /&gt;default in 10.1.3).&amp;#160; For installs configured to use JDK 6, copy    &lt;br /&gt;ojdbc6.jar instead.&lt;/p&gt;  &lt;p&gt;3. Create the following oracle.jdbc shared-library entry in the   &lt;br /&gt;container $OH/j2ee/&amp;lt;container&amp;gt;/config/server.xml file with the version    &lt;br /&gt;attribute set to 11.1.0.7, and at the same time specify the new version    &lt;br /&gt;for the BPEL and ESB imported oracle.jdbc shared libraries.&lt;/p&gt;  &lt;p&gt;- Make sure the oracle.jdbc library is defined before the oracle.bpel.common    &lt;br /&gt;and oracle.esb libraries.    &lt;br /&gt;- Replace &amp;quot;[$OH]&amp;quot; in the below example with the path to your Oracle Home     &lt;br /&gt;directory.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;lt;application-server ?&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160; &amp;lt;shared-library name=&amp;quot;oracle.jdbc&amp;quot; version=&amp;quot;11.1.0.7&amp;quot;&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;code-source path=&amp;quot;ojdbc5.jar&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;code-source path=&amp;quot;aqapi.jar&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;code-source path=&amp;quot;ojms-provider.jar&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;code-source path=&amp;quot;[$OH]/opmn/lib/ons.jar&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;code-source path=&amp;quot;[$OH]/jdbc/lib/ocrs12.jar&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/shared-library&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;shared-library name=&amp;quot;oracle.bpel.common&amp;quot; ?&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;import-shared-library name=&amp;quot;oracle.jdbc&amp;quot;&amp;#160;&amp;#160; min-version=&amp;quot;11.1.0.7&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/shared-library&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;shared-library name=&amp;quot;oracle.esb&amp;quot; ?&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;import-shared-library name=&amp;quot;oracle.jdbc&amp;quot; min-version=&amp;quot;11.1.0.7&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/shared-library&amp;gt;    &lt;br /&gt;&amp;#160; &lt;br /&gt; &amp;lt;/application-server&amp;gt;    &lt;br /&gt;&amp;#160; &lt;br /&gt; 4. Open the AppsAdapter, AqAdapter and DbAdapter config in these files:    &lt;br /&gt;&amp;#160; &lt;br /&gt; $OH/j2ee/oc4j_soa/application-deployments/default/AppsAdapter/oc4j-ra.xml    &lt;br /&gt; $OH/j2ee/oc4j_soa/application-deployments/default/AqAdapter/oc4j-ra.xml    &lt;br /&gt; $OH/j2ee/oc4j_soa/application-deployments/default/DbAdapter/oc4j-ra.xml    &lt;br /&gt;&amp;#160; &lt;br /&gt; Edit the config as below to specify the same minimum version of the     &lt;br /&gt; oracle.jdbc shared-library.    &lt;br /&gt;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;import-shared-library name=&amp;quot;oracle.jdbc&amp;quot; min-version=&amp;quot;11.1.0.7&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160; &lt;br /&gt; 5. Restart the container    &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-4115674973519394368?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/4115674973519394368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=4115674973519394368' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4115674973519394368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4115674973519394368'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/03/how-to-use-different-jdbc-drivers-with.html' title='How to use different JDBC drivers with SOA 10g'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-8174918929618866758</id><published>2011-01-31T22:04:00.001-08:00</published><updated>2011-01-31T22:04:29.998-08:00</updated><title type='text'>SOA Oracle Lite DB Tracing</title><content type='html'>&lt;p&gt;SOA Uses 10.2 POLite.&lt;/p&gt;  &lt;p&gt;Please refer to the link for more debuginfo.&lt;/p&gt;  &lt;p&gt;Set OLITE_SQL_TRACE=TRUE in c:\windows\polite.ini file ,&lt;/p&gt;  &lt;p&gt;The sql trace info is written to c:\windows\system32\oldb_trc.txt&lt;/p&gt;  &lt;h5&gt;OLITE_SQL_TRACE &lt;/h5&gt;  &lt;p&gt;&lt;a name="sthref1066"&gt;&lt;/a&gt;&lt;a name="sthref1067"&gt;&lt;/a&gt;&lt;a name="sthref1068"&gt;&lt;/a&gt;Generates the SQL statement text, compilation time, execution plan, and the bind value. &lt;/p&gt;  &lt;p&gt;For example: &lt;/p&gt;  &lt;pre&gt;OLITE_SQL_TRACE = TRUE&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;SQL trace output is dumped to a trace file named &lt;code&gt;oldb_trc.txt&lt;/code&gt; in the current working directory of the database process. For a database service on Windows, Windows NT or the Oracle Database Lite daemon for a Linux platform, the current working directory is specified by the &lt;code&gt;wdir&lt;/code&gt; parameter during the database startup service or daemon. Applications that use an embedded connection to connect to the database contain a working directory. This working directory is the application working directory. To implement the tracing feature, the database process must contain permissions to create the trace file in the current working directory. The trace output is always included in the trace file. If the trace file does not exist, it is created automatically. &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-8174918929618866758?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/8174918929618866758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=8174918929618866758' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8174918929618866758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8174918929618866758'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/01/soa-oracle-lite-db-tracing.html' title='SOA Oracle Lite DB Tracing'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-902494915444966535</id><published>2011-01-30T20:29:00.001-08:00</published><updated>2011-01-30T20:29:25.332-08:00</updated><title type='text'>How to Install additional packages/upgrade OEL 5</title><content type='html'>&lt;ol&gt;   &lt;li&gt;&lt;a href="http://edelivery.oracle.com/linux"&gt;Download and Install Oracle Linux&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Download and copy the appropriate yum configuration file in place, by running the following commands as root:&lt;/p&gt;      &lt;h6&gt;Oracle Linux 4, Update 6 or Newer&lt;/h6&gt;      &lt;pre&gt;&lt;code&gt;# cd /etc/yum.repos.d&lt;br /&gt;# mv Oracle-Base.repo Oracle-Base.repo.disabled&lt;br /&gt;# wget http://public-yum.oracle.com/public-yum-el4.repo&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;    &lt;h6&gt;Oracle Linux 5&lt;/h6&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre&gt;&lt;code&gt;# cd /etc/yum.repos.d&lt;br /&gt;# wget http://public-yum.oracle.com/public-yum-el5.repo&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;    &lt;h6&gt;Oracle VM 2&lt;/h6&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre&gt;&lt;code&gt;# cd /etc/yum.repos.d&lt;br /&gt;# wget http://public-yum.oracle.com/public-yum-ovm2.repo&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;  &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;&lt;br /&gt;    &lt;p&gt;Enable the appropriate repository by editing the yum configuration file &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;    &lt;ul&gt;&lt;br /&gt;      &lt;li&gt;Open the yum configuration file in a text editor &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;      &lt;li&gt;Locate the section in the file for the repository you plan to update from, e.g. &lt;code&gt;[el4_u6_base]&lt;/code&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;      &lt;li&gt;Change &lt;code&gt;enabled=0&lt;/code&gt; to &lt;code&gt;enabled=1&lt;/code&gt;&lt;/li&gt;&lt;br /&gt;    &lt;/ul&gt;&lt;br /&gt;  &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;&lt;br /&gt;    &lt;p&gt;Begin using yum, for example:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;    &lt;p&gt;yum list ,&amp;#160; yum update&amp;#160; , yum install firefox&lt;/p&gt;&lt;br /&gt;  &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;&lt;br /&gt;    &lt;p&gt;You can also use&amp;#160; “system-config-packages” for this purpose.&lt;/p&gt;&lt;br /&gt;  &lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-902494915444966535?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/902494915444966535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=902494915444966535' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/902494915444966535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/902494915444966535'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/01/how-to-install-additional.html' title='How to Install additional packages/upgrade OEL 5'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-3308586303083188811</id><published>2011-01-26T23:32:00.000-08:00</published><updated>2011-01-26T23:33:38.248-08:00</updated><title type='text'>How to setup iscsi target on OEL 5.5</title><content type='html'>http://fedoraproject.org/wiki/Scsi-target-utils_Quickstart_Guide&lt;br /&gt;&lt;br /&gt;RedHat have included an iSCSI daemon which is also installable using yum:&lt;br /&gt;&lt;br /&gt;yum install iscsi-initiator-utils&lt;br /&gt;&lt;br /&gt;To connect to the target, edit /etc/iscsi/initiatorname.iscsi and change InitiatorName to something you prefer (Remember! it must be in the IQN format, iqn.yyyy-mm.{reversed domain name}:an_easy_to_remember_lablel. I usually use iqn.2009-02.com.hamzahkhan:hostname_of_box). Next start up iSCSId:&lt;br /&gt;&lt;br /&gt;/etc/init.d/iscsid start&lt;br /&gt;&lt;br /&gt;and use iSCSI target descovery to find the targets on the server:&lt;br /&gt;&lt;br /&gt;iscsiadm -m discovery -t st -p $SERVERS_IP&lt;br /&gt;&lt;br /&gt;If all is well, it should output the names of all the targets that the initiator is allowed to connect to!&lt;br /&gt;&lt;br /&gt;Next, we need to create the disk nodes. To do this, RedHat have provided a nice start up script. This script will login to all the targets that the iSCSI daemon knows about. We have already used the iscsiadm command to tell the iSCSI daemon which targets exist on the server, so using the script is all that is left:&lt;br /&gt;&lt;br /&gt;/etc/init.d/iscsi start&lt;br /&gt;&lt;br /&gt;On Windows 7 use this note ,&lt;br /&gt;&lt;br /&gt;http://www.windowsnetworking.com/articles_tutorials/Connecting-Windows-7-iSCSI-SAN.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-3308586303083188811?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/3308586303083188811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=3308586303083188811' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3308586303083188811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3308586303083188811'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/01/how-to-setup-iscsi-target-on-oel-55.html' title='How to setup iscsi target on OEL 5.5'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2486370245987196104</id><published>2011-01-24T20:14:00.001-08:00</published><updated>2011-01-24T20:14:46.421-08:00</updated><title type='text'>How to Find out which java thread takes the maximum cpu time in windows</title><content type='html'>&lt;p&gt;On Error Resume Next   &lt;br /&gt;Const adVarChar = 200    &lt;br /&gt;Const MaxCharacters = 255    &lt;br /&gt;Set DataList = CreateObject(&amp;quot;ADOR.Recordset&amp;quot;)    &lt;br /&gt;DataList.Fields.Append &amp;quot;ProcessID&amp;quot;, adVarChar, MaxCharacters    &lt;br /&gt;DataList.Fields.Append &amp;quot;ThreadID&amp;quot;, adVarChar, MaxCharacters    &lt;br /&gt;DataList.Fields.Append &amp;quot;PercentUserTime&amp;quot;, adVarChar, MaxCharacters    &lt;br /&gt;DataList.Fields.Append &amp;quot;PercentProcessorTime&amp;quot;, adVarChar, MaxCharacters    &lt;br /&gt;DataList.Open    &lt;br /&gt;strComputer = &amp;quot;.&amp;quot;    &lt;br /&gt;Set objWMIService = GetObject(&amp;quot;winmgmts:\\&amp;quot; &amp;amp; strComputer &amp;amp; &amp;quot;\root\cimv2&amp;quot;)    &lt;br /&gt;Set colItems = objWMIService.ExecQuery(&amp;quot;Select * from Win32_PerfFormattedData_PerfProc_Thread where IDProcess =&amp;quot;&amp;amp;WScript.Arguments.Item(0),,48)    &lt;br /&gt;For Each objItem in colItems    &lt;br /&gt;DataList.AddNew    &lt;br /&gt;DataList(&amp;quot;ProcessID&amp;quot;) = objItem.IDProcess    &lt;br /&gt;DataList(&amp;quot;ThreadID&amp;quot;) = objItem.IDThread    &lt;br /&gt;DataList(&amp;quot;PercentUserTime&amp;quot;) = objItem.PercentUserTime    &lt;br /&gt;DataList(&amp;quot;PercentProcessorTime&amp;quot;) = objItem.PercentProcessorTime    &lt;br /&gt;DataList.Update     &lt;br /&gt;Next    &lt;br /&gt;DataList.Sort = &amp;quot;PercentUserTime&amp;quot;    &lt;br /&gt;DataList.Reverse()    &lt;br /&gt;DataList.Reverse()    &lt;br /&gt;DataList.MoveFirst    &lt;br /&gt;Do Until DataList.EOF    &lt;br /&gt; Wscript.Echo DataList.Fields.Item(&amp;quot;ProcessID&amp;quot;) _    &lt;br /&gt; &amp;amp; vbTab &amp;amp; DataList.Fields.Item(&amp;quot;ThreadID&amp;quot;)_    &lt;br /&gt; &amp;amp; vbTab &amp;amp; Hex(DataList.Fields.Item(&amp;quot;ThreadID&amp;quot;))_    &lt;br /&gt; &amp;amp; vbTab &amp;amp; DataList.Fields.Item(&amp;quot;PercentUserTime&amp;quot;)_    &lt;br /&gt; &amp;amp; vbTab &amp;amp; DataList.Fields.Item(&amp;quot;PercentProcessorTime&amp;quot;)    &lt;br /&gt;DataList.MoveNext    &lt;br /&gt;Loop    &lt;br /&gt;' Set WshShell = WScript.CreateObject(&amp;quot;WScript.Shell&amp;quot;)     &lt;br /&gt;'WshShell.Run &amp;quot;cmd /c C:\Oracle\Middleware\jdk160_18\bin\jstack.exe &amp;quot; &amp;amp;WScript.Arguments.Item(0) &lt;/p&gt;  &lt;p&gt;Set objShell = WScript.CreateObject(&amp;quot;WScript.Shell&amp;quot;)   &lt;br /&gt;Set objExecObject = objShell.Exec(&amp;quot;cmd /c C:\Oracle\Middleware\jdk160_18\bin\jstack.exe &amp;quot; &amp;amp;WScript.Arguments.Item(0))    &lt;br /&gt;Do While Not objExecObject.StdOut.AtEndOfStream    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; strText = objExecObject.StdOut.ReadLine()    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Wscript.Echo strText    &lt;br /&gt;Loop &lt;/p&gt;  &lt;p&gt;Find out the java process , but running the command , jps and run the vbscript using the command “cscript test1.vbs” &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2486370245987196104?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2486370245987196104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=2486370245987196104' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2486370245987196104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2486370245987196104'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/01/how-to-find-out-which-java-thread-takes.html' title='How to Find out which java thread takes the maximum cpu time in windows'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-728446376168443133</id><published>2011-01-13T01:01:00.001-08:00</published><updated>2011-01-13T01:01:54.107-08:00</updated><title type='text'>How to create Bootable Image in USB Drive</title><content type='html'>&lt;p&gt;&lt;a href="http://www.pendrivelinux.com/downloads/MultiBootISOs/MultiBootISOs-2.1.4.7.exe" name="download"&gt;Download MultiBootISOs-2.1.4.7.exe&lt;/a&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Run &lt;strong&gt;MultiBootISOs-2.1.4.7.exe&lt;/strong&gt; following the onscreen instructions &lt;/li&gt;    &lt;li&gt;Select the ISO you want to Boot from the Menu and enjoy!&lt;/li&gt;    &lt;li&gt;The best thing about this tool is that you can select multiple images in one USB drive &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Please also refer to this URL for more details on this ,&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.pendrivelinux.com/boot-multiple-iso-from-usb-multiboot-usb/" href="http://www.pendrivelinux.com/boot-multiple-iso-from-usb-multiboot-usb/"&gt;http://www.pendrivelinux.com/boot-multiple-iso-from-usb-multiboot-usb/&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-728446376168443133?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/728446376168443133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=728446376168443133' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/728446376168443133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/728446376168443133'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/01/how-to-create-bootable-image-in-usb.html' title='How to create Bootable Image in USB Drive'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-3045341831753941842</id><published>2011-01-07T09:06:00.000-08:00</published><updated>2011-01-07T09:08:16.051-08:00</updated><title type='text'>How to create RAW Partions on linux (to be used for ASM and RAC)</title><content type='html'>First create the HDD Partitions , ensure that you have 3 partions &lt;br /&gt;say  /dev/sdb1 , /dev/sdc1 and  /dev/sdd1&lt;br /&gt;&lt;br /&gt;run the command fdisk -l and verifiy them &lt;br /&gt;&lt;br /&gt;1. Edit the /etc/sysconfig/rawdevices file, and add the following lines.&lt;br /&gt;&lt;br /&gt;/dev/raw/raw1 /dev/sdb1&lt;br /&gt;/dev/raw/raw2 /dev/sdc1&lt;br /&gt;/dev/raw/raw3 /dev/sdd1&lt;br /&gt;&lt;br /&gt;2. service rawdevices restart&lt;br /&gt;&lt;br /&gt;3. raw -qa&lt;br /&gt;&lt;br /&gt;4. Create the softlinks for the files &lt;br /&gt;&lt;br /&gt;ln -s /dev/raw/raw1  /u01/oradata/ocr&lt;br /&gt;ln -s /dev/raw/raw2  /u01/oradata/votingdisk&lt;br /&gt;ln -s /dev/raw/raw3  /u01/oradata/asm1&lt;br /&gt;&lt;br /&gt;5. Add the following lines in the  "/etc/rc.local" file. &lt;br /&gt;&lt;br /&gt;chown oracle:oinstall /dev/raw/raw1&lt;br /&gt;chown oracle:oinstall /dev/raw/raw2&lt;br /&gt;chown oracle:oinstall /dev/raw/raw3&lt;br /&gt;chmod 600 /dev/raw/raw1&lt;br /&gt;chmod 600 /dev/raw/raw2&lt;br /&gt;chmod 600 /dev/raw/raw3&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-3045341831753941842?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/3045341831753941842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=3045341831753941842' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3045341831753941842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3045341831753941842'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/01/how-to-create-raw-partions-on-linux-to.html' title='How to create RAW Partions on linux (to be used for ASM and RAC)'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-5593428399394930451</id><published>2011-01-07T08:43:00.001-08:00</published><updated>2011-01-07T08:43:36.962-08:00</updated><title type='text'>How to Clean up failed RAC Install on linux</title><content type='html'>rm  -rf /etc/oracle/*&lt;br /&gt;rm -f /etc/init.d/init.cssd&lt;br /&gt;rm -f /etc/init.d/init.crs&lt;br /&gt;rm -f /etc/init.d/init.crsd&lt;br /&gt;rm -f /etc/init.d/init.evmd&lt;br /&gt;rm -f /etc/rc2.d/K96init.crs&lt;br /&gt;rm -f /etc/rc2.d/S96init.crs&lt;br /&gt;rm -f /etc/rc3.d/K96init.crs&lt;br /&gt;rm -f /etc/rc3.d/S96init.crs&lt;br /&gt;rm -f /etc/rc5.d/K96init.crs&lt;br /&gt;rm -f /etc/rc5.d/S96init.crs&lt;br /&gt;rm -Rf /etc/oracle/scls_scr&lt;br /&gt;rm -f /etc/inittab.crs&lt;br /&gt;cp -f  --reply=yes  /etc/inittab.orig /etc/inittab&lt;br /&gt;rm -rf /u01/crs&lt;br /&gt;rm -rf /u01/app/oracle&lt;br /&gt;rm -f /etc/oraInst.loc&lt;br /&gt;dd if=/dev/zero of=/dev/raw/raw1 bs=1M count=256000&lt;br /&gt;dd if=/dev/zero of=/dev/raw/raw2 bs=1M count=256000&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-5593428399394930451?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/5593428399394930451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=5593428399394930451' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5593428399394930451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5593428399394930451'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/01/how-to-clean-up-failed-rac-install-on.html' title='How to Clean up failed RAC Install on linux'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-3751452537226723218</id><published>2011-01-07T08:26:00.000-08:00</published><updated>2011-01-07T08:32:39.428-08:00</updated><title type='text'>Migrate from VMWare Server to VirtualBox</title><content type='html'>1.Important: From VMWare Server, start your virtual machines and uninstall VMWare toolbox!&lt;br /&gt;&lt;br /&gt;2.Locate the main VMDK file you want converted. It's usually a XML file, or a binary&lt;br /&gt;file with a XML header.&lt;br /&gt;&lt;br /&gt;3.From the command line, CD to the location of that file. Say the VMWare disk image to convert is Root_Disk.vmdk.&lt;br /&gt;&lt;br /&gt;4.Run the following command to convert to VDI:&lt;br /&gt;&lt;br /&gt;C:\Program Files\Oracle\VirtualBox\VBoxManage clonehd --format vdi "c:\Virtual Machines\XP\Windows XP Professional.vmdk" "c:\Virtual Machines\XP\WinXP.vdi"&lt;br /&gt;&lt;br /&gt;5.That's it! If you're in Linux, the VDI file will be created under ~/.VirtualBox/Harddisks/.&lt;br /&gt;&lt;br /&gt;6.Add that to your media manager and create the virtual machine as you normally would.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-3751452537226723218?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/3751452537226723218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=3751452537226723218' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3751452537226723218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3751452537226723218'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/01/migrate-from-vmware-server-to.html' title='Migrate from VMWare Server to VirtualBox'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-1511564724769301568</id><published>2011-01-01T23:32:00.001-08:00</published><updated>2011-01-01T23:32:19.656-08:00</updated><title type='text'>How to use Wifi Tethering on Samsung Galaxy i5801</title><content type='html'>&lt;p&gt;1. First download the z4root apk file from &lt;a title="z4root.1.3.0.apk" href="http://forum.xda-developers.com/attachment.php?attachmentid=446145&amp;amp;d=1290341328"&gt;z4root.1.3.0.apk&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;2. Download the file f&lt;a href="http://dl.dropbox.com/u/1496809/fw_bcm4329.bin"&gt;w_bcm4329.bin&lt;/a&gt; from     &lt;br /&gt;&lt;a href="http://dl.dropbox.com/u/1496809/fw_bcm4329.bin"&gt;http://dl.dropbox.com/u/1496809/fw_bcm4329.bin&lt;/a&gt;     &lt;br /&gt;3) Mount your sdcard     &lt;br /&gt;4) Create a directory named &amp;quot;android.tether&amp;quot; (without quotes)     &lt;br /&gt;5) Open this directory and copy fw_bcm4329.bin into it. (downloaded file)     &lt;br /&gt;6) Uninstall old versions of &amp;quot;wireless tether&amp;quot;     &lt;br /&gt;7) Install the latest 2.0.5 release of WiFi Tether from: &lt;a href="http://code.google.com/p/android-wifi-tether/downloads/list"&gt;http://code.google.com/p/android-wifi-tether/downloads/list&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-1511564724769301568?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/1511564724769301568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=1511564724769301568' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1511564724769301568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1511564724769301568'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2011/01/how-to-use-wifi-tethering-on-samsung.html' title='How to use Wifi Tethering on Samsung Galaxy i5801'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2667560723587201530</id><published>2010-12-25T19:49:00.000-08:00</published><updated>2011-06-29T23:43:34.806-07:00</updated><title type='text'>Clean up RAC 10g install</title><content type='html'>&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2667560723587201530?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2667560723587201530/comments/default' title='Post Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2667560723587201530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2667560723587201530'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-4819695808378311380</id><published>2010-12-06T19:55:00.001-08:00</published><updated>2010-12-06T20:25:19.707-08:00</updated><title type='text'>Soa Suite 11gR1 (11.1.1.3.0) installation guide for Windows</title><content type='html'>&lt;p&gt;&lt;a href="http://vtkrishn.wordpress.com/2010/09/25/soa-suite-11gr1-11-1-1-3-0-installation-guide-for-windows/"&gt;http://vtkrishn.wordpress.com/2010/09/25/soa-suite-11gr1-11-1-1-3-0-installation-guide-for-windows/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://adfproject.googlecode.com/files/SOA_Installation_guide.doc"&gt;http://adfproject.googlecode.com/files/SOA_Installation_guide.doc&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;How to find the SOA Version&lt;/p&gt;  &lt;p&gt;/home/ias/Oracle/Middleware/Oracle_SOA1/bin/soaversion.sh &lt;/p&gt;  &lt;p&gt;*****************************************************************************   &lt;br /&gt;Oracle SOA Server version 11.1.1.3.0    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Build: 0    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Build time: Thu Apr 15 22:20:11 PDT 2010    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Build type: release    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Source tag: PCBPEL_11.1.1.3.0_GENERIC_100415.2045.2557 &lt;/p&gt;  &lt;p&gt;Oracle BAM Source Tag:ORABAM_11.1.1.3.0_GENERIC_100406.2108 &lt;/p&gt;  &lt;p&gt;Oracle BPM Source Tag: BPM_11.1.1.3.0_GENERIC_100415.1757.0684 &lt;/p&gt;  &lt;p&gt;Oracle Implementation-Version: Oracle Middleware 11.1.1 (ASKERNEL_11.1.1.3.0_   &lt;br /&gt; GENERIC_100411.1150, ADMINSERVER_11.1.1.3.0_GENERIC_100408.2100, J2EE    &lt;br /&gt; _11.1.1.3.0_GENERIC_100408.1504, JDEVADF_11.1.1.3.PS2_GENERIC_100408.    &lt;br /&gt; 2356.5660, TOPLINK_11.1.1.3.0_GENERIC_100323.1800, ENTSEC_11.1.1.3.0_    &lt;br /&gt; GENERIC_100403.1733)&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-4819695808378311380?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/4819695808378311380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=4819695808378311380' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4819695808378311380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4819695808378311380'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/12/soa-suite-11gr1-111130-installation.html' title='Soa Suite 11gR1 (11.1.1.3.0) installation guide for Windows'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-5111610291052956200</id><published>2010-11-11T04:06:00.001-08:00</published><updated>2010-11-11T04:06:28.139-08:00</updated><title type='text'>Reducing the PDF Page Size when printing</title><content type='html'>&lt;p&gt;Sometimes we need to print a pdf on a page that is lesser then A4 size. The main reason for this kind of printing is that size reduction. Carrying a A4 PAGE book is not that handy most of the times.&lt;/p&gt;  &lt;p&gt;For this we need to reduce the size of the page while printing. Unfortunately in Acrobat PDF Reader this option is not present.&lt;/p&gt;  &lt;p&gt;For this we can use the the PDF-XChange Viewer free edition.&lt;/p&gt;  &lt;p&gt;Download the PDF-XChange Viewer from &lt;a title="http://www.tracker-software.com/product/downloads/" href="http://www.tracker-software.com/product/downloads/"&gt;http://www.tracker-software.com/product/downloads/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Select File-&amp;gt;Print option and Select the Page Scaling as =&amp;gt; Custom Scale and Page Zoon as 75% and Select Auto-Center pages in sheets&lt;/p&gt;  &lt;p&gt;Please refer to the screen below&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_28es_J24NZ8/TNvcOoDaJBI/AAAAAAAAAhU/xIM6WHXA9YE/s1600-h/image%5B2%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="176" alt="image" src="http://lh4.ggpht.com/_28es_J24NZ8/TNvcQoxK3XI/AAAAAAAAAhY/GW2veNWycKU/image_thumb.png?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;After this you can cut the extra white space using a paper cutter.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-5111610291052956200?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/5111610291052956200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=5111610291052956200' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5111610291052956200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5111610291052956200'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/11/reducing-pdf-page-size-when-printing.html' title='Reducing the PDF Page Size when printing'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_28es_J24NZ8/TNvcQoxK3XI/AAAAAAAAAhY/GW2veNWycKU/s72-c/image_thumb.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-1576121046164756577</id><published>2010-11-07T20:36:00.001-08:00</published><updated>2010-11-07T20:36:45.146-08:00</updated><title type='text'>How to attach a pdf file to an email from a shell script</title><content type='html'>&lt;p&gt;Write the following shell script , &lt;/p&gt;  &lt;p&gt;---   &lt;br /&gt;echo &amp;quot;Training Calendar on ` date +%d-%b-%Y` &amp;quot; &amp;gt; /tmp/mailmessage.txt    &lt;br /&gt;wget -O /tmp/blr.pdf &amp;quot;&lt;a href="http://test.idc.oracle.com/test.pdf&amp;quot;"&gt;http://test.idc.oracle.com/test.pdf&amp;quot;&lt;/a&gt;    &lt;br /&gt;mutt -s &amp;quot;Training Calendar on ` date +%d-%b-%Y` &amp;quot; -a /tmp/trg_blr.pdf ravi.reddy@oracle.com &amp;lt; /tmp/mailmessage.txt    &lt;br /&gt;--- &lt;/p&gt;  &lt;p&gt;To change the from email address while using mutt   &lt;br /&gt;create a .muttrc in the users home directory if it doesnot exist, then enter the feild &lt;/p&gt;  &lt;p&gt;set realname=&amp;quot;ravi.reddy@oracle.com&amp;quot; this will change the name in the senders name .&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-1576121046164756577?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/1576121046164756577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=1576121046164756577' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1576121046164756577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1576121046164756577'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/11/how-to-attach-pdf-file-to-email-from.html' title='How to attach a pdf file to an email from a shell script'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-5786649195516898383</id><published>2010-09-15T02:43:00.001-07:00</published><updated>2010-09-15T02:43:36.951-07:00</updated><title type='text'>How to Hide Username/Passwords in shell scripts</title><content type='html'>&lt;p&gt;Please refer to this article for more details on this. &lt;/p&gt;  &lt;p&gt;I have lot of shell scripts where I have to store my username and passwords for accessing the data. This is a big security rish as my passwords are exposed. &lt;/p&gt;  &lt;p&gt;I need some executable which can convert my shell script to exe so that it will be difficult for the people to get my password. &lt;/p&gt;  &lt;p&gt;Download the sources from &lt;a href="http://www.datsi.fi.upm.es/%7Efrosal/sources/shc-3.8.6.tgz"&gt;http://www.datsi.fi.upm.es/%7Efrosal/sources/shc-3.8.6.tgz&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Extract the tar file &lt;/p&gt;  &lt;p&gt;tar xvfz shc-3.8.6.tgz &lt;/p&gt;  &lt;p&gt;Make the executable &lt;/p&gt;  &lt;p&gt;cd shc-3.8.6   &lt;br /&gt;make &lt;/p&gt;  &lt;p&gt;cp shc to /usr/bin directory &lt;/p&gt;  &lt;p&gt;I have a shell script which fetches some password protected pages , here   &lt;br /&gt;there is no other option for me other then embedding the password as the wget does     &lt;br /&gt;not support encrypted passwords &lt;/p&gt;  &lt;p&gt;for example , &lt;/p&gt;  &lt;p&gt;cat getcookie.sh &lt;/p&gt;  &lt;p&gt;#!/bin/ksh   &lt;br /&gt;/usr/bin/wget --keep-session-cookies --save-cookies=/home/ias/cookie.txt&amp;#160; -O /home/ias/dd.txt&amp;#160;&amp;#160; --input-file=/home/ias/urls.txt --http-user=xx.xxx@test.com --http-password=xxxxxxx &amp;gt; /dev/null    &lt;br /&gt;cat /home/ias/cookie.txt&amp;#160; | grep test&amp;#160; | cut --fields=7 &amp;gt; /home/ias/cookie.txt &lt;/p&gt;  &lt;p&gt;with the shc script I can convert the shell script as executable so that the passwords are hidden   &lt;br /&gt;from the people who has access to my unix system. &lt;/p&gt;  &lt;p&gt;Run the shc command &lt;/p&gt;  &lt;p&gt;shc -f getcookie.sh &lt;/p&gt;  &lt;p&gt;This creates the getcookie.sh.c and getcookie.sh.x where .c is the c source file and .x is the executable. &lt;/p&gt;  &lt;p&gt;Now run the getcookie.sh.x executable and change the password from the original getcookie.sh script. &lt;/p&gt;  &lt;p&gt;Please refer to the &lt;a href="http://blogs.koolwal.net/2009/01/20/howto-encrypting-a-shell-script-on-a-linux-or-unix-based-system/"&gt;http://blogs.koolwal.net/2009/01/20/howto-encrypting-a-shell-script-on-a-linux-or-unix-based-system/&lt;/a&gt;    &lt;br /&gt;for more details on this.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-5786649195516898383?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/5786649195516898383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=5786649195516898383' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5786649195516898383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5786649195516898383'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/09/how-to-hide-usernamepasswords-in-shell.html' title='How to Hide Username/Passwords in shell scripts'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-6490487311374016744</id><published>2010-09-11T08:07:00.001-07:00</published><updated>2010-09-11T08:24:13.731-07:00</updated><title type='text'>How to Upgrade samsung galaxy firmware</title><content type='html'>&lt;p&gt;Actually many firmware are available for each area (Europe, Asia and America). Last firmware version are:&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;Europe: I5800XWJH2    &lt;br /&gt;Asia: I5801DDJG6    &lt;br /&gt;America: I5800LVIJG8&lt;/p&gt; You can download the ODIN Multi Downloader from   &lt;br /&gt;  &lt;p&gt;&lt;a title="http://download968.mediafire.com/skeyfniqhphg/gnzzbkix0nd/Odin4_03-Spica_ops.zip" href="http://download968.mediafire.com/skeyfniqhphg/gnzzbkix0nd/Odin4_03-Spica_ops.zip"&gt;http://download968.mediafire.com/skeyfniqhphg/gnzzbkix0nd/Odin4_03-Spica_ops.zip&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Flashing with ODIN it's very simple (sorry for picture):   &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://lh4.ggpht.com/_28es_J24NZ8/TIufGXGnGkI/AAAAAAAAAg4/FZuFDuPjO2E/s1600-h/screenshot.32%5B2%5D.jpg"&gt;&lt;img title="screenshot.32" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="154" alt="screenshot.32" src="http://lh5.ggpht.com/_28es_J24NZ8/TIufHJmNrxI/AAAAAAAAAg8/02OOf8KQ5L0/screenshot.32_thumb.jpg?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Before running this utility you need to set the samsung phone in the download firmware mode , for this press &lt;/p&gt;  &lt;p&gt;Home+VolDown+Power and hold this for about 30 seconds to 1 minute&lt;/p&gt;  &lt;p&gt;In the ODIN screen , &lt;/p&gt;  &lt;p&gt;1) Select &amp;quot;One Package&amp;quot;   &lt;br /&gt;2) Select OPS file for I5801 (apollo.ops)&lt;/p&gt;  &lt;p&gt;Create apollo.ops file with the following contents ,&lt;/p&gt;  &lt;p&gt;0,boot   &lt;br /&gt;1,Sbl    &lt;br /&gt;2,logo    &lt;br /&gt;3,efs    &lt;br /&gt;4,zImage    &lt;br /&gt;5,factoryfs    &lt;br /&gt;6,datafs    &lt;br /&gt;7,cache    &lt;br /&gt;8,    &lt;br /&gt;9,modem &lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;3) In one package select the firmware that you want to flash. (I5801DDJG6.tar) Download the firmware from &lt;a title="http://uploading.com/files/1314471a/I5801DDJG6.rar/" href="http://uploading.com/files/1314471a/I5801DDJG6.rar/"&gt;http://uploading.com/files/1314471a/I5801DDJG6.rar/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;4) Start &lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;In about five minutes your mobile will be upgrades.    &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-6490487311374016744?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/6490487311374016744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=6490487311374016744' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6490487311374016744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6490487311374016744'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/09/how-to-upgrade-samsung-galaxy-firmware.html' title='How to Upgrade samsung galaxy firmware'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_28es_J24NZ8/TIufHJmNrxI/AAAAAAAAAg8/02OOf8KQ5L0/s72-c/screenshot.32_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-3887981718607229044</id><published>2010-09-07T03:07:00.001-07:00</published><updated>2010-09-07T03:07:45.026-07:00</updated><title type='text'>Setup XMail Server on Windows</title><content type='html'>&lt;p&gt;Please refer to the link &lt;a title="http://www.halfdone.com/Articles/XMailInstall/" href="http://www.halfdone.com/Articles/XMailInstall/"&gt;http://www.halfdone.com/Articles/XMailInstall/&lt;/a&gt; for more details on this.&lt;/p&gt;  &lt;p&gt;Here are the simplified steps to configure the XMail Server’s on Windows Machine&lt;/p&gt;  &lt;p&gt;1. Download the XMail Server from &lt;a href="http://www.xmailserver.org"&gt;http://www.xmailserver.org&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;2. Extract this to a directory say C:\xmail-1.27&lt;/p&gt;  &lt;p&gt;3. Copy the exe’s and dll’s to C:\xmail-1.27\MailRoot\bin directory&lt;/p&gt;  &lt;p&gt;4. Create the HKEY_LOCAL_MACHINE\SOFTWARE\GNU\XMAIL. Create the Sting (REG_SZ) values called MAIL_ROOT and MAIL_CMD_LINE. For the value of MAIL_ROOT put in the &amp;quot;MailRoot folder&amp;quot; location like C:\xmail-1.27\MailRoot. For MAIL_CMD_LINE you can leave it blank or put in &amp;quot;-Pl -Sl -Ql -Fl -Cl -Ll&amp;quot;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_28es_J24NZ8/TIYO0c4ki9I/AAAAAAAAAgo/_Yn8LknCa98/s1600-h/screenshot.28%5B2%5D.jpg"&gt;&lt;img title="screenshot.28" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="59" alt="screenshot.28" src="http://lh5.ggpht.com/_28es_J24NZ8/TIYO2UXpEFI/AAAAAAAAAgs/3EQUyAevL9g/screenshot.28_thumb.jpg?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;5. Here we are using the default domain , that is xmailserver.test , so no need to modify the configuration files.&lt;/p&gt;  &lt;p&gt;6. Run xmcrypt.exe to create an encoded password. It's used in the format of XMCRYPT.EXE &amp;lt;password&amp;gt;.&lt;/p&gt;  &lt;p&gt;xmcrypt.exe welcome1 &lt;/p&gt;  &lt;p&gt;1100161115041616120a1701&lt;/p&gt;  &lt;p&gt;7. Open the file C:\xmail-1.27\MailRoot\ctrlaccounts.tab and enter the following values &amp;quot;admin&amp;quot; &amp;lt;tab&amp;gt;&amp;#160;&amp;#160; &amp;quot;120009060a080054&amp;quot;&lt;/p&gt;  &lt;p&gt;8.&amp;#160; User and alias creation &lt;/p&gt;  &lt;p&gt;Check the domain &lt;/p&gt;  &lt;p&gt;ctrlclnt -s localhost -u admin -p welcome1 domainlist &amp;quot;xmailserver.test&amp;quot; &lt;/p&gt;  &lt;p&gt;Create two domain users &lt;/p&gt;  &lt;p&gt;ctrlclnt -s localhost -u admin -p welcome1 useradd &amp;quot;xmailserver.test&amp;quot; test1 welcome1 U    &lt;br /&gt;ctrlclnt -s localhost -u admin -p welcome1 useradd &amp;quot;xmailserver.test&amp;quot; test2 welcome1 U &lt;/p&gt;  &lt;p&gt;Check the users &lt;/p&gt;  &lt;p&gt;ctrlclnt -s localhost -u admin -p welcome1 userlist &amp;quot;xmailserver.test&amp;quot; &lt;/p&gt;  &lt;p&gt;Create aliases for these two users &lt;/p&gt;  &lt;p&gt;ctrlclnt -s localhost -u admin -p welcome1&amp;#160; aliasadd&amp;#160; &amp;quot;xmailserver.test&amp;quot; test1 ravi1    &lt;br /&gt;ctrlclnt -s localhost -u admin -p welcome1&amp;#160; aliasadd&amp;#160; &amp;quot;xmailserver.test&amp;quot; test2 ravi2 &lt;/p&gt;  &lt;p&gt;Check the aliases for these users &lt;/p&gt;  &lt;p&gt;ctrlclnt -s localhost -u admin -p welcome1 aliaslist&lt;/p&gt;  &lt;p&gt;9. Set up the POP3 email server and SMTP Outgoing server from Thunderbird. For the POP3 accounts set the SMTP Server as the localhost:25&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_28es_J24NZ8/TIYO45JUISI/AAAAAAAAAgw/jDnLlITrw7E/s1600-h/screenshot.30%5B2%5D.jpg"&gt;&lt;img title="screenshot.30" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="124" alt="screenshot.30" src="http://lh3.ggpht.com/_28es_J24NZ8/TIYO7Ty7P2I/AAAAAAAAAg0/jowYmq2mTGk/screenshot.30_thumb.jpg?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-3887981718607229044?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/3887981718607229044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=3887981718607229044' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3887981718607229044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3887981718607229044'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/09/setup-xmail-server-on-windows.html' title='Setup XMail Server on Windows'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_28es_J24NZ8/TIYO2UXpEFI/AAAAAAAAAgs/3EQUyAevL9g/s72-c/screenshot.28_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-3611895462865238781</id><published>2010-09-05T23:56:00.001-07:00</published><updated>2010-09-05T23:56:06.488-07:00</updated><title type='text'>Iphone Links</title><content type='html'>&lt;p&gt;How to Put an iPhone Into DFU Mode&amp;#160; &lt;br /&gt;&lt;a href="http://www.iclarified.com/entry/index.php?enid=1034"&gt;http://www.iclarified.com/entry/index.php?enid=1034&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;How to Unlock the iPhone 4, 3GS, 3G Using UltraSn0w    &lt;br /&gt;&lt;a href="http://www.iclarified.com/entry/index.php?enid=4253"&gt;http://www.iclarified.com/entry/index.php?enid=4253&lt;/a&gt;    &lt;br /&gt;&lt;a href="http://repo666.ultrasn0w.com/"&gt;http://repo666.ultrasn0w.com/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Caching Apple's Signature Server   &lt;br /&gt;&lt;a href="http://www.saurik.com/id/12"&gt;http://www.saurik.com/id/12&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Tiny Umbrella Readme   &lt;br /&gt;&lt;a href="http://dl.dropbox.com/u/7078752/ReadMe/ReadMe.rtf"&gt;http://dl.dropbox.com/u/7078752/ReadMe/ReadMe.rtf&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.iclarified.com/entry/index.php?enid=9194"&gt;http://www.iclarified.com/entry/index.php?enid=9194&lt;/a&gt;    &lt;br /&gt;How to Backup Your SHSH Blobs Using Firmware Umbrella [Windows] &lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.iphoneheat.com/2010/07/save-iphone-4-shsh-blobs-for-ios-4-with-tinyumbrella-4-00-49/"&gt;http://www.iphoneheat.com/2010/07/save-iphone-4-shsh-blobs-for-ios-4-with-tinyumbrella-4-00-49/&lt;/a&gt;    &lt;br /&gt;Save iPhone 4 SHSH Blobs for iOS 4 with TinyUmbrella 4.00.49 &lt;/p&gt;  &lt;p&gt;&lt;a href="http://wccftech.com/2010/08/15/downgrade-ios-402-ios-401-ios-40-jailbreaking-guide-iphone-4-3gs-3g-ipod-touch/"&gt;http://wccftech.com/2010/08/15/downgrade-ios-402-ios-401-ios-40-jailbreaking-guide-iphone-4-3gs-3g-ipod-touch/&lt;/a&gt;    &lt;br /&gt;Downgrade from iOS 4.0.2 to iOS 4.0.1, iOS 4.0, Jailbreaking Guide for iPhone 4, 3GS, 3G and iPod Touch. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.mobile-geeks.com/how-to-fix-different-sim-detected-error-on-iphone-4-after-jailbreak-5623/"&gt;http://www.mobile-geeks.com/how-to-fix-different-sim-detected-error-on-iphone-4-after-jailbreak-5623/&lt;/a&gt;    &lt;br /&gt;How to Fix Different SIM Detected Error on iPhone 4 after Jailbreak/Unlock &lt;/p&gt;  &lt;p&gt;hosts file C:\WINDOWS\system32\drivers\etc\hosts   &lt;br /&gt;74.208.105.171 gs.apple.com &lt;/p&gt;  &lt;p&gt;How To Find &amp;amp; Copy iPhone/iPad ECID Using USBView   &lt;br /&gt;&lt;a href="http://www.iphoneappsplanet.com/730/find-copy-iphoneipad-ecid-usbview.htm"&gt;http://www.iphoneappsplanet.com/730/find-copy-iphoneipad-ecid-usbview.htm&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-3611895462865238781?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/3611895462865238781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=3611895462865238781' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3611895462865238781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3611895462865238781'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/09/iphone-links.html' title='Iphone Links'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-4479643239455580750</id><published>2010-08-16T01:56:00.001-07:00</published><updated>2010-08-16T01:56:35.904-07:00</updated><title type='text'>How to find the Patch Set Version that has been applied on your Oracle_Home</title><content type='html'>&lt;p&gt;For the OAS 10g release you can run the following. &lt;/p&gt;  &lt;p&gt;cd $ORACLE_HOME/j2ee/home&lt;/p&gt;  &lt;p&gt;$ORACLE_HOME/jdk/bin/java -jar&amp;#160; oc4j.jar -version   &lt;br /&gt;Oracle Containers for J2EE 10g (10.1.3.4.0)&amp;#160; (build RELEASE.26167)&lt;/p&gt;  &lt;p&gt;or you can also do &lt;/p&gt;  &lt;p&gt;cd $ORACLE_HOME/inventory/ContentsXML&lt;/p&gt;  &lt;p&gt;cat comps.xml | grep patchset&lt;/p&gt;  &lt;p&gt;This shows the o/p as&lt;/p&gt;  &lt;p&gt;cat comps.xml | grep patchset   &lt;br /&gt;&amp;lt;PATCHSET NAME=&amp;quot;oracle.as.j2ee.patchset&amp;quot; VER=&amp;quot;10.1.3.4.0&amp;quot; BUILD_NUMBER=&amp;quot;0&amp;quot; RELEASE=&amp;quot;Production&amp;quot; INV_LOC=&amp;quot;PatchSets/oracle.as.j2ee.patchset/10.1.3.4.0/3/&amp;quot; XML_INV_LOC=&amp;quot;PatchSets21/oracle.as.j2ee.patchset/10.1.3.4.0/&amp;quot; ACT_INST_VER=&amp;quot;10.1.0.6.0&amp;quot; DEINST_VER=&amp;quot;10.1.0.2.0&amp;quot; INSTALL_TIME=&amp;quot;2009.Mar.17 09:21:56 IST&amp;quot;&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;INFO NAME=&amp;quot;helpDir&amp;quot; VAL=&amp;quot;PatchSets/oracle/as/j2ee/patchset/v10_1_3_4_0/help/&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;INFO NAME=&amp;quot;resourceClass&amp;quot; VAL=&amp;quot;PatchSets.oracle.as.j2ee.patchset.v10_1_3_4_0.resources.CompRes&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;REF NAME=&amp;quot;oracle.as.j2ee.patchset&amp;quot; VER=&amp;quot;10.1.3.4.0&amp;quot; HOME_IDX=&amp;quot;5&amp;quot;/&amp;gt;&lt;/p&gt;  &lt;p&gt;For the FMW 11g release perform the following &lt;/p&gt;  &lt;p&gt;cd $ORACLE_HOME/inventory/ContentsXML &lt;/p&gt;  &lt;p&gt;cat comps.xml | grep patchset&lt;/p&gt;  &lt;p&gt;This shows the o/p as &lt;/p&gt;  &lt;p&gt;&amp;lt;PATCHSET NAME=&amp;quot;oracle.as.soa.top.patchset&amp;quot; VER=&amp;quot;11.1.1.3.0&amp;quot; BUILD_NUMBER=&amp;quot;0&amp;quot; RELEASE=&amp;quot;Production&amp;quot; INV_LOC=&amp;quot;PatchSets/oracle.as.soa.top.patchset/11.1.1.3.0/1/&amp;quot; XML_INV_LOC=&amp;quot;PatchSets21/oracle.as.soa.top.patchset/11.1.1.3.0/&amp;quot; ACT_INST_VER=&amp;quot;11.1.0.8.0&amp;quot; DEINST_VER=&amp;quot;11.1.0.0.0&amp;quot; INSTALL_TIME=&amp;quot;2010.Aug.06 21:53:00 IST&amp;quot;&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;INFO NAME=&amp;quot;helpDir&amp;quot; VAL=&amp;quot;PatchSets/oracle/as/soa/top/patchset/v11_1_1_3_0/help/&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;INFO NAME=&amp;quot;resourceClass&amp;quot; VAL=&amp;quot;PatchSets.oracle.as.soa.top.patchset.v11_1_1_3_0.resources.CompRes&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;REF NAME=&amp;quot;oracle.as.soa.top.patchset&amp;quot; VER=&amp;quot;11.1.1.3.0&amp;quot; HOME_IDX=&amp;quot;5&amp;quot;/&amp;gt;&lt;/p&gt;  &lt;p&gt;For the DB you can issue the command , &lt;/p&gt;  &lt;p&gt;$ORACLE_HOME/bin/sqlplus and note down the version details for example , &lt;/p&gt;  &lt;p&gt;SQL*Plus: Release 10.2.0.4.0 - Production on Mon Aug 16 14:24:29 2010&lt;/p&gt;  &lt;p&gt;or you can connect to the DB and find out the version details.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-4479643239455580750?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/4479643239455580750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=4479643239455580750' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4479643239455580750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4479643239455580750'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/08/how-to-find-patch-set-version-that-has.html' title='How to find the Patch Set Version that has been applied on your Oracle_Home'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-1360866913049145583</id><published>2010-08-03T21:52:00.001-07:00</published><updated>2010-08-03T21:52:06.158-07:00</updated><title type='text'>How to Install WebLogic Standalone Server</title><content type='html'>&lt;p&gt;1. Download the WebLogic stand alone zip file from the location , &lt;/p&gt;  &lt;p&gt;&lt;a href="http://download.oracle.com/otn/nt/middleware/11g/wls1033_dev.zip"&gt;http://download.oracle.com/otn/nt/middleware/11g/wls1033_dev.zip&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;2. Extract this zip to a directory say C:\wlsdev &lt;/p&gt;  &lt;p&gt;3. Set the following env variables &lt;/p&gt;  &lt;p&gt;set JAVA_HOME=C:\jdk16   &lt;br /&gt;set MW_HOME=c:\wlsdev &lt;/p&gt;  &lt;p&gt;4. Run the installation configuration script in the MW_HOME directory   &lt;br /&gt;(This step is required to be run only once. If you move the installation to     &lt;br /&gt;another location/machine, you need to rerun this step)&amp;#160; configure.cmd    &lt;br /&gt;5. Create the domain using the script by running the utility &lt;/p&gt;  &lt;p&gt;c:\wlsdev\wlserver\common\bin\config.cmd &lt;/p&gt;  &lt;p&gt;6. Create a domain say testdomain in the directory    &lt;br /&gt;C:\wlsdev\user_projects\domains\testdomain &lt;/p&gt;  &lt;p&gt;7. Start the WLS server by running the command &lt;/p&gt;  &lt;p&gt;C:\wlsdev\user_projects\domains\testdomain\startWebLogic.cmd&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-1360866913049145583?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/1360866913049145583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=1360866913049145583' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1360866913049145583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1360866913049145583'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/08/how-to-install-weblogic-standalone.html' title='How to Install WebLogic Standalone Server'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-1683005180890920580</id><published>2010-07-02T05:35:00.001-07:00</published><updated>2010-07-02T05:35:15.113-07:00</updated><title type='text'>How to find a file is 32bit or 64 bit on Windows</title><content type='html'>&lt;p&gt;Download the utility file.exe from    &lt;br /&gt;&lt;a href="http://www.vowles-home.demon.co.uk/utils/file.zip"&gt;http://www.vowles-home.demon.co.uk/utils/file.zip&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now run the command &lt;/p&gt;  &lt;p&gt;file pidgin-2.6.6.exe &lt;/p&gt;  &lt;p&gt;pidgin-2.6.6.exe, DOS/Win, i386 32bit executable, GUI, PE format &lt;/p&gt;  &lt;p&gt;file c:\wordpad.exe &lt;/p&gt;  &lt;p&gt;c:\wordpad.exe, DOS/Win, x86-64 64bit executable, GUI, PE format &lt;/p&gt;  &lt;p&gt;file c:\TeraCopyExt64.dll &lt;/p&gt;  &lt;p&gt;c:\TeraCopyExt64.dll, DOS/Win, x86-64 64bit executable, dll, GUI, PE format &lt;/p&gt;  &lt;p&gt;file c:\TeraCopyExt.dll &lt;/p&gt;  &lt;p&gt;c:\TeraCopyExt.dll, DOS/Win, i386 32bit executable, GUI, PE Modifed&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-1683005180890920580?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/1683005180890920580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=1683005180890920580' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1683005180890920580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1683005180890920580'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/07/how-to-find-file-is-32bit-or-64-bit-on.html' title='How to find a file is 32bit or 64 bit on Windows'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2493577006842106274</id><published>2010-06-03T03:14:00.001-07:00</published><updated>2010-06-03T03:14:28.034-07:00</updated><title type='text'>How to Configure Exchange Connector</title><content type='html'>&lt;p&gt;1. Try to get hold of a system where exchange and active directory are installed.&lt;/p&gt;  &lt;p&gt;2. Install AD Connector on the OIM Server and provision a user (For testing purpose)&lt;/p&gt;  &lt;p&gt;3. Install Microsoft Exchange connector on the OIM Server. Please note that you need the Remote Manager only when you are using the exchange server 2007. Otherwise you do not need to any thing on the OIM Server.&lt;/p&gt;  &lt;p&gt;4. Create a IT Resource for Exchange and leave all the attributes as blank. &lt;/p&gt;  &lt;p&gt;5. Run the “Exchange Mail Store Lookup Reconciliation” task , before running this task scheduler change the “AD IT resource” attribute to the AD Connector that you created in the step no:2.&lt;/p&gt;  &lt;p&gt;6. This schedule task populates the “Lookup.ExchangeReconciliation.MailStore” lookup values. For example in my case it populated my mail box name as “celvpint0309-ADInstance~CN=Mailbox Store (MSBOX),CN=First Storage Group,CN=InformationStore,CN=MSBOX,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=MSExchange2003Org,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=vm,DC=oracle,DC=com”&lt;/p&gt;  &lt;p&gt;7. Now provision the AD User to the Exchange System. Only mandatory fields are Email Alias Name and the mail store name.&lt;/p&gt;  &lt;p&gt;8. Now log in to the AD Server machine and check the AD User. For the exchange user you will see more attributes in the AD User TAB.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2493577006842106274?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2493577006842106274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=2493577006842106274' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2493577006842106274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2493577006842106274'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/06/how-to-configure-exchange-connector.html' title='How to Configure Exchange Connector'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-741555895857409140</id><published>2010-05-20T05:08:00.001-07:00</published><updated>2010-05-20T05:08:19.318-07:00</updated><title type='text'>How to use the ADAM Connector with OIM</title><content type='html'>&lt;p&gt;1. Download the ADAM Installer from the microsoft site ADAMSP1_x86_English.exe&lt;/p&gt;  &lt;p&gt;2. Install the ADAM Executables&lt;/p&gt;  &lt;p&gt;3. Click on the menu option Create ADAM Instance&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_28es_J24NZ8/S_Ul85Jpk5I/AAAAAAAAAek/Ad-yKjuMj4k/s1600-h/image%5B2%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="188" alt="image" src="http://lh3.ggpht.com/_28es_J24NZ8/S_Ul9khHF-I/AAAAAAAAAeo/AZ-p0HnjEks/image_thumb.png?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_28es_J24NZ8/S_Ul-LaL0GI/AAAAAAAAAes/MNeCiQ8A5n4/s1600-h/image%5B5%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="188" alt="image" src="http://lh4.ggpht.com/_28es_J24NZ8/S_Ul_Di-VNI/AAAAAAAAAew/kiw6gGFL-ys/image_thumb%5B1%5D.png?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_28es_J24NZ8/S_Ul_gMZ1yI/AAAAAAAAAe0/H6pFxAnIgdQ/s1600-h/image%5B8%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="188" alt="image" src="http://lh4.ggpht.com/_28es_J24NZ8/S_UmAdqdU3I/AAAAAAAAAe4/pePUEXjJioU/image_thumb%5B2%5D.png?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_28es_J24NZ8/S_UmBMODcGI/AAAAAAAAAe8/Hi9PKhaQCmM/s1600-h/image%5B11%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="188" alt="image" src="http://lh3.ggpht.com/_28es_J24NZ8/S_UmBhcvt_I/AAAAAAAAAfA/Q213JNGHPF8/image_thumb%5B3%5D.png?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_28es_J24NZ8/S_UmCVRDijI/AAAAAAAAAfE/Y5WaCbnq7lg/s1600-h/image%5B14%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="188" alt="image" src="http://lh3.ggpht.com/_28es_J24NZ8/S_UmC8oaE1I/AAAAAAAAAfI/qbF2cDjfCX8/image_thumb%5B4%5D.png?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_28es_J24NZ8/S_UmDQXfBdI/AAAAAAAAAfM/vM9MBoI6PdM/s1600-h/image%5B17%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="188" alt="image" src="http://lh5.ggpht.com/_28es_J24NZ8/S_UmELSXj0I/AAAAAAAAAfQ/oE7G_Ca5FqE/image_thumb%5B5%5D.png?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_28es_J24NZ8/S_UmEhsY_oI/AAAAAAAAAfU/57KU1etAqII/s1600-h/image%5B20%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="188" alt="image" src="http://lh4.ggpht.com/_28es_J24NZ8/S_UmFfSVj5I/AAAAAAAAAfY/LJMyaA3gxTY/image_thumb%5B6%5D.png?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt; &lt;a href="http://lh6.ggpht.com/_28es_J24NZ8/S_UmGKPAWfI/AAAAAAAAAfc/tqfRubTkMKc/s1600-h/image%5B23%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="188" alt="image" src="http://lh5.ggpht.com/_28es_J24NZ8/S_UmGu5x2-I/AAAAAAAAAfg/9b9WOogMFRg/image_thumb%5B7%5D.png?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_28es_J24NZ8/S_UmHV-cyJI/AAAAAAAAAfk/nuLRS5Rg5fI/s1600-h/image%5B26%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="188" alt="image" src="http://lh3.ggpht.com/_28es_J24NZ8/S_UmIKy5pfI/AAAAAAAAAfo/hqlO9NSksFI/image_thumb%5B8%5D.png?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_28es_J24NZ8/S_UmIvq9FZI/AAAAAAAAAfs/wqsjMJqxPOk/s1600-h/image%5B29%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="188" alt="image" src="http://lh4.ggpht.com/_28es_J24NZ8/S_UmJd093PI/AAAAAAAAAfw/tnFPkYaGimQ/image_thumb%5B9%5D.png?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt; 4. Now open the ADAM ADSI Edit Program and connect to the ADAM Server&lt;/p&gt;  &lt;p&gt;Use the port number as 50000 and the Naming Context as O=Oracle,c=in&lt;/p&gt;  &lt;p&gt;5. Create a user under the directory tree “O=Oracle,c=in” with the username as Admin and set the password as Welcome1.&lt;/p&gt;  &lt;p&gt;6. Add this user to the group “CN=Administrators,CN=Roles,O=Oracle,C=in”&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_28es_J24NZ8/S_UmKJL1WAI/AAAAAAAAAf0/u2DA2jmXeak/s1600-h/image%5B32%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="157" alt="image" src="http://lh3.ggpht.com/_28es_J24NZ8/S_UmKuorZZI/AAAAAAAAAf4/Mcg5pvCpNGI/image_thumb%5B10%5D.png?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;7. Create an Organization Unit with the name say BDE&lt;/p&gt;  &lt;p&gt;8. From the OIM Create a IT Resource and change the following values&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_28es_J24NZ8/S_UmL8PnL6I/AAAAAAAAAf8/GsOP60-B2dg/s1600-h/image%5B35%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="184" alt="image" src="http://lh3.ggpht.com/_28es_J24NZ8/S_UmMgqfMCI/AAAAAAAAAgA/u8OivODp6qc/image_thumb%5B11%5D.png?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;AdminFQDN=CN=Admin,O=BDE,CN=BDE,DC=idc,DC=oracle,DC=com&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; RootContext=o=BDE,cn=BDE,dc=idc,dc=oracle,dc=com&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; AtMap ADGroup=AtMap.ADAMGroup&amp;#160; &lt;br /&gt;AtMap ADUser=AtMap.ADAM&amp;#160; &lt;br /&gt;isADAM=yes&amp;#160; &lt;/p&gt;  &lt;p&gt;9. Open the Lookup.ADReconciliation.Organization and add the Organization to the LOV “OU=BDE,O=Oracle,cn=India”&lt;/p&gt;  &lt;p&gt;10. Create a user in OIM and provision this user to the ADAM Resource&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-741555895857409140?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/741555895857409140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=741555895857409140' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/741555895857409140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/741555895857409140'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/05/how-to-use-adam-connector-with-oim.html' title='How to use the ADAM Connector with OIM'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_28es_J24NZ8/S_Ul9khHF-I/AAAAAAAAAeo/AZ-p0HnjEks/s72-c/image_thumb.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-3338113074054045219</id><published>2010-04-19T22:35:00.001-07:00</published><updated>2010-04-19T22:35:14.999-07:00</updated><title type='text'>Find out Zero Byte Files</title><content type='html'>&lt;p&gt;import java.io.*;   &lt;br /&gt;import java.util.*; &lt;/p&gt;  &lt;p&gt;import java.util.zip.*; &lt;/p&gt;  &lt;p&gt;public class FindZeroByteFiles {   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public FindZeroByteFiles() {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; public static void main(String[] args) {   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; FindZeroByteFiles findZeroByteFiles = new FindZeroByteFiles();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; File f1 = new File(args[0]);    &lt;br /&gt;&amp;#160; traverse(f1);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public static void traverse(File f) {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; String s1 = f.getAbsolutePath(); &lt;/p&gt;  &lt;p&gt;if (f.isFile())   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; long i =&amp;#160; filesize(s1)&amp;#160;&amp;#160;&amp;#160; ;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (i==0 ) {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(s1);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (f.isDirectory()) {   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; String[] children = f.list();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; for (int i=0; i&amp;lt;children.length; i++) {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; traverse(new File(f, children[i]));    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; public static long&amp;#160; filesize(String filename)&amp;#160; {   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; long&amp;#160; i = 0;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; BufferedReader in = new BufferedReader(new InputStreamReader(System.in));    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; File f = new File(filename);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if(f.exists()){    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; long file_size = f.length();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //&amp;#160; System.out.println(&amp;quot;Size of the file : &amp;quot; + file_size);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; i = file_size;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return i;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;Run this program with the following arguments. &lt;/p&gt;  &lt;p&gt;java&amp;#160; -client -classpath C:\ravi FindZeroByteFiles d:\Test&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-3338113074054045219?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/3338113074054045219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=3338113074054045219' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3338113074054045219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3338113074054045219'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/04/find-out-zero-byte-files.html' title='Find out Zero Byte Files'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-3307690757246793155</id><published>2010-03-25T18:17:00.001-07:00</published><updated>2010-03-25T18:17:46.597-07:00</updated><title type='text'>Iphone BSNL 3g Testing</title><content type='html'>&lt;p&gt;You need to enter the following details manually for the BSNL 3g Setp &lt;/p&gt;  &lt;p&gt;(Settings &amp;gt; General &amp;gt; Network &amp;gt; Cellular Data Network &amp;gt; Advanced &amp;gt; &lt;/p&gt;  &lt;p&gt;And set the following entries &lt;/p&gt;  &lt;p&gt;APN: gprssouth.cellone.in   &lt;br /&gt;U: +91(Mobile number)    &lt;br /&gt;P: +91(Mobile Number) &lt;/p&gt;  &lt;p&gt;With the SpeedTest I got the results of 1.6MB download and    &lt;br /&gt;270KB Upload speed.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-3307690757246793155?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/3307690757246793155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=3307690757246793155' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3307690757246793155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3307690757246793155'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/03/iphone-bsnl-3g-testing.html' title='Iphone BSNL 3g Testing'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2498226784175706001</id><published>2010-03-25T09:13:00.001-07:00</published><updated>2010-03-25T21:18:35.716-07:00</updated><title type='text'>How to JailBreak and Unlock iphone</title><content type='html'>&lt;p&gt;I recently bought an iphone 3g in ebay. The phone came up AT&amp;amp;T sim card and locked. &lt;/p&gt;  &lt;p&gt;The phone is having 3.1.2(7D11) firmware and 05.11.07 baseband.&lt;/p&gt;  &lt;p&gt;I initially tried to use the blackra1n. I used the following article to    &lt;br /&gt;jailbreak and unlock my iphone 3g version. It is extremely easy to use this utility. You just need to connect your iphone to the computer and run the blackrain utility.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.iphonedownloadblog.com/2009/11/03/tutorial-jailbreak-iphone-3-1-2-blackra1n/" target="_blank"&gt;http://www.iphonedownloadblog.com/2009/11/03/tutorial-jailbreak-iphone-3-1-2-blackra1n/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;But after unlocking I found various problems like GPS not working and ssh to the iphone is not working etc. I found that all these problems are due to some bugs in the blackra1n jail breaking code. &lt;/p&gt;  &lt;p&gt;Because of these problems I decided to use some other jail broken solutions so that I can get back my GPS and other stuff that were broken with the blackra1n. &lt;/p&gt;  &lt;p&gt;Here is the procedure that I followed for this. &lt;/p&gt;  &lt;p&gt;First I downloaded the utility from the site    &lt;br /&gt;&lt;a href="http://downloads.ih8sn0w.com/f0recast-1.1.exe" target="_blank"&gt;http://downloads.ih8sn0w.com/f0recast-1.1.exe&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Connect your iphone to the computer and run this utility.&lt;/p&gt;  &lt;p&gt;Here is the screen shot from that utility. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_28es_J24NZ8/S6uLcVnU6QI/AAAAAAAAAcc/64RFcz2Vgkk/s1600-h/screenshot.8%5B2%5D.jpg"&gt;&lt;img title="screenshot.8" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="227" alt="screenshot.8" src="http://lh6.ggpht.com/_28es_J24NZ8/S6uLd5VXb3I/AAAAAAAAAcg/jaG6F-y8uvs/screenshot.8_thumb.jpg?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;From here I found that I can use any jail broken utility so I decided    &lt;br /&gt;use redsn0w for this as this is from iphone dev team.&lt;/p&gt;  &lt;p&gt;As my phone was already jailbroken I want to restore to the base settings. &lt;/p&gt;  &lt;p&gt;I downloaded the 3.1.2 firmware from the location given below ( Please note that you need to check your firmware version from iphone using Settings-&amp;gt; General -&amp;gt; Version , my version is 3.1.2(7D11) and download the correct version only.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;so I downloaded the corresponding the firmware version from the location &lt;/p&gt;  &lt;p&gt;&lt;a href="http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-7468.20100202.pbnrt/iPhone1,2_3.1.3_7E18_Restore.ipsw" target="_blank"&gt;http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-7468.20100202.pbnrt/iPhone1,2_3.1.3_7E18_Restore.ipsw&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;After downloading connect your iphone to the itunes and Press the Shift button and Click on Restore button , this will ask    &lt;br /&gt;for the iphone firmware file and here select the file iPhone1,2_3.1.3_7E18_Restore.ipsw. &lt;/p&gt;  &lt;p&gt;iTunes will automatically put the iphone in the restore mode and reboots the iphone. After this operation iphone will be in the factory condition with locked. In this mode you will be only able to make emergency calls only. Do not get panic at thing point of time. We need to jailbreak this to get the iphone screen back.&lt;/p&gt;  &lt;p&gt;Download redsnow 9.2 from the following link &lt;/p&gt;  &lt;p&gt;&lt;a href="http://xs1.iphwn.org/rs//redsn0w-win_0.9.2.zip" target="_blank"&gt;http://xs1.iphwn.org/rs//redsn0w-win_0.9.2.zip&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;extract this file to a directory and copy the file iPhone1,2_3.1.3_7E18_Restore.ipsw&amp;#160; to the same directory. &lt;/p&gt;  &lt;p&gt;Now run the program redsn0w.exe and click on the browse button and select the&amp;#160; iPhone1,2_3.1.3_7E18_Restore.ipsw    &lt;br /&gt;file. &lt;/p&gt;  &lt;p&gt;Here is the screen shot for that , &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_28es_J24NZ8/S6uLeYQPvwI/AAAAAAAAAck/yF3T7RAaTKk/s1600-h/screenshot.9%5B2%5D.jpg"&gt;&lt;img title="screenshot.9" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="112" alt="screenshot.9" src="http://lh6.ggpht.com/_28es_J24NZ8/S6uLfGDOmZI/AAAAAAAAAco/2oKnjnG98Gc/screenshot.9_thumb.jpg?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Now click on the next button and select the option's    &lt;br /&gt;Install Cydia etc. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_28es_J24NZ8/S6uLf1twtAI/AAAAAAAAAcs/rWkw1tFHP7Y/s1600-h/screenshot.14%5B2%5D.jpg"&gt;&lt;img title="screenshot.14" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="244" alt="screenshot.14" src="http://lh3.ggpht.com/_28es_J24NZ8/S6uLgsX1AqI/AAAAAAAAAcw/JAMfBlsogSA/screenshot.14_thumb.jpg?imgmax=800" width="229" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;After this follow the exact steps mentioned in the screen, You need to enter the iphone in to DFU mode and the redSn0w does the rest. If you are not a expert of iphone you may need to try this 3 or 4 times.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_28es_J24NZ8/S6uLhEBYpSI/AAAAAAAAAc0/pU-Z8tnnxh4/s1600-h/screenshot.15%5B2%5D.jpg"&gt;&lt;img title="screenshot.15" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="244" alt="screenshot.15" src="http://lh5.ggpht.com/_28es_J24NZ8/S6uLhyDKzBI/AAAAAAAAAc4/DXLdzTyLEBM/screenshot.15_thumb.jpg?imgmax=800" width="230" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_28es_J24NZ8/S6uLiq3B3bI/AAAAAAAAAc8/dF0qKeMBMKE/s1600-h/screenshot.16%5B2%5D.jpg"&gt;&lt;img title="screenshot.16" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="244" alt="screenshot.16" src="http://lh6.ggpht.com/_28es_J24NZ8/S6uLjB12DXI/AAAAAAAAAdA/yUAXlAnOQUI/screenshot.16_thumb.jpg?imgmax=800" width="229" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;After this operation your phone is Jail Broken. &lt;/p&gt;  &lt;p&gt;Now you need to unlock the phone. Please use the following link to unlock the phone using the blacksn0w. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Ensure that you have a wi-fi connection in your home before trying this. Enable the wi-fi connection on your iphone so that you can download the unlock utility using this wi-fi connection.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;This is also extremely easy you , you can follow the url given below for more details on this.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.aboutonlinetips.com/unlock-iphone-3g-3gs-os-3-1-2-using-blacksn0w-via-cydia/"&gt;http://www.aboutonlinetips.com/unlock-iphone-3g-3gs-os-3-1-2-using-blacksn0w-via-cydia/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Step 1 - Start ‘Cydia’ on your iPhone springboard.    &lt;br /&gt;Step 2 - Select ‘Manage’ tab at the bottom of your iPhone screen and then select ‘Sources’.     &lt;br /&gt;Step 3 - Select ‘Edit’ and then select ‘Add’. Now enter a url source. Type ‘&lt;a href="http://blackra1n.com&amp;rsquo;"&gt;http://blackra1n.com’&lt;/a&gt; and select on ‘Add Source’. Once Cydia has added the source click on ‘Return to Cydia’ button.     &lt;br /&gt;Step 4 – Once the installation is completed. Search for ‘blacksn0w’ in Cydia and install it.     &lt;br /&gt;Step 5 - Reboot your iPhone. Your iPhone 3G or 3GS on 3.1.2 firmware will be unlocked automatically. &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2498226784175706001?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2498226784175706001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=2498226784175706001' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2498226784175706001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2498226784175706001'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/03/how-to-jailbreak-and-unlock-iphone.html' title='How to JailBreak and Unlock iphone'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_28es_J24NZ8/S6uLd5VXb3I/AAAAAAAAAcg/jaG6F-y8uvs/s72-c/screenshot.8_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-7113877823733224183</id><published>2010-03-25T04:43:00.001-07:00</published><updated>2010-03-25T04:43:48.693-07:00</updated><title type='text'>Disabling Windows 2003 Internet explorer security settings</title><content type='html'>&lt;p&gt;Windows Server 2003 shipped with security locked down by default.&amp;#160; Part of this locking down is Internet Explorer Enhanced Security which is an extra layer of protection when surfing the internet using Internet Explorer (more information can be found by going here on a Windows Server 2003 [test] machine).&amp;#160; &lt;/p&gt;  &lt;p&gt;Click Start, put your mouse over Control Panel, and click Add/Remove Programs &lt;/p&gt;  &lt;p&gt;Now click Add/Remove Windows Components &lt;/p&gt;  &lt;p&gt;After a few seconds a window will pop-up.&amp;#160; Click the check mark next to Internet Explorer Enhanced Security Configuration (to make it unchecked).&amp;#160; If you'd like to only disable it for Administrators or only for Users you can click Details and do so. &lt;/p&gt;  &lt;p&gt;Press Next, after this internet explorer will work in the same way that is used to work with Windows XP. &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-7113877823733224183?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/7113877823733224183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=7113877823733224183' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7113877823733224183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7113877823733224183'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/03/disabling-windows-2003-internet.html' title='Disabling Windows 2003 Internet explorer security settings'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-5363926741085048844</id><published>2010-03-22T00:36:00.001-07:00</published><updated>2010-03-22T00:36:29.916-07:00</updated><title type='text'>How to use Custom ringtones in iPhone</title><content type='html'>&lt;p&gt;1. Get access to the mp3 or wav file that you want to convert to a ringtone. In my example, I am looking for a rock drummer loop as a ringtone for my friend who is a monkey percussionist. &lt;/p&gt;  &lt;p&gt;2. Drag the file into iTunes &lt;/p&gt;  &lt;p&gt;3. Select the file in iTunes and then select Convert Selection to AAC in the Advanced menu. &lt;/p&gt;  &lt;p&gt;4. Select your new AAC file and select Show in Finder in the File menu &lt;/p&gt;  &lt;p&gt;5. In finder, select the file and select Get Info from the File menu and iPhone features &lt;/p&gt;  &lt;p&gt;6. Change the file extension from .m4a to .m4r &lt;/p&gt;  &lt;p&gt;7. Confirm when the dialog asks if you really want to make the change &lt;/p&gt;  &lt;p&gt;8. Drag the new file back into iTunes. The original files will remain but the ringtone will disappear. (It is actually being moved to following location: ~/Music/iTunes/iTunes Music/Ringtones ) &lt;/p&gt;  &lt;p&gt;9. Connect your iPhone and select the Ringtone tab in iTunes. Select the new ringtone that has been created. &lt;/p&gt;  &lt;p&gt;10. Now simply sync your iphone with iTunes. &lt;/p&gt;  &lt;p&gt;11. Now you can select the Ringtone you wish.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-5363926741085048844?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/5363926741085048844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=5363926741085048844' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5363926741085048844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5363926741085048844'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/03/how-to-use-custom-ringtones-in-iphone.html' title='How to use Custom ringtones in iPhone'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-7410823406301783029</id><published>2010-03-08T21:36:00.001-08:00</published><updated>2010-03-08T21:36:33.471-08:00</updated><title type='text'>How to find out the OIM code that gets executed when you click a link on the OIM WebConsole</title><content type='html'>&lt;p&gt;1. Most of the code is present in the file    &lt;br /&gt;C:\oim9102-Jboss\oim-server\xellerate\webapp\xlWebApp.war &lt;/p&gt;  &lt;p&gt;2. Extract this file to a temporary directory &lt;/p&gt;  &lt;p&gt;3. From the WebConsole note down the URL    &lt;br /&gt;i.e.&amp;#160; &lt;a href="http://localhost:8080/xlWebApp/AboutXl.do"&gt;http://localhost:8080/xlWebApp/AboutXl.do&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;4. Open the file tiles-defs.xml and look for the entry &amp;quot;AboutXl&amp;quot; in this file &lt;/p&gt;  &lt;p&gt;From this we can find out that this is the JSP tjspAboutXlTiles.jsp that gets executed &lt;/p&gt;  &lt;p&gt; &amp;lt;definition name=&amp;quot;site.AboutXl.page&amp;quot; extends=&amp;quot;site.mainLayout&amp;quot;&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;put name=&amp;quot;title&amp;quot; value=&amp;quot;global.window.title.aboutOIM&amp;quot; /&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;put name=&amp;quot;body&amp;quot; value=&amp;quot;/tiles/tjspAboutXlTiles.jsp&amp;quot; /&amp;gt;    &lt;br /&gt;&amp;#160; &amp;lt;/definition&amp;gt; &lt;/p&gt;  &lt;p&gt;5. Open the file struts-config.xml and look for the entry &amp;quot;tjspAboutXl&amp;quot; &lt;/p&gt;  &lt;p&gt;Here you will find the entries as &lt;/p&gt;  &lt;p&gt;&amp;#160; &amp;lt;action type=&amp;quot;com.thortech.xl.webclient.actions.tcAboutXlAction&amp;quot;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; name=&amp;quot;AboutXlForm&amp;quot;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; scope=&amp;quot;request&amp;quot;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; path=&amp;quot;/AboutXl&amp;quot; &amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;forward name=&amp;quot;success&amp;quot; path=&amp;quot;/pages/tjspAboutXl.jsp&amp;quot; /&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/action&amp;gt;    &lt;br /&gt;6. Open the com.thortech.xl.webclient.actions.tcAboutXlAction.class file and here you will find this is    &lt;br /&gt;calling some EJB code &lt;/p&gt;  &lt;p&gt;if (localActionForward != null)   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return localActionForward;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; HttpSession localHttpSession = paramHttpServletRequest.getSession();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; tcAboutXlForm localtcAboutXlForm = (tcAboutXlForm)paramActionForm;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Hashtable localHashtable = new Hashtable();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; tcHelpOperationsIntf localtcHelpOperationsIntf = getHelpOperIntf(paramHttpServletRequest.getSession(), null);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; localHashtable = (Hashtable)localtcHelpOperationsIntf.getHelpAbout();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; localtcAboutXlForm.setAboutXl(localHashtable);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; logger.debug(LoggerMessages.getMessage(&amp;quot;LeftMethodDebug&amp;quot;, &amp;quot;tcAboutXlAction/execute&amp;quot;));    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return paramActionMapping.findForward(&amp;quot;success&amp;quot;);    &lt;br /&gt;7. tcHelpOperationsIntf is the Interface and the corresponding class for this is    &lt;br /&gt;tcHelpOperationsBean.java file. &lt;/p&gt;  &lt;p&gt;This is actual EJB code it is calling &lt;/p&gt;  &lt;p&gt;public Map getHelpAbout()   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; throws tcAPIException    &lt;br /&gt;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; logger.debug(LoggerMessages.getMessage(&amp;quot;EnteredMethodDebug&amp;quot;, &amp;quot;tcHelpOperationsBean/getHelpAbout&amp;quot;));    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Hashtable localHashtable = new Hashtable();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; localHashtable.put(&amp;quot;Version&amp;quot;, &amp;quot;9.1.0.1865.28&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; localHashtable.put(&amp;quot;Build&amp;quot;, &amp;quot;1865.28&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; String str = &amp;quot;select xsd_value as build from xsd where xsd_code='XL_BUILD_NUMBER'&amp;quot;;    &lt;br /&gt;....    &lt;br /&gt;.. &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-7410823406301783029?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/7410823406301783029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=7410823406301783029' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7410823406301783029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7410823406301783029'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/03/how-to-find-out-oim-code-that-gets.html' title='How to find out the OIM code that gets executed when you click a link on the OIM WebConsole'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-7300964660515972367</id><published>2010-03-08T19:23:00.001-08:00</published><updated>2010-03-08T19:23:35.905-08:00</updated><title type='text'>How OIM find's out the Version Details</title><content type='html'>&lt;p&gt;OIM checks the version information from 3 places &lt;/p&gt;  &lt;p&gt;1. It checks from the database by issuing the following query &lt;/p&gt;  &lt;p&gt;select XSD_VALUE from XSD where XSD_CODE='XL_BUILD_NUMBER'; &lt;/p&gt;  &lt;p&gt;XSD_VALUE   &lt;br /&gt;--------------------------------------------------------------------------------    &lt;br /&gt;9.1.0.1866.25 &lt;/p&gt;  &lt;p&gt;2.&amp;#160; OIM-HOME\config\Version.prop file , this file contains the following entries &lt;/p&gt;  &lt;p&gt;#Wed Feb 17 21:14:42 PST 2010   &lt;br /&gt;build.number=9.1.0.1866.25    &lt;br /&gt;product.version=9.1.0.2 &lt;/p&gt;  &lt;p&gt;3. There is a third place where this information is hardcoded in the EJB code.&lt;/p&gt;  &lt;p&gt;When you click on the OIM WebConsole Help-&amp;gt;About this is the EJB code that gets executed. This class is present in the xlDataObjectBeans.jar file.&lt;/p&gt;  &lt;p&gt;Check the file tcHelpOperationsBean.java in the com.thortech.xl.ejb.beansimpl package. &lt;/p&gt;  &lt;p&gt;com.thortech.xl.ejb.beansimpl.tcHelpOperationsBean.class file contans the version info &lt;/p&gt;  &lt;p&gt;public Map getHelpAbout()   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; throws tcAPIException    &lt;br /&gt;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; logger.debug(LoggerMessages.getMessage(&amp;quot;EnteredMethodDebug&amp;quot;, &amp;quot;tcHelpOperationsBean/getHelpAbout&amp;quot;));    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Hashtable localHashtable = new Hashtable();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; localHashtable.put(&amp;quot;Version&amp;quot;, &amp;quot;9.1.0.1866.25&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; localHashtable.put(&amp;quot;Build&amp;quot;, &amp;quot;1866.25&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; String str = &amp;quot;select xsd_value as build from xsd where xsd_code='XL_BUILD_NUMBER'&amp;quot;;&lt;/p&gt;  &lt;p&gt;....   &lt;br /&gt;.. &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-7300964660515972367?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/7300964660515972367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=7300964660515972367' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7300964660515972367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7300964660515972367'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/03/how-oim-find-out-version-details.html' title='How OIM find&amp;#39;s out the Version Details'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-4727057697461711896</id><published>2010-03-05T03:07:00.001-08:00</published><updated>2010-03-05T03:07:32.834-08:00</updated><title type='text'>OIM is accepting connections from local host only</title><content type='html'>&lt;p&gt;1. Open the file C:\oim9102-Jboss\jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\server.xml   &lt;br /&gt;2. Change the line&amp;#160; &lt;br /&gt; &amp;lt;Connector port=&amp;quot;8080&amp;quot; address=&amp;quot;${jboss.bind.address}&amp;quot;&amp;#160; &lt;br /&gt; to&amp;#160; &lt;br /&gt; &amp;lt;Connector port=&amp;quot;8080&amp;quot; address=&amp;quot;0.0.0.0&amp;quot;&amp;#160; &lt;br /&gt;After this restart the JBoss server    &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-4727057697461711896?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/4727057697461711896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=4727057697461711896' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4727057697461711896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4727057697461711896'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/03/oim-is-accepting-connections-from-local.html' title='OIM is accepting connections from local host only'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2981344853787688715</id><published>2010-02-26T23:06:00.001-08:00</published><updated>2010-02-26T23:06:05.954-08:00</updated><title type='text'>How to TRACE JDBC Statements from a JDBC Program</title><content type='html'>&lt;p&gt;1. Copy the jar file ojdbc14_g.jar in to the classpath. In the case of JBOSS application Server copy the file in to the directory D:\OIM9101-Jboss\jboss-4.2.3.GA\server\default\lib. &lt;/p&gt;  &lt;p&gt;Please note that if there is a ojdbc14.jar you need to remove this file first.&lt;/p&gt;  &lt;p&gt;2. Add the following java arguments to your java program&lt;/p&gt;  &lt;p&gt;-Doracle.jdbc.Trace=true -Djava.util.logging.config.file=OracleLog.properties&amp;#160; &lt;/p&gt;  &lt;p&gt;If you are using JBOSS App Server then use the following &lt;/p&gt;  &lt;p&gt;set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx1024m -XX:PermSize=128m -Doracle.jdbc.Trace=true -Djava.util.logging.config.file=OracleLog.properties&amp;#160; &lt;/p&gt;  &lt;p&gt;3. The OracleLog.properties&amp;#160; file contains the following entries &lt;/p&gt;  &lt;p&gt;#### Console Handler ###### &lt;/p&gt;  &lt;p&gt;#java.util.logging.ConsoleHandler.level = ALL   &lt;br /&gt;#java.util.logging.ConsoleHandler.formatter =     &lt;br /&gt;#java.util.logging.SimpleFormatter    &lt;br /&gt;#handlers = java.util.logging.ConsoleHandler &lt;/p&gt;  &lt;p&gt;#### File&amp;#160; Handler ###### &lt;/p&gt;  &lt;p&gt;oracle.jdbc.handlers=java.util.logging.FileHandler   &lt;br /&gt;java.util.logging.FileHandler.level=ALL    &lt;br /&gt;java.util.logging.FileHandler.pattern=jdbc.log    &lt;br /&gt;java.util.logging.FileHandler.count=1    &lt;br /&gt;java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter &lt;/p&gt;  &lt;p&gt;# Uncomment and/or change the levels for more detail   &lt;br /&gt;#oracle.jdbc.level = FINEST    &lt;br /&gt;#oracle.jdbc.connector.level = FINE    &lt;br /&gt;#oracle.jdbc.driver.level = FINEST    &lt;br /&gt;#oracle.jdbc.internal.level = FINEST    &lt;br /&gt;#oracle.jdbc.oci.level = FINE    &lt;br /&gt;#oracle.jdbc.oracore.level = FINE    &lt;br /&gt;#oracle.jdbc.pool.level = FINE    &lt;br /&gt;#oracle.jdbc.rowset.level = FINEST    &lt;br /&gt;#oracle.jdbc.util.level = FINEST    &lt;br /&gt;#oracle.jdbc.xa.level = FINE    &lt;br /&gt;#oracle.jdbc.xa.client.level = FINE    &lt;br /&gt;#oracle.jpub.level = FINE    &lt;br /&gt;#oracle.net.level = FINE    &lt;br /&gt;#oracle.sql.level = FINEST    &lt;br /&gt;#.level=CONFIG    &lt;br /&gt;#oracle.level=CONFIG    &lt;br /&gt;# This is the setting needed for sql debug    &lt;br /&gt;oracle.jdbc.driver.level=CONFIG    &lt;br /&gt;#oracle.jdbc.pool.level=CONFIG    &lt;br /&gt;#oracle.jdbc.util.level=CONFIG    &lt;br /&gt;#oracle.sql.level=CONFIG &lt;/p&gt;  &lt;p&gt;#oracle.jdbc.driver.level=FINE&lt;/p&gt;  &lt;p&gt;6. Run your JDBC Program , assuming you statement is &lt;/p&gt;  &lt;p&gt;select pty_key , pty_value from pty&amp;#160; where pty_keyword = :1&lt;/p&gt;  &lt;p&gt;This is the Bind Parameter value &lt;/p&gt; &lt;strong&gt;&lt;em&gt;INFO: OraclePreparedStatement.setString(paramIndex=1, x=XL.MaxLoginAttempts)&lt;/em&gt;    &lt;br /&gt;&lt;/strong&gt;  &lt;p&gt;Feb 27, 2010 12:00:41 PM oracle.jdbc.driver.PhysicalConnection getDefaultFixedString   &lt;br /&gt;INFO: PhysicalConnection.getDefaultFixedString() returning false    &lt;br /&gt;Feb 27, 2010 12:00:41 PM oracle.jdbc.driver.OraclePreparedStatement setString    &lt;br /&gt;&lt;strong&gt;&lt;em&gt;INFO: OraclePreparedStatement.setString(paramIndex=1, x=XL.MaxLoginAttempts)&lt;/em&gt;      &lt;br /&gt;&lt;/strong&gt;Feb 27, 2010 12:00:41 PM oracle.jdbc.driver.OracleStatement doExecuteWithTimeout    &lt;br /&gt;&lt;em&gt;&lt;strong&gt;CONFIG: SQL: &amp;quot;select pty_key , pty_value from pty&amp;#160; where pty_keyword = :1&amp;quot;&lt;/strong&gt;&lt;/em&gt;    &lt;br /&gt;Feb 27, 2010 12:00:41 PM oracle.jdbc.driver.T4CPreparedStatement allocateTmpByteArray    &lt;br /&gt;SEVERE: oracle.jdbc.driver.T4CPreparedStatement.allocateTmpByteArray : Re-allocate byte array of size : 80    &lt;br /&gt;Feb 27, 2010 12:00:41 PM oracle.jdbc.driver.OracleResultSetImpl findColumn    &lt;br /&gt;INFO: OracleResultSetImpl.findColumn(columnName=pty_value)    &lt;br /&gt;Feb 27, 2010 12:00:41 PM oracle.jdbc.driver.OracleResultSetImpl getString    &lt;br /&gt;INFO: OracleResultSetImpl.getString(columnIndex=2)    &lt;br /&gt;Feb 27, 2010 12:00:41 PM oracle.jdbc.driver.OracleResultSetImpl close    &lt;br /&gt;INFO: OracleResultSetImpl.close()&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2981344853787688715?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2981344853787688715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=2981344853787688715' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2981344853787688715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2981344853787688715'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2010/02/how-to-trace-jdbc-statements-from-jdbc.html' title='How to TRACE JDBC Statements from a JDBC Program'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2741698065929325217</id><published>2009-12-04T05:42:00.001-08:00</published><updated>2009-12-04T05:42:53.580-08:00</updated><title type='text'>How do you find whether a Java file is compiled with the debugging info or not</title><content type='html'>&lt;p&gt;Open the file using the JD-GUI utility    &lt;br /&gt;&lt;a href="http://java.decompiler.free.fr/?q=jdgui"&gt;http://java.decompiler.free.fr/?q=jdgui&lt;/a&gt;    &lt;br /&gt;Click on a particular .class file , after this go to the menu option     &lt;br /&gt;Navigate -&amp;gt; Go to Line option     &lt;br /&gt;If this option is not grayed out then that particular jar file has the debug info included.    &lt;br /&gt;To find the line info you can also use the following     &lt;br /&gt;javap -l SearchJars    &lt;br /&gt;This will display LineNumberTable    &lt;br /&gt;LineNumberTable:    &lt;br /&gt;line 13: 0    &lt;br /&gt;line 14: 16    &lt;br /&gt;line 15: 27    &lt;br /&gt;If this comes up then that means the debugging info is included in to the class file.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2741698065929325217?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2741698065929325217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=2741698065929325217' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2741698065929325217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2741698065929325217'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/12/how-do-you-find-whether-java-file-is.html' title='How do you find whether a Java file is compiled with the debugging info or not'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-6337889046672006111</id><published>2009-11-11T01:51:00.001-08:00</published><updated>2009-11-11T01:51:15.550-08:00</updated><title type='text'>Windows Mobile Programming Tips</title><content type='html'>&lt;p&gt;How to start the Windows Mobile Emulators from the command line.&lt;/p&gt;  &lt;p&gt;&amp;quot;C:\Program Files\Microsoft Device Emulator\1.0\DeviceEmulator.exe&amp;quot;&amp;#160;&amp;#160; &amp;quot;C:\Program Files\Windows Mobile 6 SDK\PocketPC\Deviceemulation\0409\PPC_USA.BIN&amp;quot; /memsize 128 /s &amp;quot;d:\EmulatorState_prof.dess&amp;quot; &lt;/p&gt;  &lt;p&gt;&amp;quot;C:\Program Files\Microsoft Device Emulator\1.0\DeviceEmulator.exe&amp;quot;&amp;#160;&amp;#160; &amp;quot;C:\Program Files\Windows Mobile 6 SDK\Smartphone\Deviceemulation\0409\SP_USA_GSM_QVGA_LS_VR.bin&amp;quot; /memsize 128 /s &amp;quot;d:\EmulatorState_std.dess&amp;quot;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-6337889046672006111?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/6337889046672006111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=6337889046672006111' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6337889046672006111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6337889046672006111'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/11/windows-mobile-programming-tips.html' title='Windows Mobile Programming Tips'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-3217637557873454883</id><published>2009-11-02T20:49:00.001-08:00</published><updated>2009-11-02T20:49:00.532-08:00</updated><title type='text'>How to use the same server session with the Terminal Server's</title><content type='html'>&lt;p&gt;1. First try to run the command mstsc /v:fmwbde    &lt;br /&gt;(If you are lucky you will be connected to the same session)    &lt;br /&gt;2. If you are not able to connect to the same session then run the command mstsc /v:fmwbde /admin     &lt;br /&gt;This will connect to the admin server console.    &lt;br /&gt;3. Open the terminal service manager and select a particulr session and try to connect to this session.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-3217637557873454883?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/3217637557873454883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=3217637557873454883' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3217637557873454883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3217637557873454883'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/11/how-to-use-same-server-session-with.html' title='How to use the same server session with the Terminal Server&amp;#39;s'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-7872596796989031282</id><published>2009-10-05T23:12:00.001-07:00</published><updated>2009-10-05T23:12:09.293-07:00</updated><title type='text'>Deployment Management Links are not working On Weblogic 10. 3.1.0</title><content type='html'>&lt;h4&gt;&lt;a name="SYMPTOM"&gt;&lt;/a&gt;&lt;/h4&gt;  &lt;p&gt;When trying to access the Deployment Management Links Export and Import are not working with the Weblogic 10.3.1.0 version. This fails with the following error    &lt;br /&gt;Either Your Session timed out or you are trying to access a page without logging in.     &lt;br /&gt;How ever this works fine on WebLogic 10.3.0.0 version.&lt;/p&gt;  &lt;p&gt;There is some change in the functionality due to cross-site scripting vulnerability reasons. Please refer to the Note 866405.1 Applet/Javascript does not have access to JSESSIONID (httponly) cookie for more details on this. &lt;/p&gt;  &lt;p&gt;For the Deployment Management Links to work you need to edit the file &lt;/p&gt;  &lt;p&gt;C:\oim_server\xellerate\OIMApplications\WLXellerateFull.ear\xlWebApp.war\WEB-INF\weblogic.xml &lt;/p&gt;  &lt;p&gt;and add the following entries &lt;/p&gt;  &lt;p&gt;&amp;lt;session-descriptor&amp;gt; &lt;/p&gt;  &lt;p&gt;&amp;lt;cookie-http-only&amp;gt;false&amp;lt;/cookie-http-only&amp;gt; &lt;/p&gt;  &lt;p&gt;&amp;lt;/session-descriptor&amp;gt; &lt;/p&gt;  &lt;p&gt;After the changes the weblogic.xml should look like this , &lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;weblogic-web-app xmlns=&amp;quot;http://www.bea.com/ns/weblogic/weblogic-web-app&amp;quot; xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; xsi:schemaLocation=&amp;quot;http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd&amp;quot;&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;security-role-assignment&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;role-name&amp;gt;User&amp;lt;/role-name&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;principal-name&amp;gt;User&amp;lt;/principal-name&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;/security-role-assignment&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;jsp-descriptor&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;encoding&amp;gt;UTF-8&amp;lt;/encoding&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;/jsp-descriptor&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;container-descriptor&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;filter-dispatched-requests-enabled&amp;gt;false&amp;lt;/filter-dispatched-requests-enabled&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;/container-descriptor&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;session-descriptor&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;cookie-http-only&amp;gt;false&amp;lt;/cookie-http-only&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;/session-descriptor&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;/weblogic-web-app&amp;gt;&amp;#160; &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;Restart the weblogic server after the above changes.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-7872596796989031282?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/7872596796989031282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=7872596796989031282' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7872596796989031282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7872596796989031282'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/10/deployment-management-links-are-not.html' title='Deployment Management Links are not working On Weblogic 10. 3.1.0'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2562070867297203576</id><published>2009-09-04T00:34:00.001-07:00</published><updated>2009-09-04T00:34:05.142-07:00</updated><title type='text'>How to Install OIM On WebLogic</title><content type='html'>&lt;p&gt;1. Create the DB schemas &lt;/p&gt;  &lt;p&gt;prepare_xl_db.bat DB102 c:\db10204 xladm_910_weblogic xladm_910_weblogic USERS&amp;#160; C:\DB10204\ORADATA\DB102\ xladm_910_weblogic TEMP welcome1 &lt;/p&gt;  &lt;p&gt;DB102 DB Name   &lt;br /&gt;c:\db10204 =&amp;gt; Oracle_Home     &lt;br /&gt;xladm_910_weblogic =&amp;gt;&amp;#160; DB Username    &lt;br /&gt;xladm_910_weblogic =&amp;gt; DB Password    &lt;br /&gt;USERS =&amp;gt; TABLESpace Name (if you want to use the existing one then use say USERS , otherwise give a new name)    &lt;br /&gt;C:\DB10204\ORADATA\DB102\ =&amp;gt; Table Space Directory    &lt;br /&gt;xladm_910_weblogic =&amp;gt; dbf file name    &lt;br /&gt;TEMP =&amp;gt; temporary table space    &lt;br /&gt;welcome1 =&amp;gt; sys password &lt;/p&gt;  &lt;p&gt;2. Create a new domain with the weblogic (Just one Admin Server is more then enough for the OIM) &lt;/p&gt;  &lt;p&gt;3. Start this domain &lt;/p&gt;  &lt;p&gt;4. Install the OIM using the setup_server.exe &lt;/p&gt;  &lt;p&gt;&lt;font color="#ff0000"&gt;5. &lt;/font&gt;&lt;strong&gt;&lt;font color="#ff0000"&gt;For starting the OIM Server you need to use the script        &lt;br /&gt;C:\oim91_wl\oim_server\xellerate\bin\xlStartServer.bat        &lt;br /&gt;You can not use the usual weblogic starting script for this. &lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;6. After this install the client using setup_client.exe &lt;/p&gt;  &lt;p&gt;7. Login to the Design console using the UN/PW : xelsysadm/welcome1 &lt;/p&gt;  &lt;p&gt;8. Login to the OIM Wen Console using &lt;a href="http://rreddy.idc.oracle.com:7001/xlWebApp"&gt;http://rreddy.idc.oracle.com:7001/xlWebApp&lt;/a&gt;    &lt;br /&gt;with the UN/PW : xelsysadm/welcome1&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2562070867297203576?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2562070867297203576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=2562070867297203576' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2562070867297203576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2562070867297203576'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/09/how-to-install-oim-on-weblogic.html' title='How to Install OIM On WebLogic'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-3734991844594461801</id><published>2009-08-14T19:02:00.001-07:00</published><updated>2009-08-24T21:41:55.285-07:00</updated><title type='text'>Sorting the files on the drive (USB Drive)</title><content type='html'>&lt;p&gt;Sony music system in my car reads files in the order they are stored on the flash drive , which is very stupid in my opinion. Ideally it    &lt;br /&gt;should read the file in some alphabetical order or based on the last modified date. I found a program call DriveSort which reorganizes the files on a drive so they are in alphabetical order.&lt;/p&gt;  &lt;p&gt;Download this program from the location &lt;a href="http://www.anerty.net/software/file/DriveSort.php"&gt;http://www.anerty.net/software/file/DriveSort.php&lt;/a&gt;     &lt;br /&gt;and open the drive. After this sort the files and save the directory.&lt;/p&gt;  &lt;p&gt;Please also refer to this URL for more details on this &lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.murraymoffatt.com/software-problem-0010.html" href="http://www.murraymoffatt.com/software-problem-0010.html"&gt;http://www.murraymoffatt.com/software-problem-0010.html&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-3734991844594461801?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/3734991844594461801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=3734991844594461801' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3734991844594461801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3734991844594461801'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/08/sorting-files-on-drive-usb-drive.html' title='Sorting the files on the drive (USB Drive)'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-6233758691849868661</id><published>2009-07-27T07:25:00.001-07:00</published><updated>2009-07-27T07:25:19.013-07:00</updated><title type='text'>Vncviewer clipboard operations like copy/cut+paste suddenly stops on linux</title><content type='html'>&lt;p&gt;Many times you must have observed that clipboard operations like copy/cut and paste suddenly stops workings with the vncviewer. The main reason for this there is a program called as vncconfig responsible for these clipboard transfers. Some times the program may get closed because of some bug in vnc or some other reasons like you closed that window. &lt;/p&gt;  &lt;p&gt;To get those clipboard operations back you need to run the program &amp;quot;vncconfig &amp;amp;&amp;quot;. &lt;/p&gt;  &lt;p&gt;After this your clipboard actions should work fine with out any problems.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-6233758691849868661?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/6233758691849868661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=6233758691849868661' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6233758691849868661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6233758691849868661'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/07/vncviewer-clipboard-operations-like.html' title='Vncviewer clipboard operations like copy/cut+paste suddenly stops on linux'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2334061953159175169</id><published>2009-07-24T07:43:00.001-07:00</published><updated>2009-09-02T02:09:41.071-07:00</updated><title type='text'>Set up environment for linux to install Oracle Software</title><content type='html'>&lt;p&gt;// Change sysctl.conf file to add the kernel parmeters&lt;/p&gt;  &lt;p&gt;cat &amp;gt;&amp;gt; /etc/sysctl.conf &amp;lt;&amp;lt; EOF    &lt;br /&gt;#This sets SEMMSL, SEMMNS, SEMOPM, SEMMNI     &lt;br /&gt;kernel.sem = 256 32000 100 142     &lt;br /&gt;kernel.shmmax = 4294967295     &lt;br /&gt;kernel.shmmni = 4096     &lt;br /&gt;kernel.shmall = 2097152     &lt;br /&gt;kernel.msgmnb = 65535     &lt;br /&gt;kernel.msgmni = 2878     &lt;br /&gt;fs.file-max = 206173     &lt;br /&gt;EOF &lt;/p&gt;  &lt;p&gt;// Persist the sysctl.conf entries&lt;/p&gt;  &lt;p&gt;sysctl –p &lt;/p&gt;  &lt;p&gt;// Change the ulimit values&lt;/p&gt;  &lt;p&gt;cat &amp;gt;&amp;gt; /etc/security/limits.conf &amp;lt;&amp;lt; EOF    &lt;br /&gt;# Oracle Application Server settings     &lt;br /&gt;* soft nofile 2048     &lt;br /&gt;* hard nofile 65536     &lt;br /&gt;* soft nproc&amp;#160; 2047     &lt;br /&gt;* hard nproc&amp;#160; 16384     &lt;br /&gt;EOF &lt;/p&gt;  &lt;p&gt;cat &amp;gt;&amp;gt; /etc/pam.d/login &amp;lt;&amp;lt; EOF    &lt;br /&gt;session required /lib/security/pam_limits.so     &lt;br /&gt;EOF &lt;/p&gt;  &lt;p&gt;cat &amp;gt;&amp;gt; /etc/profile &amp;lt;&amp;lt; EOF    &lt;br /&gt;ulimit -u 16384 -n 65536     &lt;br /&gt;EOF &lt;/p&gt;  &lt;p&gt;#### Oracle requirements for 11gR2 database ########    &lt;br /&gt;kernel.sem = 256 32000 100 142     &lt;br /&gt;kernel.shmmax = 4294967295     &lt;br /&gt;kernel.shmmni = 4096     &lt;br /&gt;kernel.shmall = 2097152     &lt;br /&gt;kernel.msgmnb = 65535     &lt;br /&gt;kernel.msgmni = 2878     &lt;br /&gt;fs.file-max = 6815744     &lt;br /&gt;net.ipv4.ip_local_port_range = 9000 65500     &lt;br /&gt;net.core.rmem_default=4194304     &lt;br /&gt;net.core.rmem_max=4194304     &lt;br /&gt;net.core.wmem_default=262144     &lt;br /&gt;net.core.wmem_max=1048576     &lt;br /&gt;fs.aio-max-nr = 1048576 &lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;RPMs needed for 11gR2 Database &lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;libaio-devel-0.3.106-3.2.i386.rpm     &lt;br /&gt;sysstat-7.0.2-3.SEL5_2.i386.rpm     &lt;br /&gt;unixODBC-devel-2.2.11-7.1.i386.rpm &lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;local copy at \\disco1bdeapac\home\oracle\softwares\RPM112DB (oracle/oracle) windows browseable&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2334061953159175169?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2334061953159175169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=2334061953159175169' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2334061953159175169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2334061953159175169'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/07/set-up-environment-for-linux-to-install.html' title='Set up environment for linux to install Oracle Software'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-8502109999360522793</id><published>2009-07-18T20:34:00.001-07:00</published><updated>2009-07-18T20:34:16.759-07:00</updated><title type='text'>How to Use Jmeter to do the LDAP/OID Load Testing</title><content type='html'>&lt;p&gt;1. Download the latest Jmeter version from &lt;a href="http://jakarta.apache.org/jmeter/"&gt;http://jakarta.apache.org/jmeter/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;2. Set the JDK 1.5 or JDK 1.6 in your path and run jmeter.bat/jmeter.sh batch file&lt;/p&gt;  &lt;p&gt;3. Create a Thread Group with the following values&lt;/p&gt;  &lt;p&gt;Set the number of Threads to 50 and the Loop Count to 10. This will send 500 requests to the server.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_28es_J24NZ8/SmH3ztMXasI/AAAAAAAAAYQ/DwS8wTbJ0Ig/s1600-h/screenshot.9%5B2%5D.jpg"&gt;&lt;img title="screenshot.9" height="196" alt="screenshot.9" src="http://lh6.ggpht.com/_28es_J24NZ8/SmH30q5-3JI/AAAAAAAAAYU/Pdtc7A1h6fE/screenshot.9_thumb.jpg?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;3. Under the Thread group create a Loop Controller , (This is required as we are doing the following operations in a sequence ,&amp;#160; Bind to the LDAP Server , Perform a Search against this LDAP Server and Perform another Search and Finally do a LDAP UnBind)&lt;/p&gt;  &lt;p&gt;Right Click on the Thread Group and Add Logical Controller –&amp;gt; Loop Controller&lt;/p&gt;  &lt;p&gt;4. Under the Loop Controller Add Sampler –&amp;gt; LDAP Extended Request and select the following options (Enter your LDAP Server details here)&lt;/p&gt;  &lt;p&gt;Select the Radio Button –&amp;gt; Thread Bind , ServerName –&amp;gt; incq128ad.idc.oracle.com , Port –&amp;gt; 389 , Username –&amp;gt; cn=orcladmin and Password –&amp;gt; welcome123&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_28es_J24NZ8/SmKUBFqEJRI/AAAAAAAAAZI/f8wbbrUs3T4/s1600-h/screenshot.19%5B1%5D.jpg"&gt;&lt;img title="screenshot.19" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="288" alt="screenshot.19" src="http://lh4.ggpht.com/_28es_J24NZ8/SmKUCku70JI/AAAAAAAAAZM/K6A_ZuI4Iek/screenshot.19_thumb.jpg?imgmax=800" width="424" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;5. Under the Loop Controller Add Sampler –&amp;gt; LDAP Extended Request and select the following options (Peform a search operation against this LDAP Server)&lt;/p&gt;  &lt;p&gt;Select the Radio Button –&amp;gt; Search test , Search Base –&amp;gt; cn=TestGroup,cn=Groups,dc=idc,dc=oracle,dc=com , Search Filter –&amp;gt; (objectClass=*) , Scope –&amp;gt; Perform Subtree Search and Attributes as uniquemember&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_28es_J24NZ8/SmKUD1Sli1I/AAAAAAAAAZQ/7MWwyoYBo3M/s1600-h/screenshot.20%5B5%5D.jpg"&gt;&lt;img title="screenshot.20" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="320" alt="screenshot.20" src="http://lh4.ggpht.com/_28es_J24NZ8/SmKUFDBB4EI/AAAAAAAAAZU/H3CJrDrN6JI/screenshot.20_thumb%5B3%5D.jpg?imgmax=800" width="421" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;6. Add another LDAP Search for load testing&amp;#160; &lt;/p&gt;  &lt;p&gt;Under the Loop Controller Add Sampler –&amp;gt; LDAP Extended Request and select the following options (Peform a search operation against this LDAP Server)&lt;/p&gt;  &lt;p&gt;Select the Radio Button –&amp;gt; Search test , Search Base –&amp;gt; cn=users, dc=idc,dc=oracle,dc=com, Search Filter –&amp;gt; (&amp;amp;(objectclass=person)(uid=ravi.reddy)), Scope –&amp;gt; Perform Subtree Search and Attributes as uid&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_28es_J24NZ8/SmKUGP-IBHI/AAAAAAAAAZY/xaV29dCkmKE/s1600-h/screenshot.21%5B6%5D.jpg"&gt;&lt;img title="screenshot.21" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="318" alt="screenshot.21" src="http://lh4.ggpht.com/_28es_J24NZ8/SmKUHXJAwxI/AAAAAAAAAZc/ZNRLE_KSrIE/screenshot.21_thumb%5B4%5D.jpg?imgmax=800" width="425" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;7. Under the Loop Controller Add Sampler –&amp;gt; LDAP Extended Request and select the following options (We need to Unbind From the LDAP Server)&lt;/p&gt;  &lt;p&gt;Select the Radio Button –&amp;gt; Thread UnBind &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_28es_J24NZ8/SmKUIcykuuI/AAAAAAAAAZg/5i3LfyCmb7o/s1600-h/screenshot.22%5B5%5D.jpg"&gt;&lt;img title="screenshot.22" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="195" alt="screenshot.22" src="http://lh5.ggpht.com/_28es_J24NZ8/SmKUJZDRkXI/AAAAAAAAAZk/CbwZf8YsECM/screenshot.22_thumb%5B3%5D.jpg?imgmax=800" width="420" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;8. View the LoadTest results in Table and write the results output to file.&lt;/p&gt;  &lt;p&gt;Under the ThreadGroup add the following &lt;/p&gt;  &lt;p&gt;Listener –&amp;gt; View Results In a TABLE and enter the file name as /tmp/oidstresstest.log&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_28es_J24NZ8/SmKUKfqM04I/AAAAAAAAAZo/F2y-iLQsVBg/s1600-h/screenshot.23%5B6%5D.jpg"&gt;&lt;img title="screenshot.23" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="177" alt="screenshot.23" src="http://lh5.ggpht.com/_28es_J24NZ8/SmKULmD4TuI/AAAAAAAAAZs/Fi6r4LtZ8t0/screenshot.23_thumb%5B4%5D.jpg?imgmax=800" width="418" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;9. This is how the JMeter project looks like after doing the above steps &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_28es_J24NZ8/SmKUMRiK_6I/AAAAAAAAAZw/FxOxzsroqLw/s1600-h/screenshot.25%5B3%5D.jpg"&gt;&lt;img title="screenshot.25" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="214" alt="screenshot.25" src="http://lh3.ggpht.com/_28es_J24NZ8/SmKUNoCKWwI/AAAAAAAAAZ0/NItzatEozlM/screenshot.25_thumb%5B1%5D.jpg?imgmax=800" width="378" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;10. Now run the Jmeter project by Pressing&amp;#160; Control+R or the Menu option Control+R&lt;/p&gt;  &lt;p&gt;11. Check the LDAP Log file for the requests from the Jmeter load test&amp;#160; and also the file /tmp/oidstresstest.log.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-8502109999360522793?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/8502109999360522793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=8502109999360522793' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8502109999360522793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8502109999360522793'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/07/how-to-use-jmeter-to-do-ldapoid-load.html' title='How to Use Jmeter to do the LDAP/OID Load Testing'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_28es_J24NZ8/SmH30q5-3JI/AAAAAAAAAYU/Pdtc7A1h6fE/s72-c/screenshot.9_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2384351400635386717</id><published>2009-07-18T09:27:00.001-07:00</published><updated>2009-07-18T09:27:56.794-07:00</updated><title type='text'>How to use Jmeter to load test Portal Application</title><content type='html'>&lt;p&gt;1. Download the latest Jmeter version from &lt;a title="http://jakarta.apache.org/jmeter/" href="http://jakarta.apache.org/jmeter/"&gt;http://jakarta.apache.org/jmeter/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;2. Set the JDK 1.5 or JDK 1.6 in your path and run jmeter.bat batch file&lt;/p&gt;  &lt;p&gt;3. Create a Thread Group with the following values&lt;/p&gt;  &lt;p&gt;Set the number of Threads to 50 and the Loop Count to 10. This will send 500 requests to the server&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_28es_J24NZ8/SmH3ztMXasI/AAAAAAAAAYQ/DwS8wTbJ0Ig/s1600-h/screenshot.9%5B2%5D.jpg"&gt;&lt;img title="screenshot.9" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="196" alt="screenshot.9" src="http://lh6.ggpht.com/_28es_J24NZ8/SmH30q5-3JI/AAAAAAAAAYU/Pdtc7A1h6fE/screenshot.9_thumb.jpg?imgmax=800" width="244" border="0" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;4. Under the ThreadGroup create HTTP Cookie Manager with the following values &lt;/p&gt;  &lt;p&gt;The CookieManager is required to pass the cookie values across the different page requests. Otherwise Jmeter ignores the cookie value.&lt;/p&gt;  &lt;p&gt;In the cookie manager select the Check Bog Clear Cookies each iteration and set the Cookie Policy to Default.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_28es_J24NZ8/SmH32IeLG0I/AAAAAAAAAYY/-xpasjYYKd4/s1600-h/screenshot.10%5B5%5D.jpg"&gt;&lt;img title="screenshot.10" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="152" alt="screenshot.10" src="http://lh6.ggpht.com/_28es_J24NZ8/SmH33Ll8JOI/AAAAAAAAAYc/JKbF0VGlDjY/screenshot.10_thumb%5B3%5D.jpg?imgmax=800" width="407" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;5. Under the Thread group create a Loop Controller&lt;/p&gt;  &lt;p&gt;Right Click on the Thread Group and Add Logical Controller –&amp;gt; Loop Controller&lt;/p&gt;  &lt;p&gt;6. Under the Loop Controller Add Sampler –&amp;gt; HTTP Request HTTP Client &lt;/p&gt;  &lt;p&gt;Set the Server Name as say incq128ad.idc.oracle.com and Port as 7784 enter the Path as /portal/page?_pageid=33,1&amp;amp;_dad=portal&amp;amp;_schema=PORTAL&amp;amp;_mode=16 Select the CheckBox “Follow Redirects”&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_28es_J24NZ8/SmH34WbVpkI/AAAAAAAAAYg/dEREecIcE6s/s1600-h/screenshot.11%5B4%5D.jpg"&gt;&lt;img title="screenshot.11" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="175" alt="screenshot.11" src="http://lh4.ggpht.com/_28es_J24NZ8/SmH35-qjmhI/AAAAAAAAAYk/TlRWM3aC7EM/screenshot.11_thumb%5B2%5D.jpg?imgmax=800" width="417" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;7. Under HTTP Request HTTP Client add the HTTP Authorization Manager &lt;/p&gt;  &lt;p&gt;Add the Portal username and password in this example I used orcladmin and welcome1. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_28es_J24NZ8/SmH367yIpsI/AAAAAAAAAYo/dk03h6BQZWo/s1600-h/screenshot.12%5B4%5D.jpg"&gt;&lt;img title="screenshot.12" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="157" alt="screenshot.12" src="http://lh4.ggpht.com/_28es_J24NZ8/SmH38MWKxxI/AAAAAAAAAYs/RCPZZxW4vwA/screenshot.12_thumb%5B2%5D.jpg?imgmax=800" width="377" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;8. Add another Portal Page for testing &lt;/p&gt;  &lt;p&gt;Under the Loop Controller Add Sampler –&amp;gt; HTTP Request HTTP Client &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_28es_J24NZ8/SmH39Mp1v_I/AAAAAAAAAYw/zZe-8ejeqU8/s1600-h/screenshot.14%5B4%5D.jpg"&gt;&lt;img title="screenshot.14" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="190" alt="screenshot.14" src="http://lh3.ggpht.com/_28es_J24NZ8/SmH3-UW0CbI/AAAAAAAAAY0/CRniYl21ctQ/screenshot.14_thumb%5B2%5D.jpg?imgmax=800" width="434" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;9. Add another SSO Protected&amp;#160; Page for testing &lt;/p&gt;  &lt;p&gt;Under the Loop Controller Add Sampler –&amp;gt; HTTP Request HTTP Client &lt;/p&gt;  &lt;p&gt;Use the following values shown below&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_28es_J24NZ8/SmH3_f7dw4I/AAAAAAAAAY4/Hl1ANdSdASA/s1600-h/screenshot.13%5B10%5D.jpg"&gt;&lt;img title="screenshot.13" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="210" alt="screenshot.13" src="http://lh4.ggpht.com/_28es_J24NZ8/SmH4Agjc_OI/AAAAAAAAAY8/rx6aCp6Z9ck/screenshot.13_thumb%5B6%5D.jpg?imgmax=800" width="426" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;10. This is how the JMeter project looks like after doing the above steps &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_28es_J24NZ8/SmH4BvX_v1I/AAAAAAAAAZA/Imsvl-1jfgM/s1600-h/screenshot.15%5B4%5D.jpg"&gt;&lt;img title="screenshot.15" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="223" alt="screenshot.15" src="http://lh5.ggpht.com/_28es_J24NZ8/SmH4Cqm1jpI/AAAAAAAAAZE/awmRh7XGDtA/screenshot.15_thumb%5B2%5D.jpg?imgmax=800" width="383" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;11. Now run the Jmeter project by Pressing&amp;#160; Control+R or the Menu option Control+R&lt;/p&gt;  &lt;p&gt;12. Check the access_log file for the requests from the Jmeter load test&amp;#160; &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2384351400635386717?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2384351400635386717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=2384351400635386717' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2384351400635386717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2384351400635386717'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/07/how-to-use-jmeter-to-load-test-portal.html' title='How to use Jmeter to load test Portal Application'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_28es_J24NZ8/SmH30q5-3JI/AAAAAAAAAYU/Pdtc7A1h6fE/s72-c/screenshot.9_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-7445305238979557867</id><published>2009-06-10T22:06:00.001-07:00</published><updated>2009-06-10T22:06:09.856-07:00</updated><title type='text'>SSH Setup for RAC</title><content type='html'>&lt;p&gt;&lt;strong&gt;&lt;u&gt;On the incq128ad machine(linux#1)&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;mkdir -p ~/.ssh   &lt;br /&gt;chmod 700 ~/.ssh &lt;/p&gt;  &lt;p&gt;/usr/bin/ssh-keygen -t rsa &lt;/p&gt;  &lt;p&gt;/usr/bin/ssh-keygen -t dsa &lt;/p&gt;  &lt;p&gt;touch ~/.ssh/authorized_keys &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;On the ipbde&amp;#160; machine(linux#2)&lt;/u&gt;      &lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;mkdir -p ~/.ssh   &lt;br /&gt;chmod 700 ~/.ssh &lt;/p&gt;  &lt;p&gt;/usr/bin/ssh-keygen -t rsa &lt;/p&gt;  &lt;p&gt;/usr/bin/ssh-keygen -t dsa &lt;/p&gt;  &lt;p&gt;touch ~/.ssh/authorized_keys &lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;On the incq128ad machine(linux#1)&lt;/strong&gt;&lt;/u&gt;    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;ssh incq128ad cat ~/.ssh/id_rsa.pub &amp;gt;&amp;gt; ~/.ssh/authorized_keys   &lt;br /&gt;ssh incq128ad cat ~/.ssh/id_dsa.pub &amp;gt;&amp;gt; ~/.ssh/authorized_keys    &lt;br /&gt;ssh ipbde cat ~/.ssh/id_rsa.pub &amp;gt;&amp;gt; ~/.ssh/authorized_keys    &lt;br /&gt;ssh ipbde cat ~/.ssh/id_dsa.pub &amp;gt;&amp;gt; ~/.ssh/authorized_keys &lt;/p&gt;  &lt;p&gt;scp ~/.ssh/authorized_keys ipbde:.ssh/authorized_keys &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;On the incq128ad machine(linux#1)&lt;/u&gt;&lt;/strong&gt;    &lt;br /&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;cd $HOME   &lt;br /&gt;chmod 755 .    &lt;br /&gt;chmod 700 .ssh    &lt;br /&gt;cd $HOME/.ssh    &lt;br /&gt;chmod 600 authorized_keys &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;On the ipbde machine(linux#2)&lt;/u&gt;&lt;/strong&gt;    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;cd $HOME   &lt;br /&gt;chmod 755 .    &lt;br /&gt;chmod 700 .ssh    &lt;br /&gt;cd $HOME/.ssh    &lt;br /&gt;chmod 600 authorized_keys &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;On both the machines run the following&lt;/u&gt;&lt;/strong&gt; &lt;/p&gt;  &lt;p&gt;ssh incq128ad hostname   &lt;br /&gt;ssh ipbde hostname&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-7445305238979557867?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/7445305238979557867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=7445305238979557867' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7445305238979557867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7445305238979557867'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/06/ssh-setup-for-rac.html' title='SSH Setup for RAC'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-4651101333688350106</id><published>2009-05-13T23:57:00.001-07:00</published><updated>2009-05-13T23:57:24.252-07:00</updated><title type='text'>How to read a SSO protected page</title><content type='html'>&lt;p&gt;You can use wget to get the SSO protected page using the following command &lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;wget --debug --http-user=oc4jadmin&amp;#160;&amp;#160; --http-password=welcome1&amp;#160; -O dd.txt &lt;a href="http://incq128ad.idc.oracle.com:7777/private/dd.txt&amp;quot;"&gt;http://incq128ad.idc.oracle.com:7777/private/dd.txt&amp;quot;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You can use the following code to get the SSO protected page. Download the following jar files   &lt;br /&gt;commons-logging.jar , httpcore-4.0.jar , commons-codec-1.3.jar , httpclient-4.0-beta2.jar and    &lt;br /&gt;httpmime-4.0-beta2.jar &lt;/p&gt;  &lt;p&gt;Run the java program with the following options &lt;/p&gt;  &lt;p&gt;d:\jdev10gmin\jdk\bin\javaw.exe -client -classpath D:\jdev10gmin\jdev\mywork\Testing\HTTPClient\classes;E:\ias10134\webservices\lib\commons-logging.jar;D:\httpcomponents-core-4.0\lib\httpcore-4.0.jar;D:\commons-codec-1.3\commons-codec-1.3.jar;D:\httpcomponents-client-4.0-beta2\lib\httpclient-4.0-beta2.jar;D:\httpcomponents-client-4.0-beta2\lib\httpmime-4.0-beta2.jar httpclient.ClientAuthentication1 &lt;/p&gt;  &lt;p&gt;package httpclient; &lt;/p&gt;  &lt;p&gt;import java.io.BufferedReader;   &lt;br /&gt;import java.io.IOException;    &lt;br /&gt;import java.io.InputStream; &lt;/p&gt;  &lt;p&gt;import java.io.InputStreamReader; &lt;/p&gt;  &lt;p&gt;import java.util.List; &lt;/p&gt;  &lt;p&gt;import org.apache.http.Header;   &lt;br /&gt;import org.apache.http.HttpEntity;    &lt;br /&gt;import org.apache.http.HttpResponse;    &lt;br /&gt;import org.apache.http.auth.AuthScope;    &lt;br /&gt;import org.apache.http.auth.UsernamePasswordCredentials;    &lt;br /&gt;import org.apache.http.client.HttpClient;    &lt;br /&gt;import org.apache.http.client.methods.HttpGet;    &lt;br /&gt;import org.apache.http.cookie.Cookie;    &lt;br /&gt;import org.apache.http.impl.client.DefaultHttpClient; &lt;/p&gt;  &lt;p&gt;/**   &lt;br /&gt; * A simple example that uses HttpClient to execute an HTTP request against    &lt;br /&gt; * a target site that requires user authentication.     &lt;br /&gt; */    &lt;br /&gt;public class ClientAuthentication1 { &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; public static void main(String[] args) throws Exception {   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; DefaultHttpClient httpclient = new DefaultHttpClient();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; httpclient.getCredentialsProvider().setCredentials(    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; new AuthScope(&amp;quot;incq128ad.idc.oracle.com&amp;quot;, 7777),     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; new UsernamePasswordCredentials(&amp;quot;orcladmin&amp;quot;, &amp;quot;welcome1&amp;quot;));    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; HttpGet httpget = new HttpGet(&amp;quot;&lt;a href="http://incq128ad.idc.oracle.com:7777/private/dd.txt&amp;quot;);"&gt;http://incq128ad.idc.oracle.com:7777/private/dd.txt&amp;quot;);&lt;/a&gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(&amp;quot;executing request \n&amp;quot; + httpget.getRequestLine());    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; HttpResponse response = httpclient.execute(httpget);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; HttpEntity entity = response.getEntity();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; List&amp;lt;Cookie&amp;gt; cookies = httpclient.getCookieStore().getCookies();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (cookies.isEmpty()) {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(&amp;quot;None&amp;quot;);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } else {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; for (int i = 0; i &amp;lt; cookies.size(); i++) {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(&amp;quot;- &amp;quot; + cookies.get(i).toString());     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(&amp;quot;----------------------------------------&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(response.getStatusLine());    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; InputStream in =&amp;#160; entity.getContent();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; InputStreamReader inputstreamreader =    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; new InputStreamReader(in);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; BufferedReader bufferedreader =     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; new BufferedReader(inputstreamreader);&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(&amp;quot;--------- URL Contents -----------------&amp;quot;);&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; String line;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; while ((line = bufferedreader.readLine())     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; != null) {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(line);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; bufferedreader.close();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; inputstreamreader.close();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; in.close();&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(&amp;quot;----------------------------------------&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (entity != null) {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(&amp;quot;Response content length: &amp;quot; + entity.getContentLength());    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (entity != null) {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; entity.consumeContent();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // When HttpClient instance is no longer needed,    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // shut down the connection manager to ensure    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // immediate deallocation of all system resources    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; httpclient.getConnectionManager().shutdown();&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;}&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-4651101333688350106?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/4651101333688350106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=4651101333688350106' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4651101333688350106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/4651101333688350106'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/05/how-to-read-sso-protected-page.html' title='How to read a SSO protected page'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-895142187453608685</id><published>2009-04-13T23:28:00.001-07:00</published><updated>2009-04-13T23:28:32.022-07:00</updated><title type='text'>How to move the domains across the machines in WebLogic</title><content type='html'>&lt;p&gt;I have a domain with the name test_domain on my Windows machine , here I have one managed server with some applications deployed. &lt;/p&gt;  &lt;p&gt;I would like to move this domain from this machine to the other machine.&lt;/p&gt;  &lt;p&gt;On Windows machine use the command pack.cmd to create the domain template &lt;/p&gt;  &lt;p&gt;pack.cmd -domain=E:\bea\user_projects\domains\test_domain&amp;#160; -template=C:\bea\user_templates\test_domain.jar -template_name=&amp;quot;My WebLogic Test Domain&amp;quot; &lt;/p&gt;  &lt;p&gt;Now move the test_domain.jar&amp;#160; to the linux machine.&lt;/p&gt;  &lt;p&gt;On the linux machine run the unpack.sh command to create the domain &lt;/p&gt;  &lt;p&gt;unpack.sh -template=/home/ias/test_domain.jar -domain=/home/ias/bea/user_projects/domains/test_domain &lt;/p&gt;  &lt;p&gt;After this go to the directory and run the command ,   &lt;br /&gt;cd /home/ias/bea/user_projects/domains/test_domain/bin    &lt;br /&gt;startWebLogic.sh    &lt;br /&gt;startManagedWebLogic.sh test&amp;#160; http://localhost:7001&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-895142187453608685?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/895142187453608685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=895142187453608685' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/895142187453608685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/895142187453608685'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/04/how-to-move-domains-across-machines-in.html' title='How to move the domains across the machines in WebLogic'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-7952178819688689324</id><published>2009-04-13T22:47:00.001-07:00</published><updated>2009-04-13T22:47:38.134-07:00</updated><title type='text'>How to print the folder list that are available on a USB Drive</title><content type='html'>&lt;p&gt;I am using the Sony MP3 player that can play from a USB drive, I have a difficulty in printing the folder list that are sorted on a last modifed date. This is how I generated the list&lt;/p&gt;  &lt;p&gt;1. Use the program filelist , &lt;/p&gt;  &lt;p&gt;Download this from &lt;a title="http://www.jam-software.com/filelist/filelist_readme_en.txt" href="http://www.jam-software.com/filelist/filelist_readme_en.txt"&gt;http://www.jam-software.com/filelist/filelist_readme_en.txt&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;2. filelist g:\ &amp;gt; dd.txt&lt;/p&gt;  &lt;p&gt;3. type dd.txt | cut --delimiter=, --fields=2 &amp;gt; dd1.txt&lt;/p&gt;  &lt;p&gt;4. After this generate the line numbers&lt;/p&gt;  &lt;p&gt;type dd1.txt | uniq | nl &amp;gt; dd2.txt&lt;/p&gt;  &lt;p&gt;3. Remove the characters like g:\ and “ etc&lt;/p&gt;  &lt;p&gt;5. Now open the file in Excel or Word and Print the file&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-7952178819688689324?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/7952178819688689324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=7952178819688689324' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7952178819688689324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/7952178819688689324'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/04/how-to-print-folder-list-that-are.html' title='How to print the folder list that are available on a USB Drive'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-1737098134062333383</id><published>2009-04-06T05:44:00.001-07:00</published><updated>2009-04-06T05:44:04.587-07:00</updated><title type='text'>Beautify the XML Data</title><content type='html'>&lt;p&gt;Use the following tool to beautify the XML.&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.thedeveloperday.com/tools/beautyXML/" href="http://www.thedeveloperday.com/tools/beautyXML/"&gt;http://www.thedeveloperday.com/tools/beautyXML/&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-1737098134062333383?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/1737098134062333383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=1737098134062333383' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1737098134062333383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1737098134062333383'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/04/beautify-xml-data.html' title='Beautify the XML Data'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-8675887128636932245</id><published>2009-03-25T04:51:00.001-07:00</published><updated>2009-05-29T03:05:41.582-07:00</updated><title type='text'>My OWSM Notes</title><content type='html'>&lt;p&gt;1. The login username password is : admin/oracle    &lt;br /&gt;The URL is &lt;a href="http://localhost:7779/ccore/"&gt;http://localhost:7779/ccore/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;UN/PW : admin/oracle&lt;/p&gt;  &lt;p&gt;2. The log file's you can find under the directory    &lt;br /&gt;E:\soa\j2ee\oc4j_soa\log     &lt;br /&gt;The important log file is &amp;quot;ccore.log&amp;quot; &lt;/p&gt;  &lt;p&gt;3. For the OWSM Log levels check the note    &lt;br /&gt;Note 726219.1&amp;#160;&amp;#160; How To Change Log Level for Oracle Web Services Manager (OWSM) ? &lt;/p&gt;  &lt;p&gt;4. How to install OWSM on Windows/Unix &lt;/p&gt;  &lt;p&gt;First run the irca.bat or irca.sh on the existing database    &lt;br /&gt;E:\10.1.3.1.0\install\soa_schemas\irca &lt;/p&gt;  &lt;p&gt;For the upgrade you need to run upgrade_10131_10134_oracle.sql in the orabpel schema    &lt;br /&gt;and run the script&amp;#160; upgrade_10133_10134_oracle.sql in oraesb schema. &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-8675887128636932245?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/8675887128636932245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=8675887128636932245' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8675887128636932245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8675887128636932245'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/03/my-owsm-notes.html' title='My OWSM Notes'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-103520638257719489</id><published>2009-03-19T01:33:00.001-07:00</published><updated>2009-03-19T01:41:12.991-07:00</updated><title type='text'>Printing Problems from IE7</title><content type='html'>&lt;p&gt;I was having the small font problem printing from in IE7    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Please see KB article &lt;a href="http://support.microsoft.com/kb/932538/en-us"&gt;http://support.microsoft.com/kb/932538/en-us&lt;/a&gt;     &lt;br /&gt;Scroll down to the section &amp;quot;More Information&amp;quot; edit registry as specified. But you manually have to add the key. It worked for me without installing any hotfix.     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Or;    &lt;br /&gt;Copy paste and save the following text to a .reg file and run it.     &lt;br /&gt;---     &lt;br /&gt;Windows Registry Editor Version 5.00     &lt;br /&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_STF_Scale_Min]     &lt;br /&gt;&amp;quot;iexplore.exe&amp;quot;=dword:00000064     &lt;br /&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_STF_Scale_Min]     &lt;br /&gt;&amp;quot;outlook.exe&amp;quot;=dword:00000064     &lt;br /&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_STF_Scale_Min]     &lt;br /&gt;&amp;quot;WinMail.exe&amp;quot;=dword:00000064     &lt;br /&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_STF_Scale_Min]     &lt;br /&gt;&amp;quot;Msimn.exe&amp;quot;=dword:00000064&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-103520638257719489?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/103520638257719489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=103520638257719489' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/103520638257719489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/103520638257719489'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/03/printing-problems-from-ie7.html' title='Printing Problems from IE7'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2889756340946549738</id><published>2009-03-11T20:57:00.001-07:00</published><updated>2009-03-11T20:57:32.468-07:00</updated><title type='text'>How to Configure network card (Nvidia Palit MB ) on Linux</title><content type='html'>&lt;p&gt;1. Download version 1.25 of Linux nForce Drivers (&lt;a href="http://www.nvidia.com/object/linux_nforce_archive.html"&gt;http://www.nvidia.com/object/linux_nforce_archive.html&lt;/a&gt;) from archive (I don't know why they have version 1.23 in Unix drivers page)     &lt;br /&gt;2. Unzip and install RPM for RHEL5_U1     &lt;br /&gt;3. Copy and replace forcedeth.ko from /lib/modules/2.6.18-53.el5/kernel/drivers/net to /lib/modules/2.6.18-92.1.18.el5/kernel/drivers/net/ (make a backup just in case)     &lt;br /&gt;4. Add the following lines to /etc/modprobe.conf (replace eth0 for whatever is yours)     &lt;br /&gt;alias eth0 forcedeth     &lt;br /&gt;options forcedeth msi=0 msix=0 dma_64bit=0     &lt;br /&gt;5. Remove module if loaded     &lt;br /&gt;rmmod forcedeth     &lt;br /&gt;6. Install module     &lt;br /&gt;insmod /lib/modules/2.6.18-92.1.18.el5/kernel/drivers/net/forcedeth.ko msi=0 msix=0 dma_64bit=0     &lt;br /&gt;(you may reboot as well but this is faster for testing)     &lt;br /&gt;you should get something like this by dmesg     &lt;br /&gt;eth0: forcedeth.c: subsystem: 01019:2145 bound to 0000:00:0f.0     &lt;br /&gt;7. Configure ifcfg-eth0 (or whatever)     &lt;br /&gt;TYPE=Ethernet     &lt;br /&gt;DEVICE=eth0     &lt;br /&gt;BOOTPROTO=dhcp     &lt;br /&gt;HWADDR=00:XX:XX:XX:XX:XX     &lt;br /&gt;If you don't know your MAC then forget about that line and do ifconfig eth0 up&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2889756340946549738?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2889756340946549738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=2889756340946549738' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2889756340946549738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2889756340946549738'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/03/how-to-configure-network-card-nvidia.html' title='How to Configure network card (Nvidia Palit MB ) on Linux'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-8313518899466623946</id><published>2009-02-19T22:06:00.001-08:00</published><updated>2009-02-19T22:06:50.736-08:00</updated><title type='text'>How to Find out whether you are using 64 bit JDK or 32 bit JDK</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Write this sample java program &lt;/p&gt;  &lt;p&gt;import java.util.Enumeration;    &lt;br /&gt;import java.util.Properties;&lt;/p&gt;  &lt;p&gt;public class Class1 {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public Class1() {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; public static void main(String[] args) {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Class1 class1 = new Class1();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Properties p = System.getProperties();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Enumeration keys = p.keys();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; while (keys.hasMoreElements()) {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; String key = (String)keys.nextElement();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; String value = (String)p.get(key);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(key + &amp;quot;: &amp;quot; + value);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;Run the program &lt;/p&gt;  &lt;p&gt;and check for the propert sun.arch.data.model if this shows 32 then you are running in a 32 bit JVM. If this shows 64 bit then you are in 64 bit JVM.&lt;/p&gt;  &lt;p&gt;For the 64 bit you run the java using the following option&amp;#160; $ORACLE_HOME/jdk/bin/java –d64 &lt;/p&gt;  &lt;p&gt;This shows sun.arch.data.model: 64&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-8313518899466623946?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/8313518899466623946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=8313518899466623946' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8313518899466623946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8313518899466623946'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/02/how-to-find-out-whether-you-are-using.html' title='How to Find out whether you are using 64 bit JDK or 32 bit JDK'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2844155290653070409</id><published>2009-02-19T20:25:00.001-08:00</published><updated>2009-02-19T20:25:39.451-08:00</updated><title type='text'>Resolving ClassNotFound Exceptions</title><content type='html'>&lt;p&gt;When you are running a Java program or compiling a java program you got a class not found error, going through all the JAR files for finding this particular class file is quite tedious. &lt;/p&gt;  &lt;p&gt;The program given below can help you to search inside the jar and/or zip files and tells you whether the file you are looking for is present or not. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3"&gt;Code Example&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Below you will find the code example, how you use it and what result you can expect out of it. &lt;/p&gt;  &lt;h5&gt;SearchJars.java&lt;/h5&gt;  &lt;pre&gt;  package mypackage7;&lt;br /&gt;&lt;br /&gt;  import java.util.zip.*;&lt;br /&gt;  import java.io.*;&lt;br /&gt;  import java.util.*;&lt;br /&gt;&lt;br /&gt;  public class SearchJars {&lt;br /&gt;&lt;br /&gt;    static String s3;&lt;br /&gt;    static String s4 =&amp;quot;&amp;quot;;&lt;br /&gt;    static int i1 = 0;&lt;br /&gt;    static int i2 = 0;&lt;br /&gt;&lt;br /&gt;    public static void main(String args[]) {&lt;br /&gt;      if (args.length != 2) throw new IllegalArgumentException(&amp;quot;Wrong Number of Args !! java SearchJars Direcory_Name filename &amp;quot;);&lt;br /&gt;        File f1 = new File(args[0]);&lt;br /&gt;      s3 = args[1];&lt;br /&gt;      traverse(f1);&lt;br /&gt;      System.out.println(&amp;quot;\n\n============== Results ============================&amp;quot;);&lt;br /&gt;      System.out.println(&amp;quot;Searced  &amp;quot;+ i1  +&amp;quot; Files  in &amp;quot;+ args[0] +&amp;quot; And Found &amp;quot;+i2 +&amp;quot; Entries. &amp;quot;); &lt;br /&gt;      System.out.println(s4);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    public static void traverse(File f) {&lt;br /&gt;      String s1 = f.getAbsolutePath();&lt;br /&gt;&lt;br /&gt;      if (s1.toUpperCase().indexOf(&amp;quot;.JAR&amp;quot;) != -1 || s1.toUpperCase().indexOf(&amp;quot;.ZIP&amp;quot;) != -1 ) {&lt;br /&gt;        System.out.println(&amp;quot;Searching &amp;quot;+ s1 +&amp;quot;  .....&amp;quot;); &lt;br /&gt;        i1++;&lt;br /&gt;        try {&lt;br /&gt;          ZipFile zf = new ZipFile(s1);&lt;br /&gt;          for (Enumeration entries = zf.entries(); entries.hasMoreElements();) {&lt;br /&gt;            String s2 = ((ZipEntry)entries.nextElement()).getName();&lt;br /&gt;            if (s2.indexOf(s3) != -1 ) {&lt;br /&gt;              System.out.println(&amp;quot;Found  &amp;quot;+s2 + &amp;quot; In &amp;quot; +s1);&lt;br /&gt;              i2++;&lt;br /&gt;              s4 = s4 + &amp;quot;Found  &amp;quot;+s2 + &amp;quot; In &amp;quot; +s1 + &amp;quot;\n&amp;quot;;&lt;br /&gt;            }&lt;br /&gt;          }&lt;br /&gt;        } catch (IOException e) {}&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      if (f.isDirectory()) {&lt;br /&gt;        String[] children = f.list();&lt;br /&gt;        for (int i=0; i&amp;lt;children.length; i++) {&lt;br /&gt;          traverse(new File(f, children[i]));&lt;br /&gt;        }&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt;  }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h5&gt;Program Usage&lt;/h5&gt;&lt;br /&gt;java.exe mypackage7.SearchJars D:\oracle\jdev1012\BC4J\jlib DateConvertor &lt;br /&gt;&lt;br /&gt;&lt;h5&gt;Program Output&lt;/h5&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;  Searching D:\oracle\jdev1012\BC4J\jlib\adfjclient.jar  ..... &lt;br /&gt;  Found  oracle/jbo/uicli/jui/DateConvertor.class In D:\oracle\jdev1012\BC4J\jlib\adfjclient.jar &lt;br /&gt;  Searching D:\oracle\jdev1012\BC4J\jlib\adfmejb.jar  ..... &lt;br /&gt;  Searching D:\oracle\jdev1012\BC4J\jlib\adftags.jar  ..... &lt;br /&gt;  Searching D:\oracle\jdev1012\BC4J\jlib\bc4jdatum.jar  ..... &lt;br /&gt;&lt;br /&gt;  ============== Results ============================ &lt;br /&gt;  Searced  4 Files  in D:\oracle\jdev1012\BC4J\jlib And Found 1 Entries.  &lt;br /&gt;  Found  oracle/jbo/uicli/jui/DateConvertor.class In D:\oracle\jdev1012\BC4J\jlib\adfjclient.jar&lt;/pre&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2844155290653070409?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2844155290653070409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=2844155290653070409' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2844155290653070409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2844155290653070409'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/02/resolving-classnotfound-exceptions.html' title='Resolving ClassNotFound Exceptions'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-2726523894873661008</id><published>2009-02-18T20:32:00.001-08:00</published><updated>2009-07-27T20:31:51.999-07:00</updated><title type='text'>Best Freeware Software</title><content type='html'>&lt;p&gt;For the Folder Sizes &lt;a title="http://www.jam-software.com/freeware/index.shtml" href="http://www.jam-software.com/freeware/index.shtml"&gt;http://www.jam-software.com/freeware/index.shtml&lt;/a&gt; (TreeSize Free)&lt;/p&gt;  &lt;p&gt;For the English Dictionary WORDWEB FREE* VERSION &lt;a title="http://wordweb.info/free/" href="http://wordweb.info/free/"&gt;http://wordweb.info/free/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Take a backup of the original DVD’s DVD Shrink &lt;a title="http://www.dvdshrink.org/" href="http://www.dvdshrink.org/"&gt;http://www.dvdshrink.org/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Best Java Decompiler JD-Gui &lt;a href="http://java.decompiler.free.fr/"&gt;http://java.decompiler.free.fr/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Ftp Utility FileZilla&amp;#160; &lt;a title="http://filezilla-project.org/" href="http://filezilla-project.org/"&gt;http://filezilla-project.org/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Free RAR/Unzip utility &lt;a title="http://www.tugzip.com/" href="http://www.tugzip.com/"&gt;http://www.tugzip.com/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;File Editor NotePad Plus&amp;#160; &lt;a title="http://notepad-plus.sourceforge.net/uk/site.htm" href="http://notepad-plus.sourceforge.net/uk/site.htm"&gt;http://notepad-plus.sourceforge.net/uk/site.htm&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Free Download Manager &lt;a title="http://www.freedownloadmanager.org/" href="http://www.freedownloadmanager.org/"&gt;http://www.freedownloadmanager.org/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Ipod Backup Utlity &lt;/p&gt; h&lt;a title="	http://www.getsharepod.com" href="http://www.getsharepod.com"&gt;ttp://www.getsharepod.com    &lt;br /&gt;&lt;/a&gt;  &lt;p&gt;CPU Information &lt;a title="CPU-Z" href="http://www.cpuid.com/cpuz.php"&gt;CPU-Z&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-2726523894873661008?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/2726523894873661008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=2726523894873661008' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2726523894873661008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/2726523894873661008'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/02/best-freeware-software.html' title='Best Freeware Software'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-5831295881814176004</id><published>2009-02-13T00:58:00.001-08:00</published><updated>2009-02-13T01:02:08.613-08:00</updated><title type='text'>How to Send/Browse Messages to AQ  via OC4J in a Standalone Java program</title><content type='html'>&lt;p&gt;Set up your queues and AQ resource adapter etc using the following article.&lt;/p&gt;  &lt;p&gt;&lt;a title="http://rreddy.blogspot.com/2009/02/how-to-use-simple-mdb-with-oracle.html" href="http://rreddy.blogspot.com/2009/02/how-to-use-simple-mdb-with-oracle.html"&gt;http://rreddy.blogspot.com/2009/02/how-to-use-simple-mdb-with-oracle.html&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The only difference with the Servlet and the standalone code with the connection factories and the queues JNDI lookup’s.&lt;/p&gt;  &lt;p&gt;&amp;lt;resource-ref-mapping location=&amp;quot;TEST_AQ/QueueCF&amp;quot; name=&amp;quot;CommonConnectionFactory&amp;quot;&amp;gt; &lt;/p&gt;  &lt;p&gt;For the standalone java program we use the ConnectionFactory as java:comp/resource/TEST_AQ/QueueConnectionFactories/QueueCF&lt;/p&gt;  &lt;p&gt;This can be found from the file oc4j-ra.xml file&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;For the queue we use the JNDI location for the Queue as&lt;/p&gt;  &lt;p&gt;&amp;lt;message-destination-ref-mapping name=&amp;quot;TestQueue&amp;quot; location=&amp;quot;TEST_AQ/MyQueue/Queues/MYQUEUE&amp;quot; /&amp;gt;&lt;/p&gt;  &lt;p&gt;But for the standalone java client we use the&amp;#160; java:comp/resource/TEST_AQ/Queues/MYQUEUE&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;strong&gt;Example to Send a Message to JMS&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;package mdbaq;   &lt;br /&gt;import java.io.*; &lt;/p&gt;  &lt;p&gt;import java.net.URL; &lt;/p&gt;  &lt;p&gt;import java.util.Date; &lt;/p&gt;  &lt;p&gt;import java.util.Hashtable; &lt;/p&gt;  &lt;p&gt;import javax.servlet.*;    &lt;br /&gt;import javax.servlet.http.*;     &lt;br /&gt;import javax.jms.* ;     &lt;br /&gt;import javax.jms.Queue;     &lt;br /&gt;import javax.naming.*; &lt;/p&gt;  &lt;p&gt;public class SendJMS {   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public SendJMS() {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; public static void main(String[] args) {   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SendJMS sendJMS = new SendJMS();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Queue queue=null;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; QueueSession queueSession=null;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; QueueSender queueSender=null;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Context jndiContext = null;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; QueueConnectionFactory queueConnectionFactory = null;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; QueueConnection queueConnection = null; &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; try { &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Hashtable env = new Hashtable();   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //&amp;#160; Standalone OC4J connection details    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; env.put(Context.INITIAL_CONTEXT_FACTORY, &amp;quot;oracle.j2ee.rmi.RMIInitialContextFactory&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; env.put(Context.SECURITY_PRINCIPAL, &amp;quot;oc4jadmin&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; env.put(Context.SECURITY_CREDENTIALS, &amp;quot;welcome1&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; env.put(Context.PROVIDER_URL, &amp;quot;ormi://localhost:23791&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; jndiContext = new InitialContext(env);&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } catch (NamingException e)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; { System.out.println(&amp;quot;Exception occurred: &amp;quot; + e.toString()); } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; try {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //&amp;#160;&amp;#160; queueConnectionFactory = (QueueConnectionFactory) jndiContext.lookup(&amp;quot;jms/qcf&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; queueConnectionFactory = (QueueConnectionFactory) jndiContext.lookup(&amp;quot;java:comp/resource/TEST_AQ/QueueConnectionFactories/QueueCF&amp;quot;);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; queue = (Queue)jndiContext.lookup(&amp;quot;jms/demoQueue&amp;quot;);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; queue = (Queue)jndiContext.lookup(&amp;quot;java:comp/resource/TEST_AQ/Queues/MYQUEUE&amp;quot;);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; queueConnection = queueConnectionFactory.createQueueConnection();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; queueSession= queueConnection.createQueueSession(true,Session.AUTO_ACKNOWLEDGE);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; queueSender = queueSession.createSender(queue);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; queueConnection.start();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } catch (Exception e) {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(&amp;quot;Exception occurred: &amp;quot; + e.toString());    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; e.printStackTrace();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; try { &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; TextMessage message = queueSession.createTextMessage();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; message.setText(&amp;quot;Test &amp;quot;+new Date());     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; queueSender.send(message);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; queueSession.commit();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } catch (JMSException e) {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(&amp;quot;Exception occurred: &amp;quot; +e.toString());    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; e.printStackTrace();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println( &amp;quot; Message Sent .....&amp;quot;); &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; }&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Example For Browsing the message&lt;/strong&gt; &lt;/p&gt;  &lt;p&gt;package mdbaq; &lt;/p&gt;  &lt;p&gt;import java.util.Enumeration; &lt;/p&gt;  &lt;p&gt;import java.util.Hashtable; &lt;/p&gt;  &lt;p&gt;import javax.naming.InitialContext;   &lt;br /&gt;import javax.jms.Queue;    &lt;br /&gt;import javax.jms.Session;    &lt;br /&gt;import javax.jms.Message;    &lt;br /&gt;import javax.jms.QueueSession;    &lt;br /&gt;import javax.jms.QueueBrowser;    &lt;br /&gt;import javax.jms.QueueConnection;    &lt;br /&gt;import javax.jms.QueueConnectionFactory; &lt;/p&gt;  &lt;p&gt;import javax.jms.TextMessage; &lt;/p&gt;  &lt;p&gt;import javax.naming.Context; &lt;/p&gt;  &lt;p&gt;public class Browser   &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public static void main(String[] args) throws Exception    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // get the initial context    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Hashtable env = new Hashtable();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //&amp;#160; Standalone OC4J connection details    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; env.put(Context.INITIAL_CONTEXT_FACTORY, &amp;quot;oracle.j2ee.rmi.RMIInitialContextFactory&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; env.put(Context.SECURITY_PRINCIPAL, &amp;quot;oc4jadmin&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; env.put(Context.SECURITY_CREDENTIALS, &amp;quot;welcome1&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; env.put(Context.PROVIDER_URL, &amp;quot;ormi://localhost:23791&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; InitialContext ctx = new InitialContext(env);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // lookup the queue object    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // Queue queue = (Queue) ctx.lookup(&amp;quot;jms/demoQueue&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Queue queue = (Queue) ctx.lookup(&amp;quot;java:comp/resource/TEST_AQ/Queues/MYQUEUE&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // lookup the queue connection factory    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; QueueConnectionFactory connFactory =     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //(QueueConnectionFactory) ctx.lookup(&amp;quot;jms/qcf&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //&amp;#160; (QueueConnectionFactory) ctx.lookup(&amp;quot;java:comp/resource/TEST_AQ/QueueConnectionFactories/QueueCF&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (QueueConnectionFactory) ctx.lookup(&amp;quot;java:comp/resource/TEST_AQ/QueueConnectionFactories/QueueCF&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // create a queue connection    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; QueueConnection queueConn = connFactory.createQueueConnection();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // create a queue session    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; QueueSession queueSession = queueConn.createQueueSession(false,    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Session.AUTO_ACKNOWLEDGE);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // create a queue browser    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; QueueBrowser queueBrowser = queueSession.createBrowser(queue);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // start the connection    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; queueConn.start();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // browse the messages    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Enumeration e = queueBrowser.getEnumeration();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; int numMsgs = 0;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // count number of messages    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; while (e.hasMoreElements()) {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Message message = (Message) e.nextElement();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; TextMessage msg = (TextMessage) message;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(msg.getText());    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; numMsgs++;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(queue + &amp;quot; has &amp;quot; + numMsgs + &amp;quot; messages&amp;quot;);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // close the queue connection    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; queueConn.close();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Run the Java program using the following option&lt;/strong&gt; &lt;/p&gt;  &lt;p&gt;&lt;i&gt;java -classpath &lt;/i&gt;&lt;i&gt; D:\MDB-AQ\classes;D:\temp2\jms.jar;D:\temp2\jta.jar;D:\temp2\pcl.jar;D:\temp2\&lt;/i&gt;&lt;i&gt;aqapi13.jar;D:\temp2\ojdbc14.jar;D:\temp2\connector.jar;D:\temp2\jazncore.jar;&lt;/i&gt;&lt;i&gt; D:\temp2\dms.jar;D:\temp2\bcel.jar;D:\temp2\mail.jar;D:\temp2\oc4j-internal.ja&lt;/i&gt;&lt;i&gt;r;D:\temp2\oc4jclient.jar;D:\temp2\adminclient.jar&amp;#160;&amp;#160; mdbaq.Browser&lt;/i&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-5831295881814176004?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/5831295881814176004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=5831295881814176004' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5831295881814176004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5831295881814176004'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/02/how-to-sendbrowse-messages-to-aq-via.html' title='How to Send/Browse Messages to AQ  via OC4J in a Standalone Java program'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-3014726383307769595</id><published>2009-02-13T00:48:00.001-08:00</published><updated>2009-02-13T00:48:44.092-08:00</updated><title type='text'>How to view AQ Queues via OC4J with the hermes tool</title><content type='html'>&lt;p&gt;For the OC4J memory based JMS queues you can use the link below.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://mike-lehmann.blogspot.com/2006/09/i-was-working-with-oracleas-jms-over.html"&gt;Hermes Configuration for OC4J memory based JMS&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This article explains how&amp;#160; to view AQ based queues with hermes.&lt;/p&gt;  &lt;p&gt;Set up your queues and AQ resource adapter etc using the following article.&lt;/p&gt;  &lt;p&gt;&lt;a title="http://rreddy.blogspot.com/2009/02/how-to-use-simple-mdb-with-oracle.html" href="http://rreddy.blogspot.com/2009/02/how-to-use-simple-mdb-with-oracle.html"&gt;http://rreddy.blogspot.com/2009/02/how-to-use-simple-mdb-with-oracle.html&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;From an OC4J install copy all these files to a temp directory &lt;/p&gt;  &lt;p&gt;adminclient.jar   &lt;br /&gt;aqapi13.jar    &lt;br /&gt;bcel.jar    &lt;br /&gt;connector.jar    &lt;br /&gt;dms.jar    &lt;br /&gt;javax77.jar    &lt;br /&gt;jazncore.jar    &lt;br /&gt;jms.jar    &lt;br /&gt;jndi.jar    &lt;br /&gt;jta.jar    &lt;br /&gt;oc4j-internal.jar    &lt;br /&gt;oc4jclient.jar    &lt;br /&gt;ojdbc14.jar    &lt;br /&gt;optic.jar    &lt;br /&gt;pcl.jar&lt;/p&gt;  &lt;p&gt;From the Hermes Tool create a classpath using the following ,&lt;/p&gt;  &lt;p&gt;&amp;lt;classpathGroup id=&amp;quot;ORACLE-SOA&amp;quot;&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;library jar=&amp;quot;D:\TEMP\aqapi13.jar&amp;quot; noFactories=&amp;quot;true&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;library jar=&amp;quot;D:\TEMP\jms.jar&amp;quot; noFactories=&amp;quot;true&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;library jar=&amp;quot;D:\TEMP\optic.jar&amp;quot; noFactories=&amp;quot;true&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;library jar=&amp;quot;D:\TEMP\jta.jar&amp;quot; noFactories=&amp;quot;true&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;library jar=&amp;quot;D:\TEMP\oc4jclient.jar&amp;quot; noFactories=&amp;quot;true&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;library jar=&amp;quot;D:\TEMP\ojdbc14.jar&amp;quot; noFactories=&amp;quot;true&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;library jar=&amp;quot;D:\TEMP\bcel.jar&amp;quot; noFactories=&amp;quot;true&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;library jar=&amp;quot;D:\TEMP\connector.jar&amp;quot; noFactories=&amp;quot;true&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;library jar=&amp;quot;D:\TEMP\adminclient.jar&amp;quot; noFactories=&amp;quot;true&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;library jar=&amp;quot;D:\TEMP\oc4j-internal.jar&amp;quot; noFactories=&amp;quot;true&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;library jar=&amp;quot;D:\TEMP\dms.jar&amp;quot; noFactories=&amp;quot;true&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;library jar=&amp;quot;D:\TEMP\jazncore.jar&amp;quot; noFactories=&amp;quot;true&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;library jar=&amp;quot;D:\TEMP\pcl.jar&amp;quot; noFactories=&amp;quot;true&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;/classpathGroup&amp;gt;&lt;/p&gt;  &lt;p&gt;Create a session using the following entries &lt;/p&gt;  &lt;p&gt;&amp;lt;factory classpathId=&amp;quot;ORACLE-SOA&amp;quot;&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;provider className=&amp;quot;hermes.JNDIQueueConnectionFactory&amp;quot;&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;properties&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;property name=&amp;quot;binding&amp;quot; value=&amp;quot;java:comp/resource/TEST_AQ/QueueConnectionFactories/QueueCF&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;property name=&amp;quot;initialContextFactory&amp;quot; value=&amp;quot;oracle.j2ee.rmi.RMIInitialContextFactory&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;property name=&amp;quot;providerURL&amp;quot; value=&amp;quot;ormi://localhost:23791&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;property name=&amp;quot;securityCredentials&amp;quot; value=&amp;quot;welcome1&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;property name=&amp;quot;securityPrincipal&amp;quot; value=&amp;quot;oc4jadmin&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/properties&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/provider&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;connection clientID=&amp;quot;&amp;quot; connectionPerThread=&amp;quot;false&amp;quot;&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;session audit=&amp;quot;false&amp;quot; id=&amp;quot;OEMS&amp;quot; reconnects=&amp;quot;0&amp;quot; transacted=&amp;quot;true&amp;quot; useConsumerForQueueBrowse=&amp;quot;false&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/connection&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;destination domain=&amp;quot;1&amp;quot; name=&amp;quot;java:comp/resource/TEST_AQ/Queues/MYQUEUE&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;extension className=&amp;quot;hermes.ext.DefaultHermesAdminFactory&amp;quot;&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;properties/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/extension&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/factory&amp;gt;&lt;/p&gt;  &lt;p&gt;The important entries are &lt;/p&gt;  &lt;p&gt;binding ==&amp;gt;&amp;gt; java:comp/resource/TEST_AQ/QueueConnectionFactories/QueueCF&lt;/p&gt;  &lt;p&gt;This can be found from the file oc4j-ra.xml file \&lt;/p&gt;  &lt;p&gt;&amp;lt;connector-factory location=&amp;quot;TEST_AQ/QueueCF&amp;quot; connector-name=&amp;quot;TEST_AQ&amp;quot;&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;config-property name=&amp;quot;jndiLocation&amp;quot; value=&amp;quot;QueueConnectionFactories/QCF&amp;quot;/&amp;gt;&lt;/p&gt;  &lt;p&gt;For the MDB we use the ConnectionFactory as TEST_AQ/QueueCF but for the hemes tool we need to use this as QueueConnectionFactories/QCF.&lt;/p&gt;  &lt;p&gt;destination domain==&amp;gt; java:comp/resource/TEST_AQ/Queues/MYQUEUE&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; For the MDB we use this as TEST_AQ/MyQueue/Queues/MYQUEUE but for the hermes tool we need use TEST_AQ/Queues/MYQUEUE.&lt;/p&gt;  &lt;p&gt;After this send a message to the AQ using the script&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;DECLARE    &lt;br /&gt;enqueue_options dbms_aq.enqueue_options_t;     &lt;br /&gt;message_properties dbms_aq.message_properties_t;     &lt;br /&gt;message_handle RAW(16);     &lt;br /&gt;Message SYS.AQ$_JMS_TEXT_MESSAGE;     &lt;br /&gt;BEGIN     &lt;br /&gt;Message := Sys.Aq$_Jms_Text_Message.Construct;     &lt;br /&gt;Message.Set_Text(to_char(sysdate, 'DD/MM/YYYY HH24:MI:SS'));     &lt;br /&gt;dbms_aq.enqueue(queue_name =&amp;gt; 'MYQUEUE',     &lt;br /&gt;enqueue_options =&amp;gt; enqueue_options,     &lt;br /&gt;message_properties =&amp;gt; message_properties,     &lt;br /&gt;payload =&amp;gt; message,     &lt;br /&gt;msgid =&amp;gt; message_handle);     &lt;br /&gt;COMMIT;     &lt;br /&gt;END;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-3014726383307769595?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/3014726383307769595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=3014726383307769595' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3014726383307769595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/3014726383307769595'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/02/how-to-view-aq-queues-via-oc4j-with.html' title='How to view AQ Queues via OC4J with the hermes tool'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-8181936880426425886</id><published>2009-02-04T23:31:00.001-08:00</published><updated>2009-02-04T23:31:28.506-08:00</updated><title type='text'>How to Get  the HTTP request and responses with OC4J/OAS</title><content type='html'>&lt;p&gt;&lt;strong&gt;For the Stand alone oc4j use the following&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;java&amp;#160;&amp;#160; -Doracle.oc4j.trace.finest=com.evermind.server.http&amp;#160; -Dhttp.request.debug=true -jar oc4j.jar&lt;/p&gt;  &lt;p&gt;09/02/05 12:58:22 FINE: EvermindHttpServletRequest.init GET /j2ee/test.jsp HTTP/1.1   &lt;br /&gt;Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, applicat    &lt;br /&gt;ion/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/xaml+xml, applicati    &lt;br /&gt;on/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/x-silverligh    &lt;br /&gt;t, */*    &lt;br /&gt;Accept-Language: en-us    &lt;br /&gt;UA-CPU: x86    &lt;br /&gt;Accept-Encoding: gzip, deflate    &lt;br /&gt;User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Wi    &lt;br /&gt;ndows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; FDM; .NET CLR 3.0    &lt;br /&gt;.04506.648; .NET CLR 3.5.21022)    &lt;br /&gt;Host: indl224ad.idc.oracle.com:8888    &lt;br /&gt;Connection: Keep-Alive    &lt;br /&gt;Cookie: JSESSIONID=2009-02-05 12:58:22.734 NOTIFICATION&amp;#160; J2EE JSP-0008 Unable to dispatch JSP Page : Exception:java.io.    &lt;br /&gt;FileNotFoundException: C:\oc4j10134\j2ee\home\default-web-app\j2ee\test.jsp (The system cannot find    &lt;br /&gt;the path specified)    &lt;br /&gt;09/02/05 12:58:22 FINEST: EvermindHttpServletResponse.commit *********** RESPONSE ************    &lt;br /&gt;09/02/05 12:58:22 FINEST: EvermindHttpServletResponse.commit HTTP/1.1 404 Not Found    &lt;br /&gt;Date: Thu, 05 Feb 2009 07:28:22 GMT    &lt;br /&gt;Server: Oracle Containers for J2EE    &lt;br /&gt;Connection: Keep-Alive    &lt;br /&gt;Keep-Alive: timeout=15, max=100    &lt;br /&gt;Content-Type: text/html; charset=UTF-8    &lt;br /&gt;Transfer-Encoding: chunked &lt;/p&gt;  &lt;p&gt;09/02/05 12:58:22 FINEST: EvermindHttpServletResponse.commit *********** RESPONSE DONE ************&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;For the OAS add the following in the opmn.xml file&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;-Doracle.oc4j.trace.finest=com.evermind.server.http -Dajp.debug=true -Dhttp.request.debug=true&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;How to use mod_security module with HTTP Server to check the request and response headers&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;You can also use mod_security module to check the requests and responses. &lt;/p&gt;  &lt;p&gt; Add the following at the end of the httpd.conf &lt;/p&gt;  &lt;p&gt;On linux &lt;/p&gt;  &lt;p&gt;LoadModule security_module libexec/mod_security.so &lt;/p&gt;  &lt;p&gt;On Windows &lt;/p&gt;  &lt;p&gt;LoadModule security_module modules/ApacheModuleSecurity.dll    &lt;br /&gt;AddModule mod_security.c &lt;/p&gt;  &lt;p&gt;&amp;lt;IfModule mod_security.c&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; # Turn the filtering engine On or Off    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SecFilterEngine On&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; # Make sure that URL encoding is valid    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SecFilterCheckURLEncoding On&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; # Unicode encoding check    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SecFilterCheckUnicodeEncoding Off&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; # Only allow bytes from this range    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SecFilterForceByteRange 0 255&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; # Only log suspicious requests    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SecAuditEngine On&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; # The name of the audit log file    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SecAuditLog logs/audit_log    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; # Debug level set to a minimum    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SecFilterDebugLog logs/modsec_debug_log    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SecFilterDebugLevel 0    &lt;br /&gt; &amp;lt;/IfModule&amp;gt; &lt;/p&gt;  &lt;p&gt; and restart the HTTP Server. &lt;/p&gt;  &lt;p&gt; Now check the audit_log file in $ORACLE_HOME/Apache/Apache/log directory. &lt;/p&gt;  &lt;p&gt;========================================   &lt;br /&gt; UNIQUE_ID: Qw2LjJhFqD0AABvSLj8    &lt;br /&gt; Request: 152.69.168.191 - - [25/Aug/2005:14:42:57 +0530] &amp;quot;GET     &lt;br /&gt; /test_opencursor/Controller?recordID=2&amp;amp;counter=1 HTTP/1.1&amp;quot; 200 5    &lt;br /&gt; Handler: oc4j-handler    &lt;br /&gt; ----------------------------------------    &lt;br /&gt; GET /test_opencursor/Controller?recordID=2&amp;amp;counter=1 HTTP/1.1    &lt;br /&gt; Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,     &lt;br /&gt; application/x-shockwave-flash, application/vnd.ms-excel,     &lt;br /&gt; application/vnd.ms-powerpoint, application/msword, */*    &lt;br /&gt; Accept-Encoding: gzip, deflate    &lt;br /&gt; Accept-Language: en-us    &lt;br /&gt; Connection: keep-alive    &lt;br /&gt; Host: localhost    &lt;br /&gt; User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR&amp;#160; 1.1.4322)    &lt;br /&gt;Oracle-ECID: 1124961164:152.69.168.61:7122:0:1,0    &lt;br /&gt;HTTP/1.1 200 OK    &lt;br /&gt;Set-Cookie:     &lt;br /&gt;JSESSIONID=9845a83dce5dad8a271451048cb9a5fc0cb23f83960.e3uMb3eObheLe34SchaNaNu    &lt;br /&gt; Na41ynknvrkLOlQzNp65In0; Path=/test_opencursor    &lt;br /&gt;Cache-Control: private    &lt;br /&gt; Keep-Alive: timeout=15, max=100    &lt;br /&gt; Connection: Keep-Alive    &lt;br /&gt; Transfer-Encoding: chunked    &lt;br /&gt; Content-Type: application/octet-stream    &lt;br /&gt; ======================================== &lt;/p&gt;  &lt;p&gt;This gives the request and response. &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-8181936880426425886?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/8181936880426425886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=8181936880426425886' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8181936880426425886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8181936880426425886'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/02/how-to-get-http-request-and-responses.html' title='How to Get  the HTTP request and responses with OC4J/OAS'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-5838190460749991652</id><published>2009-02-03T02:34:00.001-08:00</published><updated>2009-02-03T02:34:29.564-08:00</updated><title type='text'>How to use a Simple MDB with Oracle Database provider in 10. 1.3</title><content type='html'>&lt;p&gt;1. Create the following entries in the data-sources.xml file &lt;/p&gt;  &lt;p&gt;&amp;lt;managed-data-source connection-pool-name=&amp;quot;AQ Connection Pool&amp;quot;    &lt;br /&gt;jndi-name=&amp;quot;jdbc/aq&amp;quot;     &lt;br /&gt;name=&amp;quot;AQ Connection Pool&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;lt;connection-pool name=&amp;quot;AQ Connection Pool&amp;quot;&amp;gt;     &lt;br /&gt;&amp;lt;connection-factory     &lt;br /&gt;factory-class=&amp;quot;oracle.jdbc.pool.OracleDataSource&amp;quot;     &lt;br /&gt;user=&amp;quot;jmsuser&amp;quot; password=&amp;quot;jmsuser&amp;quot;     &lt;br /&gt;url=&amp;quot;jdbc:oracle:thin:@incq128ad:1521:ias1012&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;lt;/connection-pool&amp;gt;&lt;/p&gt;  &lt;p&gt;2. Login to sql*plus and create the AQ objects&lt;code&gt;&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;CONNECT system/manager;    &lt;br /&gt;DROP USER jmsuser CASCADE ;     &lt;br /&gt;GRANT CONNECT, RESOURCE,AQ_ADMINISTRATOR_ROLE TO jmsuser IDENTIFIED BY jmsuser ;     &lt;br /&gt;CONNECT jmsuser/jmsuser;     &lt;br /&gt;BEGIN     &lt;br /&gt;dbms_aqadm.create_queue_table ( queue_table=&amp;gt; 'TEST', queue_payload_type=&amp;gt; 'SYS.AQ$_JMS_TEXT_MESSAGE', sort_list=&amp;gt; '', comment=&amp;gt; '', multiple_consumers=&amp;gt; FALSE, message_grouping=&amp;gt; DBMS_AQADM.NONE, non_repudiation =&amp;gt; DBMS_AQADM.NONE, storage_clause=&amp;gt; '', compatible=&amp;gt; '8.1', primary_instance=&amp;gt; '0', secondary_instance=&amp;gt; '0');     &lt;br /&gt;COMMIT;     &lt;br /&gt;END;     &lt;br /&gt;BEGIN     &lt;br /&gt;dbms_aqadm.create_queue(queue_name=&amp;gt; 'MYQUEUE', queue_table=&amp;gt; 'TEST', queue_type=&amp;gt; DBMS_AQADM.NORMAL_QUEUE, max_retries=&amp;gt; '5', retry_delay=&amp;gt; '0', retention_time=&amp;gt; '0', comment=&amp;gt; '');     &lt;br /&gt;COMMIT;     &lt;br /&gt;END;     &lt;br /&gt;BEGIN     &lt;br /&gt;dbms_aqadm.start_queue('JMSUSER.MYQUEUE', TRUE, TRUE);     &lt;br /&gt;COMMIT;     &lt;br /&gt;END;&lt;/p&gt;  &lt;p&gt;3. Test whether the enqueing and dequing is working fine or not    &lt;br /&gt;Open a sqlplus window and login as jmsuser and run the following sql. &lt;/p&gt;  &lt;p&gt;enque.sql    &lt;br /&gt;---------     &lt;br /&gt;DECLARE     &lt;br /&gt;enqueue_options dbms_aq.enqueue_options_t;     &lt;br /&gt;message_properties dbms_aq.message_properties_t;     &lt;br /&gt;message_handle RAW(16);     &lt;br /&gt;Message SYS.AQ$_JMS_TEXT_MESSAGE;     &lt;br /&gt;BEGIN     &lt;br /&gt;Message := Sys.Aq$_Jms_Text_Message.Construct;     &lt;br /&gt;Message.Set_Text(to_char(sysdate, 'DD/MM/YYYY HH24:MI:SS'));     &lt;br /&gt;dbms_aq.enqueue(queue_name =&amp;gt; 'MYQUEUE',     &lt;br /&gt;enqueue_options =&amp;gt; enqueue_options,     &lt;br /&gt;message_properties =&amp;gt; message_properties,     &lt;br /&gt;payload =&amp;gt; message,     &lt;br /&gt;msgid =&amp;gt; message_handle);     &lt;br /&gt;COMMIT;     &lt;br /&gt;END; &lt;/p&gt;  &lt;p&gt;Open another sqlplus window and login as jmsuser and run the following sql. &lt;/p&gt;  &lt;p&gt;deque.sql    &lt;br /&gt;---------     &lt;br /&gt;set serveroutput on;     &lt;br /&gt;declare     &lt;br /&gt;deqopt dbms_aq.dequeue_options_t;     &lt;br /&gt;mprop dbms_aq.message_properties_t;     &lt;br /&gt;msgid RAW(16);     &lt;br /&gt;payload SYS.AQ$_JMS_TEXT_MESSAGE;     &lt;br /&gt;begin     &lt;br /&gt;deqopt.navigation := DBMS_AQ.FIRST_MESSAGE;     &lt;br /&gt;--deqopt.wait := 1;     &lt;br /&gt;dbms_aq.dequeue(     &lt;br /&gt;queue_name =&amp;gt; 'MYQUEUE',     &lt;br /&gt;dequeue_options =&amp;gt; deqopt,     &lt;br /&gt;message_properties =&amp;gt; mprop,     &lt;br /&gt;payload =&amp;gt; payload,     &lt;br /&gt;msgid =&amp;gt; msgid );     &lt;br /&gt;commit;     &lt;br /&gt;dbms_output.put_line('The Message Sent to the Queue is: ' || payload.TEXT_VC);     &lt;br /&gt;end; &lt;/p&gt;  &lt;p&gt;Now you should see the message in the sql*plus window as    &lt;br /&gt;The Message Sent to the Queue is: 13/03/2008 17:48:34     &lt;br /&gt;4. Start the oc4j container and access the EM Application Server Control     &lt;br /&gt;Go to the Administration TAB     &lt;br /&gt;Click on the Database Persistence link.&lt;/p&gt;  &lt;p&gt;5. In this screen click on the deploy Button    &lt;br /&gt;Give the &amp;quot;Resource Adapter Module Name&amp;quot; as : TEST_AQ     &lt;br /&gt;And select the Radio Button     &lt;br /&gt;&amp;quot;Add a new resource provider to be used by this connector&amp;quot; Give the &amp;quot;Resource Provider Name&amp;quot; as TEST_AQ and     &lt;br /&gt;select the &amp;quot;Datasource JNDI Location&amp;quot; as jdbc/aq. &lt;/p&gt;  &lt;p&gt;This will add the following values to the application.xml file &lt;/p&gt;  &lt;p&gt;&amp;lt;resource-provider name=&amp;quot;TEST_AQ&amp;quot; class=&amp;quot;oracle.jms.OjmsContext&amp;quot;&amp;gt;    &lt;br /&gt;&amp;lt;description&amp;gt;&amp;lt;/description&amp;gt;     &lt;br /&gt;&amp;lt;property name=&amp;quot;datasource&amp;quot; value=&amp;quot;jdbc/aq&amp;quot; /&amp;gt;     &lt;br /&gt;&amp;lt;/resource-provider&amp;gt;&lt;/p&gt;  &lt;p&gt;Restart the oc4j container after this. &lt;/p&gt;  &lt;p&gt;6. Now click on this Resource Adapter    &lt;br /&gt;and select the TAB     &lt;br /&gt;Connection Factory and select the QueueConnectionFactory     &lt;br /&gt;TEST_AQ/QueueCF     &lt;br /&gt;7. Now Click On &amp;quot;Administrated Objects&amp;quot; TAB and enter the following value &lt;/p&gt;  &lt;p&gt;Choose the ObjectClass as oracle.j2ee.ra.jms.generic.AdminObjectQueueImpl    &lt;br /&gt;Give the JNDI Location as TEST_AQ/MyQueue and resourceProviderName as     &lt;br /&gt;TEST_AQ. &lt;/p&gt;  &lt;h4&gt;&lt;a name="SWREQS"&gt;&lt;/a&gt;Software Requirements/Prerequisites&lt;/h4&gt; 8. From the JDeveloper Create a Message driven and change the OnMessage Method   &lt;p&gt;&lt;code&gt;package mdbaq;      &lt;br /&gt;import javax.ejb.EJBException;       &lt;br /&gt;import javax.ejb.MessageDrivenBean;       &lt;br /&gt;import javax.ejb.MessageDrivenContext;       &lt;br /&gt;import javax.jms.JMSException;       &lt;br /&gt;import javax.jms.Message;       &lt;br /&gt;import javax.jms.MessageListener;       &lt;br /&gt;import javax.jms.TextMessage;       &lt;br /&gt;public class MessageDrivenEJBBean implements MessageDrivenBean,&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MessageListener {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; private MessageDrivenContext _context;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public void ejbCreate() {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public void setMessageDrivenContext(MessageDrivenContext context) throws EJBException {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; _context = context;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public void ejbRemove() throws EJBException {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public void onMessage(Message message)       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(&amp;quot;Received message: &amp;quot; + message);       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; TextMessage msg = null;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; try {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (message instanceof TextMessage) {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; msg = (TextMessage) message;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(&amp;quot;MESSAGE BEAN: Message received: &amp;quot;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; + msg.getText());       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } else {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(&amp;quot;Message of wrong type: &amp;quot;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; + message.getClass().getName());       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } catch (JMSException e) {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; e.printStackTrace();       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } catch (Throwable te) {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; te.printStackTrace();       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }       &lt;br /&gt;}&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;9. Open the ejb-jar.xml and have the following entries&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;?xml version = '1.0' encoding = 'windows-1252'?&amp;gt;      &lt;br /&gt;&amp;lt;ejb-jar xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; xsi:schemaLocation=&amp;quot;http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd&amp;quot; version=&amp;quot;2.1&amp;quot; xmlns=&amp;quot;http://java.sun.com/xml/ns/j2ee&amp;quot;&amp;gt;       &lt;br /&gt;&amp;#160; &amp;lt;enterprise-beans&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;message-driven&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;description&amp;gt;Message Driven Bean&amp;lt;/description&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;display-name&amp;gt;MessageDrivenEJB&amp;lt;/display-name&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;ejb-name&amp;gt;MessageDrivenEJB&amp;lt;/ejb-name&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;ejb-class&amp;gt;mdbaq.MessageDrivenEJBBean&amp;lt;/ejb-class&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;messaging-type&amp;gt;javax.jms.MessageListener&amp;lt;/messaging-type&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;transaction-type&amp;gt;Container&amp;lt;/transaction-type&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;message-destination-type&amp;gt;       &lt;br /&gt;javax.jms.Queue       &lt;br /&gt;&amp;lt;/message-destination-type&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/message-driven&amp;gt;       &lt;br /&gt;&amp;#160; &amp;lt;/enterprise-beans&amp;gt;       &lt;br /&gt;&amp;#160; &amp;lt;assembly-descriptor/&amp;gt;       &lt;br /&gt;&amp;lt;/ejb-jar&amp;gt;&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;Open the orion-ejb-jar.xml file&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;?xml version = '1.0' encoding = 'windows-1252'?&amp;gt;      &lt;br /&gt;&amp;lt;orion-ejb-jar xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; xsi:noNamespaceSchemaLocation=&amp;quot;http://xmlns.oracle.com/oracleas/schema/orion-ejb-jar-10_0.xsd&amp;quot; schema-major-version=&amp;quot;10&amp;quot; schema-minor-version=&amp;quot;0&amp;quot;&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;enterprise-beans&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;message-driven-deployment name=&amp;quot;MessageDrivenEJB&amp;quot;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; connection-factory-location=&amp;quot;TEST_AQ/QueueCF&amp;quot;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; destination-location=&amp;quot;TEST_AQ/MyQueue/Queues/MYQUEUE&amp;quot;/&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/enterprise-beans&amp;gt;       &lt;br /&gt;&amp;lt;/orion-ejb-jar&amp;gt;&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;11. Create a simple Servlet to send the message to the Queue&lt;/p&gt;  &lt;p&gt;package mdbaq;    &lt;br /&gt;import java.io.*;     &lt;br /&gt;import javax.servlet.*;     &lt;br /&gt;import javax.servlet.http.*;     &lt;br /&gt;import javax.jms.* ;     &lt;br /&gt;import javax.jms.Queue;     &lt;br /&gt;import javax.naming.*;     &lt;br /&gt;import java.util.* ;     &lt;br /&gt;public class HelloWorld extends HttpServlet {     &lt;br /&gt;Queue queue;     &lt;br /&gt;QueueSession queueSession;     &lt;br /&gt;QueueSender queueSender;     &lt;br /&gt;Context jndiContext = null;     &lt;br /&gt;QueueConnectionFactory queueConnectionFactory = null;     &lt;br /&gt;QueueConnection queueConnection = null;     &lt;br /&gt;public void doGet(HttpServletRequest req, HttpServletResponse res)     &lt;br /&gt;throws ServletException, IOException {     &lt;br /&gt;res.setContentType(&amp;quot;text/html&amp;quot;);     &lt;br /&gt;PrintWriter out = res.getWriter();     &lt;br /&gt;out.println(&amp;quot;&amp;lt;HTML&amp;gt;&amp;quot;);     &lt;br /&gt;out.println(&amp;quot;&amp;lt;HEAD&amp;gt;&amp;lt;TITLE&amp;gt;Hello MDB &amp;lt;/TITLE&amp;gt;&amp;lt;/HEAD&amp;gt;&amp;quot;);     &lt;br /&gt;out.println(&amp;quot;&amp;lt;BODY&amp;gt;&amp;quot;);     &lt;br /&gt;try {     &lt;br /&gt;TextMessage message = queueSession.createTextMessage();     &lt;br /&gt;message.setText(req.getParameter(&amp;quot;subject&amp;quot;));     &lt;br /&gt;queueSender.send(message);     &lt;br /&gt;queueSession.commit();     &lt;br /&gt;} catch (JMSException e) { System.out.println(&amp;quot;Exception occurred: &amp;quot; +e.toString());}     &lt;br /&gt;out.println(&amp;quot;&amp;lt;H3&amp;gt; &amp;quot; + req.getParameter(&amp;quot;subject&amp;quot;) +&amp;quot; Message Sent .....&amp;lt;/H3&amp;gt;&amp;quot;);     &lt;br /&gt;out.println(&amp;quot;&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;&amp;quot;);     &lt;br /&gt;}     &lt;br /&gt;public void init(ServletConfig config) throws ServletException     &lt;br /&gt;{     &lt;br /&gt;super.init(config);     &lt;br /&gt;try {     &lt;br /&gt;jndiContext = new InitialContext();     &lt;br /&gt;queueConnectionFactory = (QueueConnectionFactory) jndiContext.lookup(&amp;quot;CommonConnectionFactory&amp;quot;);     &lt;br /&gt;queue = (Queue)jndiContext.lookup(&amp;quot;TestQueue&amp;quot;);     &lt;br /&gt;} catch (NamingException e)     &lt;br /&gt;{ System.out.println(&amp;quot;Exception occurred: &amp;quot; + e.toString()); }     &lt;br /&gt;try {     &lt;br /&gt;queueConnection = queueConnectionFactory.createQueueConnection(&amp;quot;jmsuser&amp;quot;,&amp;quot;jmsuser&amp;quot;);     &lt;br /&gt;queueSession= queueConnection.createQueueSession(true,Session.AUTO_ACKNOWLEDGE);     &lt;br /&gt;queueSender = queueSession.createSender(queue);     &lt;br /&gt;queueConnection.start();     &lt;br /&gt;} catch (JMSException e) {System.out.println(&amp;quot;Exception occurred: &amp;quot; + e.toString());}     &lt;br /&gt;}     &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;12. The web.xml    &lt;br /&gt;Add the following entries to the web.xml file &lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;resource-ref&amp;gt;      &lt;br /&gt;&amp;lt;res-ref-name&amp;gt;CommonConnectionFactory&amp;lt;/res-ref-name&amp;gt;       &lt;br /&gt;&amp;lt;res-type&amp;gt;javax.jms.QueueConnectionFactory&amp;lt;/res-type&amp;gt;       &lt;br /&gt;&amp;lt;res-auth&amp;gt;Container&amp;lt;/res-auth&amp;gt;       &lt;br /&gt;&amp;lt;res-sharing-scope&amp;gt;Shareable&amp;lt;/res-sharing-scope&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/resource-ref&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;message-destination-ref&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;description&amp;gt;&amp;lt;/description&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;message-destination-ref-name&amp;gt;TestQueue&amp;lt;/message-destination-ref-name&amp;gt;       &lt;br /&gt;&amp;lt;message-destination-type&amp;gt;javax.jms.Queue&amp;lt;/message-destination-type&amp;gt;       &lt;br /&gt;&amp;lt;message-destination-usage&amp;gt;Produces&amp;lt;/message-destination-usage&amp;gt;       &lt;br /&gt;&amp;lt;message-destination-link&amp;gt;TestQueue&amp;lt;/message-destination-link&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/message-destination-ref&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;welcome-file-list&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;welcome-file&amp;gt;index.html&amp;lt;/welcome-file&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/welcome-file-list&amp;gt;&amp;#160; &lt;br /&gt;&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;      &lt;br /&gt;&amp;lt;orion-web-app       &lt;br /&gt;xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; xsi:noNamespaceSchemaLocation=&amp;quot;http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd&amp;quot;&amp;#160; deployment-version=&amp;quot;10.1.3.3.0&amp;quot;       &lt;br /&gt;deployment-time=&amp;quot;1205407531953&amp;quot;       &lt;br /&gt;jsp-cache-directory=&amp;quot;./persistence&amp;quot;       &lt;br /&gt;jsp-cache-tlds=&amp;quot;standard&amp;quot;       &lt;br /&gt;temporary-directory=&amp;quot;./temp&amp;quot;       &lt;br /&gt;servlet-webdir=&amp;quot;/servlet/&amp;quot;       &lt;br /&gt;context-root=&amp;quot;/aq&amp;quot;       &lt;br /&gt; schema-major-version=&amp;quot;10&amp;quot; schema-minor-version=&amp;quot;0&amp;quot; &amp;gt;       &lt;br /&gt;&amp;lt;resource-ref-mapping location=&amp;quot;TEST_AQ/QueueCF&amp;quot; name=&amp;quot;CommonConnectionFactory&amp;quot;&amp;gt;       &lt;br /&gt; &amp;lt;/resource-ref-mapping&amp;gt;       &lt;br /&gt;&amp;lt;message-destination-ref-mapping name=&amp;quot;TestQueue&amp;quot; location=&amp;quot;TEST_AQ/MyQueue/Queues/MYQUEUE&amp;quot; /&amp;gt;       &lt;br /&gt;&amp;lt;web-app&amp;gt;       &lt;br /&gt;&amp;lt;/web-app&amp;gt;       &lt;br /&gt;&amp;lt;/orion-web-app&amp;gt;&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;14. Create a simple index.html to invoke the Servlet that sends the message to the AQ. &lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;lt;html&amp;gt;      &lt;br /&gt;&amp;lt;head&amp;gt;       &lt;br /&gt;&amp;lt;/head&amp;gt;       &lt;br /&gt;&amp;lt;body&amp;gt;       &lt;br /&gt;&amp;lt;form action=&amp;quot;helloworld&amp;quot;&amp;gt;       &lt;br /&gt;&amp;lt;b&amp;gt;Subject: &amp;lt;/b&amp;gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;subject&amp;quot;&amp;gt;&amp;lt;br&amp;gt;       &lt;br /&gt;&amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Log&amp;quot;&amp;gt;       &lt;br /&gt;&amp;lt;/form&amp;gt;       &lt;br /&gt;&amp;lt;/body&amp;gt;       &lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/p&gt;  &lt;h4&gt;&lt;a name="CONFIG"&gt;&lt;/a&gt;Configuring the Sample Code&lt;/h4&gt;  &lt;p&gt;use Jdeveloper to open the project&lt;/p&gt;  &lt;h4&gt;&lt;a name="RUNSTEPS"&gt;&lt;/a&gt;Running the Sample Code&lt;/h4&gt;  &lt;p&gt;Run the URL &lt;a href="http://indl224ad.idc.oracle.com:8888/aq/helloworld?subject=test123"&gt;http://indl224ad.idc.oracle.com:8888/aq/helloworld?subject=test123&lt;/a&gt;&lt;/p&gt;  &lt;h4&gt;&lt;a name="ADDINFO"&gt;&lt;/a&gt;&lt;a name="OUTPUT"&gt;&lt;/a&gt;Sample Code Output&lt;/h4&gt;  &lt;p&gt;08/03/13 18:50:44 Received message: oracle.j2ee.ra.jms.generic.TextMessageWrapper@bb5e2d    &lt;br /&gt;08/03/13 18:50:44 MESSAGE BEAN: Message received: test123&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-5838190460749991652?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/5838190460749991652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=5838190460749991652' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5838190460749991652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5838190460749991652'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/02/how-to-use-simple-mdb-with-oracle.html' title='How to use a Simple MDB with Oracle Database provider in 10. 1.3'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-1565828124274785133</id><published>2009-02-01T06:48:00.001-08:00</published><updated>2009-02-01T06:48:07.098-08:00</updated><title type='text'>Ravi Reddy Test Blog</title><content type='html'>&lt;table cellspacing="0" cellpadding="2" width="400" border="1"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="200"&gt;Ravi&lt;/td&gt;        &lt;td valign="top" width="200"&gt;Reddy&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="200"&gt;Test&lt;/td&gt;        &lt;td valign="top" width="200"&gt;123&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-1565828124274785133?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/1565828124274785133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=1565828124274785133' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1565828124274785133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1565828124274785133'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/02/ravi-reddy-test-blog.html' title='Ravi Reddy Test Blog'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-5381687731909862899</id><published>2009-01-20T20:59:00.000-08:00</published><updated>2009-02-12T22:11:56.359-08:00</updated><title type='text'>Unix/Windows Scripts to Run a Task for "n" number of times</title><content type='html'>&lt;p&gt;&lt;strong&gt;Windows Script     &lt;br /&gt;test.bat&lt;/strong&gt;    &lt;br /&gt;FOR /L %%G IN (1,1,20) DO (    &lt;br /&gt;echo Ruuning ---&amp;gt; %%G Time    &lt;br /&gt;java -jar admin_client.jar deployer:oc4j:opmn://cehpcb5.us.oracle.com:37005/IAM01 oc4jadmin manager1 -undeploy IAM    &lt;br /&gt;java -jar admin_client.jar deployer:oc4j:opmn://cehpcb5.us.oracle.com:37005/IAM01 oc4jadmin manager1 -deploy -file D:\bugs-download\Bug7252754\iam.ear -deploymentName IAM -bindAllWebApps    &lt;br /&gt;)    &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;Unix Script&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;     &lt;br /&gt;&lt;/strong&gt;    &lt;br /&gt;#!/bin/ksh    &lt;br /&gt;num=6    &lt;br /&gt;while [ $num -lt 20 ]    &lt;br /&gt;echo =========== Running for $num on `date` =============    &lt;br /&gt;do    &lt;br /&gt;opmnctl shutdown    &lt;br /&gt;opmnctl startall    &lt;br /&gt;opmnctl status    &lt;br /&gt;/refresh/jwc1013/product/jwc1013/jdk/bin/java -jar $ORACLE_HOME/j2ee/home/admin_client.jar deployer:oc4j:opmn://cehpcb5.us.oracle.com:35005/IAM oc4jadmin manager1 -undeploy IAM    &lt;br /&gt;/refresh/jwc1013/product/jwc1013/jdk/bin/java -jar $ORACLE_HOME/j2ee/home/admin_client.jar deployer:oc4j:opmn://cehpcb5.us.oracle.com:35005/IAM oc4jadmin manager1 -deploy -file $ORACLE_HOME/j2ee/home/iam2.ear -deploymentName IAM -bindAllWebApps    &lt;br /&gt;let num+=1    &lt;br /&gt;done&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Script which runs a task 100 times and after every 5 iterations it will restart the oc4j conatiner.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;#!/bin/ksh   &lt;br /&gt;num=0    &lt;br /&gt;while [ $num -lt 100 ]    &lt;br /&gt;do    &lt;br /&gt;echo =========== Running for $num on&amp;#160; `date` =============    &lt;br /&gt;i1=$(expr $num % 5)    &lt;br /&gt;if [ $i1 -lt 1 ] ;    &lt;br /&gt;then    &lt;br /&gt;echo ======== Starting and Stopping OAS ===========    &lt;br /&gt;/home/ias/ias10131/opmn/bin/opmnctl shutdown    &lt;br /&gt;/home/ias/ias10131/opmn/bin/opmnctl startall    &lt;br /&gt;fi    &lt;br /&gt;/home/ias/ias10131/jdk/bin/java -jar $ORACLE_HOME/j2ee/home/admin_client.jar deployer:oc4j:opmn://ipbde.idc.oracle.com:6005/IAM oc4jadmin welcome1&amp;#160; -undeploy IAM    &lt;br /&gt;/home/ias/ias10131/jdk/bin/java -jar $ORACLE_HOME/j2ee/home/admin_client.jar deployer:oc4j:opmn://ipbde.idc.oracle.com:6005/IAM oc4jadmin welcome1&amp;#160; -deploy -file&amp;#160; /home/ias/ias10131/iam.ear -deploymentName IAM -bindAllWebApps    &lt;br /&gt;let num+=1    &lt;br /&gt;done&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-5381687731909862899?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/5381687731909862899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=5381687731909862899' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5381687731909862899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/5381687731909862899'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/01/unixwindows-scripts-to-run-task-for-n.html' title='Unix/Windows Scripts to Run a Task for &amp;quot;n&amp;quot; number of times'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-8988595269411777374</id><published>2009-01-15T04:29:00.001-08:00</published><updated>2009-01-15T04:41:14.307-08:00</updated><title type='text'>Using jdb with OC4J</title><content type='html'>I have a Customer who has an application which prints java.lang.NullPoinerException and no stack trace associated with this.&lt;br /&gt;For example take this JSP Code (test.jsp)&lt;br /&gt;&lt;br /&gt;&amp;lt;%@page import="java.util.*" %&amp;gt;&lt;br /&gt;&amp;lt;%@page import="java.sql.*" %&amp;gt;&lt;br /&gt;&amp;lt;%@page import="javax.sql.*" %&amp;gt;&lt;br /&gt;&amp;lt;%@page import="javax.naming.*" %&amp;gt;&lt;br /&gt;&amp;lt;%@page import="oracle.jdbc.pool.*" %&amp;gt;&lt;br /&gt;&amp;lt;HTML&amp;gt;&lt;br /&gt;&amp;lt;HEAD&amp;gt;&lt;br /&gt;&amp;lt;TITLE&amp;gt;JSP Example&amp;lt;/TITLE&amp;gt;&lt;br /&gt;&amp;lt;/HEAD&amp;gt;&lt;br /&gt;&amp;lt;BODY BGCOLOR="#ffffcc"&amp;gt;&lt;br /&gt;&amp;lt;CENTER&amp;gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;try {&lt;br /&gt;String p1=null;&lt;br /&gt;out.println(p1.indexOf("123"));&lt;br /&gt;}&lt;br /&gt;catch (Exception e1)&lt;br /&gt;{&lt;br /&gt;System.out.println(e1.toString());&lt;br /&gt;}&lt;br /&gt;%&amp;gt;&lt;br /&gt;&amp;lt;/CENTER&amp;gt;&lt;br /&gt;&amp;lt;/BODY&amp;gt;&lt;br /&gt;&amp;lt;/HTML&amp;gt;&lt;br /&gt;&lt;br /&gt;When you run this program this only prints 09/01/15 17:58:15 java.lang.NullPointerException&lt;br /&gt;and you have no idea from where this exception is coming from.&lt;br /&gt;You can use JDB to find out from where this exception is coming from&lt;br /&gt;Run the OC4J with the following option&lt;br /&gt;java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=10444 -jar oc4j.jar&lt;br /&gt;&lt;br /&gt;Now open another command prompt&lt;br /&gt;run the jdb command with the following option&lt;br /&gt;jdb  -connect com.sun.jdi.SocketAttach:port=10444&lt;br /&gt;At the jdb prompt enter the follwoing command&lt;br /&gt; catch java.lang.NullPointerException&lt;br /&gt;Now run your Application , when the NPE exception comes up the jdb displays the following info&lt;br /&gt;Exception occurred: java.lang.NullPointerException (to be caught at: _t1._jspService(), line=58 bci=144)"thread=HTTPThreadGroup-8", _t1._jspService(), line=56 bci=135&lt;br /&gt;HTTPThreadGroup-8[1]&lt;br /&gt;Now type the command&lt;br /&gt;where&lt;br /&gt;to get the stack that is causing this problem&lt;br /&gt;This will display the following stack&lt;br /&gt;HTTPThreadGroup-8[1]HTTPThreadGroup-8[1] where  [1] _t1._jspService (_t1.java:56)  [2] com.orionserver.http.OrionHttpJspPage.service (OrionHttpJspPage.java:59)  [3] oracle.jsp.runtimev2.JspPageTable.service (JspPageTable.java:462)  [4] oracle.jsp.runtimev2.JspServlet.internalService (JspServlet.java:594)  [5] oracle.jsp.runtimev2.JspServlet.service (JspServlet.java:518)  [6] javax.servlet.http.HttpServlet.service (HttpServlet.java:856)  [7] com.evermind.server.http.ServletRequestDispatcher.invoke (ServletRequestDispatcher.java:713)  [8] com.evermind.server.http.ServletRequestDispatcher.forwardInternal (ServletRequestDispatcher.java:370)  [9] com.evermind.server.http.HttpRequestHandler.doProcessRequest (HttpRequestHandler.java:871)  [10] com.evermind.server.http.HttpRequestHandler.processRequest (HttpRequestHandler.java:453)  [11] com.evermind.server.http.HttpRequestHandler.serveOneRequest (HttpRequestHandler.java:221)  [12] com.evermind.server.http.HttpRequestHandler.run (HttpRequestHandler.java:122)  [13] com.evermind.server.http.HttpRequestHandler.run (HttpRequestHandler.java:111)  [14] oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run (ServerSocketReadHandler.java:260)  [15] oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket (ServerSocketAcceptHandler.java:239)  [16] oracle.oc4j.network.ServerSocketAcceptHandler.access$700 (ServerSocketAcceptHandler.java:34)  [17] oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run (ServerSocketAcceptHandler.java:880)  [18] com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:303)  [19] java.lang.Thread.run (Thread.java:595)HTTPThreadGroup-8[1]&lt;br /&gt;Now we know that we got the exception from t1.jsp.&lt;br /&gt;&lt;br /&gt;After this run the command&lt;br /&gt;run to proceede further.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-8988595269411777374?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/8988595269411777374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=8988595269411777374' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8988595269411777374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8988595269411777374'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/01/using-jdb-with-oc4j.html' title='Using jdb with OC4J'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-187390498931986209</id><published>2009-01-14T23:16:00.000-08:00</published><updated>2009-01-14T23:20:50.875-08:00</updated><title type='text'>How to run a Simple JMX-Groovy Example with OC4J</title><content type='html'>This note explains how to run a simple JMX script using the groovy scripting language.&lt;br /&gt;Software Requirements/Prerequisites&lt;br /&gt;Download groovy software from http://dist.groovy.codehaus.org/distributions/groovy-binary-1.5.6.zip&lt;br /&gt;Extract this to a directory say D:\groovy-1.5.6&lt;br /&gt;Configuring the Sample Code&lt;br /&gt;Make sure following startup options are set when either starting the OC4J standalone or the Oracle Application Server:&lt;br /&gt;com.sun.management.jmxremote&lt;br /&gt;com.sun.management.jmxremote.port=9004&lt;br /&gt;com.sun.management.jmxremote.authenticate=false&lt;br /&gt;com.sun.management.jmxremote.ssl=false&lt;br /&gt;If you are using OAS , then please set these parameters in the configuration file $ORACLE_HOME/opmn/config/opmn.xml, for example:&lt;br /&gt;&amp;lt;category id="start-parameters"&amp;gt;&lt;br /&gt;&amp;lt;data id="java-options" value="-server -XX:MaxPermSize=128M -ms512M -mx1024M -XX:AppendRatio=3 -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9004 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false "/&amp;gt;&lt;br /&gt;&lt;br /&gt;For OC4J standalone the startup command would look like:&lt;br /&gt;java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9004 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -jar oc4j.jar&lt;br /&gt;Running the Sample Code&lt;br /&gt;Copy and Paste the sample code (see below) in a text file and save this file as say test.groovy&lt;br /&gt;&lt;br /&gt;Set the following environment variables:&lt;br /&gt;set ORACLE_HOME=c:\oc4j10133&lt;br /&gt;set GROOVY_HOME=D:\groovy-1.5.6&lt;br /&gt;set classpath=%GROOVY_HOME%\lib\commons-cli-1.0.jar;%GROOVY_HOME%\lib\groovy-1.5.6.jar;%ORACLE_HOME%\j2ee\home\admin_client.jar;%ORACLE_HOME%\j2ee\home\oc4jclient.jar;%GROOVY_HOME%\lib\asm-2.2.jar;%GROOVY_HOME%\lib\antlr-2.7.6.jar&lt;br /&gt;&lt;br /&gt;Run the example using the command:&lt;br /&gt;java -classpath %CLASSPATH% groovy.lang.GroovyShell test.groovy&lt;br /&gt;Sample Code&lt;br /&gt;import javax.management.remote.*&lt;br /&gt;import oracle.oc4j.admin.jmx.remote.api.JMXConnectorConstant&lt;br /&gt;import javax.management.remote.JMXConnectorFactory as JmxFactory&lt;br /&gt;def serverUrl = new JMXServiceURL('service:jmx:rmi://localhost:23791')&lt;br /&gt;def serverPath = 'oc4j:j2eeType=J2EEServer,name=standalone'&lt;br /&gt;def jvmPath = 'oc4j:j2eeType=JVM,name=single,J2EEServer=standalone'&lt;br /&gt;def provider = 'oracle.oc4j.admin.jmx.remote'&lt;br /&gt;def credentials = [ (JMXConnectorConstant.CREDENTIALS_LOGIN_KEY): 'oc4jadmin'&lt;br /&gt;, (JMXConnectorConstant.CREDENTIALS_PASSWORD_KEY): 'welcome1']&lt;br /&gt;def env = [ (JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES): provider&lt;br /&gt;, (JMXConnector.CREDENTIALS): credentials ]&lt;br /&gt;def server = JmxFactory.connect(serverUrl, env).mBeanServerConnection&lt;br /&gt;def serverInfo = new GroovyMBean(server, serverPath)&lt;br /&gt;def jvmInfo = new GroovyMBean(server, jvmPath)&lt;br /&gt;println """Connected to $serverInfo.node. \&lt;br /&gt;Server started ${new Date(serverInfo.startTime)}.&lt;br /&gt;OC4J version: $serverInfo.serverVersion from $serverInfo.serverVendor&lt;br /&gt;JVM version: $jvmInfo.javaVersion from $jvmInfo.javaVendor&lt;br /&gt;Memory usage: $jvmInfo.freeMemory bytes free, \&lt;br /&gt;$jvmInfo.totalMemory bytes total&lt;br /&gt;"""&lt;br /&gt;def query = new javax.management.ObjectName('oc4j:*')&lt;br /&gt;String[] allNames = server.queryNames(query, null)&lt;br /&gt;def dests = allNames.findAll{ name -&amp;gt;&lt;br /&gt;name.contains('j2eeType=JMSDestinationResource')&lt;br /&gt;}.collect{ new GroovyMBean(server, it) }&lt;br /&gt;println "Found ${dests.size()} JMS destinations. Listing ..."&lt;br /&gt;dests.each{ d -&amp;gt; println "$d.name: $d.location" }&lt;br /&gt;&lt;br /&gt;Sample Code Output&lt;br /&gt;This is the expected output from the above groovy script&lt;br /&gt;Connected to localhost.idc.oracle.com. Server started Tue Jul 22 12:32:55 IST 2008.&lt;br /&gt;OC4J version: 10.1.3.3.0 from Oracle Corp.&lt;br /&gt;JVM version: 1.5.0_15 from Sun Microsystems Inc.&lt;br /&gt;Memory usage: 3657056 bytes free, 20709376 bytes total&lt;br /&gt;Found 8 JMS destinations. Listing ...&lt;br /&gt;jms/queues/ErrorQueue: jms/queues/ErrorQueue&lt;br /&gt;jms/PSSPBasicInfo: jms/PSSPBasicInfo&lt;br /&gt;jms/myTopic: jms/myTopic&lt;br /&gt;Demo Queue: jms/demoQueue&lt;br /&gt;jms/queues/ReceiveQueue: jms/queues/ReceiveQueue&lt;br /&gt;Demo Topic: jms/demoTopic&lt;br /&gt;jms/Oc4jJmsExceptionQueue: jms/Oc4jJmsExceptionQueue&lt;br /&gt;jms/RAExceptionQueue: jms/RAExceptionQueue&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-187390498931986209?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/187390498931986209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=187390498931986209' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/187390498931986209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/187390498931986209'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2009/01/how-to-run-simple-jmx-groovy-example.html' title='How to run a Simple JMX-Groovy Example with OC4J'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-8824523062826404109</id><published>2009-01-14T23:14:00.000-08:00</published><updated>2011-06-29T23:43:34.806-07:00</updated><title type='text'>How to run a Simple JMX-Groovy Example with OC4J</title><content type='html'>&lt;div&gt;This note explains how to run a simple JMX script using the groovy scripting language.&lt;br /&gt;&lt;a name="SWREQS"&gt;&lt;/a&gt;Software Requirements/Prerequisites&lt;br /&gt;Download groovy software from &lt;a href="http://dist.groovy.codehaus.org/distributions/groovy-binary-1.5.6.zip"&gt;http://dist.groovy.codehaus.org/distributions/groovy-binary-1.5.6.zip&lt;/a&gt;&lt;br /&gt;Extract this to a directory say D:\groovy-1.5.6&lt;br /&gt;&lt;a name="CONFIG"&gt;&lt;/a&gt;Configuring the Sample CodeMake sure following startup options are set when either starting the OC4J standalone or the Oracle Application Server:&lt;br /&gt;com.sun.management.jmxremote&lt;br /&gt;com.sun.management.jmxremote.port=9004&lt;br /&gt;com.sun.management.jmxremote.authenticate=false&lt;br /&gt;com.sun.management.jmxremote.ssl=falseIf you are using OAS , then please set these parameters in the configuration file $ORACLE_HOME/opmn/config/opmn.xml, for example: &lt;/div&gt;&lt;br /&gt;&lt;div&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;category id="start-parameters"&gt;   &lt;data id="java-options" value="-server -XX:MaxPermSize=128M -ms512M -mx1024M -XX:AppendRatio=3 -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9004 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false "&gt; For OC4J standalone the startup command would look like:&lt;br /&gt;java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9004 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -jar oc4j.jar&lt;br /&gt;&lt;a name="RUNSTEPS"&gt;&lt;/a&gt;Running the Sample Code&lt;br /&gt;Copy and Paste the sample code (see below) in a text file and save this file as say test.groovy&lt;br /&gt;Set the following environment variables:&lt;br /&gt;set ORACLE_HOME=c:\oc4j10133set GROOVY_HOME=D:\groovy-1.5.6set classpath=%GROOVY_HOME%\lib\commons-cli-1.0.jar;%GROOVY_HOME%\lib\groovy-1.5.6.jar;%ORACLE_HOME%\j2ee\home\admin_client.jar;%ORACLE_HOME%\j2ee\home\oc4jclient.jar;%GROOVY_HOME%\lib\asm-2.2.jar;%GROOVY_HOME%\lib\antlr-2.7.6.jar&lt;br /&gt;Run the example using the command:&lt;br /&gt;java -classpath %CLASSPATH% groovy.lang.GroovyShell test.groovy&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-8824523062826404109?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/8824523062826404109/comments/default' title='Post Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8824523062826404109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/8824523062826404109'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-1189890777170162046</id><published>2008-12-18T21:21:00.000-08:00</published><updated>2009-01-08T01:24:14.766-08:00</updated><title type='text'>Opatch for the Application Server</title><content type='html'>1. Download this using the Patch Number 6880880&lt;br /&gt;2. For AS 10.1.3 and 10.1.2 download the OPatch 10.1.0.X version.&lt;br /&gt;For DB 10.1.X download Opatch 10.1.0.X version&lt;br /&gt;For DB 10.2.X download Opatch 10.2.0.X version&lt;br /&gt;For DB 11g download Opatch 11.0.X version.&lt;br /&gt;3. After this run the command&lt;br /&gt;unzip -d $ORACLE_HOME p6880880_101000_LINUX.zip&lt;br /&gt;4. Now issue opatch lsinventory&lt;br /&gt;&lt;p&gt;For the customised Inventory location use the following /home/ias/infra101202/OPatch/opatch lsinventory -detail -invPtrLoc /etc/oraInst.loc &lt;/p&gt;&lt;p&gt;If you want to apply a patch meant for a different Platform use the command&lt;/p&gt;&lt;p&gt;export OPATCH_PLATFORM_ID=0 and then opatch apply&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-1189890777170162046?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/1189890777170162046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=1189890777170162046' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1189890777170162046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/1189890777170162046'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2008/12/opatch-for-application-server.html' title='Opatch for the Application Server'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-6548325932673029296</id><published>2008-12-11T06:50:00.001-08:00</published><updated>2008-12-12T04:57:20.932-08:00</updated><title type='text'>Update Redhat4 Linux System via yum with the local repository</title><content type='html'>This small write up explains how to upgrade the RedHat linux system from one releaseto another one. For example you have RedHat linux 4 Update 2 installed and now youwant to update this to the latest one for example 7.&lt;br /&gt;You can use the yum to do this on a local RPM repository.&lt;br /&gt;1. Download the related rpm files&lt;br /&gt;Set the http_proxy as we need to download some files from the internet.&lt;br /&gt;export http_proxy=http://www-proxy.us.oracle.com/&lt;br /&gt;wget &lt;a href="http://dag.wieers.com/rpm/packages/createrepo/createrepo-0.4.4-3.el4.rf.noarch.rpm"&gt;wget http://iasbde.us.oracle.com/ohs_scripts/yum-2.0.7-1.noarch.rpm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Install these RPM's by using the command&lt;br /&gt;rpm -ivh yum-2.0.7-1.noarch.rpm&lt;br /&gt;&lt;br /&gt;3. Download the latest the RedHat linux version 4 from kernel.us.oracle.com&lt;br /&gt;&lt;a href="http://kernel.us.oracle.com/osinstall/RedHat/RHEL4/i386/AS/U7/RHEL4.7-i386-AS-DVD.iso"&gt;http://kernel.us.oracle.com/osinstall/RedHat/RHEL4/i386/AS/U7/RHEL4.7-i386-AS-DVD.iso&lt;/a&gt;&lt;br /&gt;4. mount this ISO image&lt;br /&gt;mount -o loop -t iso9660 RHEL4.7-i386-AS-DVD.iso /mnt/test&lt;br /&gt;&lt;br /&gt;5. Copy all the RPM's to a local directory mkdir /home/localrpmscp /mnt/test/RedHat/RPMS/* /home/localrpms&lt;br /&gt;&lt;br /&gt;6. Create the necessary header and other related files for the yum&lt;br /&gt;cd /home/localrpms&lt;br /&gt;yum-arch .&lt;br /&gt;&lt;br /&gt;7. Open the /etc/yum.conf fileand change the entries of baseurl toi.e.from#baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/tobaseurl=file:///home/RPMS&lt;br /&gt;Modified yum.conf file&lt;br /&gt;[main]cachedir=/var/cache/yumdebuglevel=2logfile=/var/log/yum.logpkgpolicy=newestdistroverpkg=redhat-releasetolerant=1exactarch=1&lt;br /&gt;[base]name=Red Hat Linux $releasever - $basearch - Basebaseurl=file:///home/RPMS&lt;br /&gt;[updates]name=Red Hat Linux $releasever - Updates#baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/baseurl=file:///home/RPMS&lt;br /&gt;&lt;br /&gt;8. yum update&lt;br /&gt;Once the update is complete, you will need to reboot the system. It should automatically boot into the new kernel. If this does not happen, then you will need to update the /boot/grub/grub.conf file. The line 'default=0' means the first kernel listing. After yum completes, the new kernel should be the first listed.&lt;br /&gt;If you have not installed previous iAS products, you will also want toperform the following so that all the packages needed are present.&lt;br /&gt;# yum install gnome-libs&lt;br /&gt;# yum install gnome-libs-devel&lt;br /&gt;'yum update' or 'yum install ' to add additional or missing packages.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-6548325932673029296?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/6548325932673029296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=6548325932673029296' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6548325932673029296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/6548325932673029296'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2008/12/update-redhat4-linux-system-via-yum.html' title='Update Redhat4 Linux System via yum with the local repository'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8478734.post-9028788430381791478</id><published>2008-10-16T02:13:00.001-07:00</published><updated>2008-10-16T02:16:15.446-07:00</updated><title type='text'>How to set a classpatch for all the .jar files in a directory</title><content type='html'>On UNIX&lt;br /&gt;C=.; for i in *.jar; do C=$C:$i; done&lt;br /&gt; echo $C&lt;br /&gt;java -cp $C org.jgroups.demos.Draw&lt;br /&gt;&lt;br /&gt;On Windows&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8478734-9028788430381791478?l=rreddy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rreddy.blogspot.com/feeds/9028788430381791478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8478734&amp;postID=9028788430381791478' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/9028788430381791478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8478734/posts/default/9028788430381791478'/><link rel='alternate' type='text/html' href='http://rreddy.blogspot.com/2008/10/how-to-set-classpatch-for-all-jar-files.html' title='How to set a classpatch for all the .jar files in a directory'/><author><name>Prasad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
