<?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-5083674265912730417</id><updated>2012-01-22T13:36:57.924-08:00</updated><category term='BPEL 2.0'/><category term='Attachment'/><category term='XSLT'/><category term='AIA 3.0 Installation'/><category term='javascript'/><category term='Email'/><category term='cache'/><category term='Regular Expressions'/><category term='Jdeveloper 10g'/><category term='AIA'/><category term='Jdeveloper 11g'/><category term='Fusion Middleware Console'/><category term='ADF 11g'/><category term='af:selectOneChoice'/><category term='Search'/><category term='dynamic list value'/><category term='SOA'/><category term='BPEL'/><category term='Email Notifications'/><category term='Node Manager'/><category term='MQ Adapter'/><category term='MS-SQL Server'/><category term='SOA Suite 11g'/><category term='Custom SQL'/><category term='setCurrentRowWithKey'/><category term='DB Adapter'/><category term='JNDI Name'/><category term='Weblogic'/><category term='FTP Adapter'/><category term='USE_APPLICATION_VIEW_CACHE'/><category term='combo box'/><category term='Validations'/><category term='query-database'/><category term='MDS'/><category term='ADF 10g'/><category term='String Functions'/><category term='New Line Character'/><title type='text'>Neeraj Sehgal - Experimenting with SOA</title><subtitle type='html'>Solutions and Thoughts on Oracle Fusion Middleware and its components : Oracle AIA, ADF, BPEL, Rules, OWSM, WebCenter Suite etc.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>24</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-6581385058961763150</id><published>2012-01-22T13:36:00.000-08:00</published><updated>2012-01-22T13:36:57.936-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SOA Suite 11g'/><category scheme='http://www.blogger.com/atom/ns#' term='Attachment'/><category scheme='http://www.blogger.com/atom/ns#' term='Email Notifications'/><category scheme='http://www.blogger.com/atom/ns#' term='Email'/><category scheme='http://www.blogger.com/atom/ns#' term='BPEL'/><title type='text'>Sending attachment using Email Activity in BPEL 11g</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div&gt;Sending an attachment using Email Activity (in SOA 11.1.1.5) is an easy task. All you have to do is drag and drop an email activity and double click on it. Assign the following parameters and the attachment will be sent along with the email.&lt;/div&gt;&lt;div&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;Name&lt;/span&gt;- Name of the attachment as it should appear&lt;/div&gt;&lt;div&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;MimeType&lt;/span&gt;- This MimeType is for attachment. Choose appropriate MimeType from &lt;a href="http://kb.mediatemple.net/questions/151/%28gs%29+MIME+Types#/list-of-mime-types" target="_blank"&gt;here&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;Value&lt;/span&gt; - Write what you would like to see in the attachment. Simply hard coding.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-6ZUH13eTgUE/Txx5HKq9-YI/AAAAAAAAAVs/EowLwCbm28g/s1600/EmailActivity.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="100" src="http://2.bp.blogspot.com/-6ZUH13eTgUE/Txx5HKq9-YI/AAAAAAAAAVs/EowLwCbm28g/s200/EmailActivity.JPG" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Well, sometimes the requirement may be to send some custom data, may be you fetched some data at runtime from the DB and would lke to send it as attachment. This isn't complex either, all you have to do is modify the &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;ContentBody&lt;/span&gt; parameter as follows.&amp;nbsp;&lt;i&gt;You can do this successfully from the &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;EmailParamsAssign&lt;/span&gt; Activity but don't forget to verify the same in the bpel source too.&lt;/i&gt;&lt;/div&gt;&lt;script class="brush: xml; highlight: 2" type="syntaxhighlighter"&gt;&lt;![CDATA[  &lt;copy&gt;    &lt;from expression="string(bpws:getVariableData('inputVariable','payload','/client:process/client:input'))"/&gt;    &lt;to variable="varNotificationReq" part="EmailPayload"        query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1:ContentBody"/&gt;  &lt;/copy&gt;]]&gt;&lt;/script&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;Extending this a bit further, if you'd like to send some files (&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;image,pdf,doc,xls,csv&lt;/span&gt;) that are already stored at some server location or you may have written them from your process, follow these &amp;nbsp;steps.&lt;/div&gt;&lt;div&gt;1.) Set the appropriate &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;MimeType &lt;/span&gt;for the file.&lt;/div&gt;&lt;div&gt;2.) Add the following line in the &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;.bpel&lt;/span&gt; source under appropriate &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;BodyPart&lt;/span&gt;.&lt;/div&gt;&lt;script class="brush: xml; highlight: 14" type="syntaxhighlighter"&gt;&lt;![CDATA[            &lt;content xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"&gt;                &lt;mimetype xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"&gt;multipart/mixed&lt;/MimeType&gt;                &lt;contentbody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"&gt;                    &lt;multipart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"&gt;                     &lt;bodypart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"&gt;                        &lt;mimetype xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/&gt;                        &lt;contentbody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/&gt;                        &lt;bodypartname xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/&gt;                    &lt;/BodyPart&gt;                     &lt;bodypart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"&gt;                        &lt;mimetype xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/&gt;                        &lt;contentbody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/&gt;                        &lt;bodypartname xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/&gt;                        &lt;contentencoding xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/&gt;                    &lt;/BodyPart&gt;                    &lt;/MultiPart&gt;                &lt;/ContentBody&gt;            &lt;/Content&gt;]]&gt;&lt;/script&gt;&lt;br /&gt;&lt;div&gt;3.) Add another &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;copy&amp;nbsp;&lt;/span&gt;operation in the bpel source to assign &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;string('base64')&lt;/span&gt; to &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;ContentEncoding&lt;/span&gt; in BodyPart[2].&lt;/div&gt;&lt;script class="brush: xml" type="syntaxhighlighter"&gt;&lt;![CDATA[          &lt;copy&gt;            &lt;from expression="string('base64')"/&gt;            &lt;to variable="varNotificationReq" part="EmailPayload"                query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1:ContentEncoding"/&gt;          &lt;/copy&gt;]]&gt;&lt;/script&gt;&lt;br /&gt;&lt;div&gt;4.) Modify the&amp;nbsp;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;ContentBody&lt;/span&gt;&amp;nbsp;&amp;nbsp;parameter to read the file at runtime using &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;ora:readFile()&lt;/span&gt; function as follows.&lt;/div&gt;&lt;script class="brush: xml; highlight: 2" type="syntaxhighlighter"&gt;&lt;![CDATA[          &lt;copy&gt;            &lt;from expression="ora:readFile('file:///&lt;ABSOLUTE_FILE_PATH&gt;/FILE_NAME.EXTN')"/&gt;            &lt;to variable="varNotificationReq" part="EmailPayload"                query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1:ContentBody"/&gt;          &lt;/copy&gt;]]&gt;&lt;/script&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;Key Points to Note:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;The file location and name in &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;ora:readFile()&lt;/span&gt; above are &lt;b&gt;case-sensitive&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Specifying the correct &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;MimeType&lt;/span&gt; is very important. If the &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;MimeType&amp;nbsp;&lt;/span&gt;is incorrect, either the mail won't go or you may get encrypted characters in the attached file.&lt;/li&gt;&lt;li&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;file:///&lt;/span&gt; (three slashes mean absolute path and two slashes mean relative path)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;The above solution works with all the files. Should anyone need the working project, I can mail the same.&amp;nbsp;&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/5083674265912730417-6581385058961763150?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/6581385058961763150/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2012/01/sending-attachment-using-email-activity.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/6581385058961763150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/6581385058961763150'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2012/01/sending-attachment-using-email-activity.html' title='Sending attachment using Email Activity in BPEL 11g'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-6ZUH13eTgUE/Txx5HKq9-YI/AAAAAAAAAVs/EowLwCbm28g/s72-c/EmailActivity.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-3741985485875567307</id><published>2012-01-22T12:45:00.000-08:00</published><updated>2012-01-22T12:45:38.526-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='String Functions'/><category scheme='http://www.blogger.com/atom/ns#' term='SOA Suite 11g'/><category scheme='http://www.blogger.com/atom/ns#' term='New Line Character'/><category scheme='http://www.blogger.com/atom/ns#' term='BPEL'/><category scheme='http://www.blogger.com/atom/ns#' term='XSLT'/><title type='text'>Inserting a New Line character in message using BPEL XSLT</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In a requirement, we were trying to format the data fetched from DB (in XML format in BPEL) into a &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;String&lt;/span&gt; variable with a new line inserted after each record. So that the data below&lt;script class="brush: xml" title="Source XML" type="syntaxhighlighter"&gt;&lt;![CDATA[    &lt;selectfromlookupoutputcollection&gt;      &lt;selectfromlookupoutput&gt;        &lt;property_name&gt;Colour&lt;/property_name&gt;        &lt;property_value&gt;RED&lt;/property_value&gt;      &lt;/SelectFromLookupOutput&gt;      &lt;selectfromlookupoutput&gt;        &lt;property_name&gt;Email&lt;/property_name&gt;        &lt;property_value&gt;ABC.XYZ@PQR.COM&lt;/property_value&gt;      &lt;/SelectFromLookupOutput&gt;      &lt;selectfromlookupoutput&gt;        &lt;property_name&gt;Technology&lt;/property_name&gt;        &lt;property_value&gt;ORACLE&lt;/property_value&gt;      &lt;/SelectFromLookupOutput&gt;    &lt;/SelectFromLookupOutputCollection&gt;]]&gt;&lt;/script&gt;would appear in the &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;String &lt;/span&gt;variable like&lt;script class="brush: xml" title="Target String" type="syntaxhighlighter"&gt;&lt;![CDATA[Colour,REDEmail,ABC.XYZ@PQR.COMTechnology,ORACLE]]&gt;&lt;/script&gt;Following is the simple transformation to achieve the same.&lt;script class="brush: xml" type="syntaxhighlighter"&gt;&lt;![CDATA[      &lt;xsl:for-each select="/ns0:SelectFromLookupOutputCollection/ns0:SelectFromLookupOutput"&gt;          &lt;xsl:value-of select='concat(ns0:property_name, ",", ns0:property_value,"&amp;#10;")'/&gt;      &lt;/xsl:for-each&gt;]]&gt;&lt;/script&gt;&lt;b&gt;&lt;u&gt;Key Points to Note:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;The magic lies in the word &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;amp;#10;&lt;/span&gt; which serves as a new line character in XSLT (11g). In above case, it gets appended at the end of each record resulting in new line at the end of each record.&lt;/li&gt;&lt;li&gt;The function somehow doesn't work in SOA Suite 11.1.1.3 (BUG-13602524, thanks to my colleague Nivea for identifying this) but works in 11.1.1.4 and older versions.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&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/5083674265912730417-3741985485875567307?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/3741985485875567307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2012/01/inserting-new-line-character-in-message.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/3741985485875567307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/3741985485875567307'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2012/01/inserting-new-line-character-in-message.html' title='Inserting a New Line character in message using BPEL XSLT'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-1349500850437040245</id><published>2012-01-17T02:19:00.000-08:00</published><updated>2012-01-17T02:23:48.696-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BPEL 2.0'/><category scheme='http://www.blogger.com/atom/ns#' term='SOA'/><category scheme='http://www.blogger.com/atom/ns#' term='MQ Adapter'/><category scheme='http://www.blogger.com/atom/ns#' term='FTP Adapter'/><category scheme='http://www.blogger.com/atom/ns#' term='dynamic list value'/><category scheme='http://www.blogger.com/atom/ns#' term='JNDI Name'/><title type='text'>How to pass JNDI name dynamically to an Adapter</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;Recently, I've been trying configure an MQ adapter that could enqueue data of any structure into &lt;a href="http://neeraj-soa-tips.blogspot.com/2011/10/how-to-pass-queue-name-dynamically-to.html" target="_blank"&gt;specified queue&lt;/a&gt; based on the specified JNDI, all passed dynamically at runtime. This post decsribes how you can pass the JNDI Name dynamically to an Adapter.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;All you have to do is define a &lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;String &lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;variable (say &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New', Courier, monospace;"&gt;myJndiName&lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;) that stores your JNDI name (&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;eis/MQ/someThing&lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;...already configured on Weblogic) and pass this variable into &lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;Invoke &lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;Activity properties directly in the &lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;.bpel &lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;source.&lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;i&gt;Note that you'll &lt;b&gt;not&lt;/b&gt; be able to find this property in the &lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;Invoke Activity &amp;gt; Properties&lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt; tab.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;script class="brush: xml" title="For BPEL 1.1" type="syntaxhighlighter"&gt;&lt;![CDATA[ &lt;invoke name="Invoke_1"          inputVariable="Invoke_1_Enqueue_InputVariable"         partnerLink="PutInMQ" portType="ns1:Enqueue_ptt"         operation="Enqueue"&gt;         &lt;bpelx:inputProperty name="jca.jndi" variable="myJndiName"/&gt; &lt;/invoke&gt;]]&gt;&lt;/script&gt;&lt;br /&gt;&lt;script class="brush: xml" title="For BPEL 2.0" type="syntaxhighlighter"&gt;&lt;![CDATA[    &lt;invoke name="Invoke1" partnerLink="PutInMQ"             portType="ns1:Enqueue_ptt"            operation="Enqueue"             inputVariable="Invoke1_Enqueue_InputVariable"            bpelx:invokeAsDetail="no"&gt;      &lt;bpelx:toProperties&gt;        &lt;bpelx:toProperty name="jca.jndi" variable="myJndiName"/&gt;      &lt;/bpelx:toProperties&gt;    &lt;/invoke&gt;]]&gt;&lt;/script&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;And that's it. You can assign different values on the fly to the variable&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;myJndiName &lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;and same adapter can enqueue in different JNDI locations. It also works for FTP and JMS adapters too.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&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/5083674265912730417-1349500850437040245?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/1349500850437040245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2012/01/how-to-pass-jndi-name-dynamically-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/1349500850437040245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/1349500850437040245'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2012/01/how-to-pass-jndi-name-dynamically-to.html' title='How to pass JNDI name dynamically to an Adapter'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-5106823439605302621</id><published>2011-10-07T08:38:00.000-07:00</published><updated>2012-01-17T02:21:19.959-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SOA Suite 11g'/><category scheme='http://www.blogger.com/atom/ns#' term='MQ Adapter'/><category scheme='http://www.blogger.com/atom/ns#' term='dynamic list value'/><title type='text'>How to pass the queue name dynamically to MQ Adapter</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;&lt;u&gt;Requirement:&lt;/u&gt;&lt;/b&gt; To pass the queue name dynamically to MQ Adapter from a variable&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;&lt;u&gt;Use-case:&lt;/u&gt;&lt;/b&gt; I have a process that is required to enqueue the data in one of the two MQs at runtime based on certain condition using single MQ Adapter. So if the condition is true the data is to be enqueued in &lt;span class="Apple-style-span" style="color: blue;"&gt;queue A&lt;/span&gt; else in &lt;span class="Apple-style-span" style="color: blue;"&gt;queue B&lt;/span&gt;. However, the payload schema remains the same in both the queues. &lt;i&gt;(using SOA Suite 11.1.1.3)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/b&gt; Use the &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;jca.mq.ISpec.EnqueueMsgToQ&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; property appearing in the &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;Properties &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;tab of &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;Invoke &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Activity. Assign the value of the property to the variable name which contains the MQ name.&lt;/span&gt;&lt;br /&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-65HxqrjiWb4/To8bcLS6Q5I/AAAAAAAAAVM/0-s43ncPaOs/s1600/QueueNameDynamically.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="304" src="http://4.bp.blogspot.com/-65HxqrjiWb4/To8bcLS6Q5I/AAAAAAAAAVM/0-s43ncPaOs/s320/QueueNameDynamically.JPG" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Passing Queue Name from a variable&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Setting the value to this variable will allow you to set the queue name dynamically in the process or from outside the process.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;&lt;u&gt;Advantage:&lt;/u&gt;&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;MQ Adapter can be&amp;nbsp;loosely&amp;nbsp;coupled and kept in a separate composite which can be called by any caller composite. Also a s&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;ingle MQ Adapter can be used for en-queuing to multiple queues.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-5106823439605302621?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/5106823439605302621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2011/10/how-to-pass-queue-name-dynamically-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/5106823439605302621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/5106823439605302621'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2011/10/how-to-pass-queue-name-dynamically-to.html' title='How to pass the queue name dynamically to MQ Adapter'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-65HxqrjiWb4/To8bcLS6Q5I/AAAAAAAAAVM/0-s43ncPaOs/s72-c/QueueNameDynamically.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-1545086731644712200</id><published>2011-07-13T08:33:00.000-07:00</published><updated>2011-11-29T03:01:18.726-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='query-database'/><category scheme='http://www.blogger.com/atom/ns#' term='SOA Suite 11g'/><category scheme='http://www.blogger.com/atom/ns#' term='DB Adapter'/><category scheme='http://www.blogger.com/atom/ns#' term='Custom SQL'/><title type='text'>Pass multiple parameters, dynamic query in Pure SQL in Database Adapter</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;I came across a case in which I was required to pass the bind parameters values on the fly. The values of parameters were not fixed and hence I couldn't define all of them as the bind parameters. Hence in the search of the solution I wasted considerable time until I was directed to see this great solution. The solution was fantastic and I customized&amp;nbsp;it further to make it work with SOA Suite11g. This can be further extended with Joins to do wonders as required.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;Use Case :&lt;/b&gt; I want the salaries of all the employees whose first names I'd pass at run time. Hence it can be &lt;b&gt;single &lt;/b&gt;name or &lt;b&gt;n &lt;/b&gt;names coming as parameters. The very simple query, as it comes to our mind, would be&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;SELECT SALARY FROM EMPLOYEES WHERE F_NAME IN (?)&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Where &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;?&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; is the&amp;nbsp;argument&amp;nbsp;that is passed dynamically.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;However, the same query doesn't work in DB adapter for any combination passed dynamically such as &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;('NEERAJ', 'JACOB')&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; or &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;"('NEERAJ', 'JACOB')"&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; or&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;'NEERAJ', 'JACOB'&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; for the adapter tries to interpret the incoming argument as a bind parameter and not SQL string.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;b style="font-family: 'Trebuchet MS', sans-serif;"&gt;Solution :&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; &amp;nbsp;If the parameters can be passed as a result of an inner query the problem can be solved. The following query uses &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;CONNECT BY LEVEL&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; clause to separate the individual parameter values separated by a &lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;and represents them as individual result row.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;SELECT SALARY FROM EMPLOYEES WHERE F_NAME&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;IN&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&amp;nbsp;(WITH BIND_PARAM_LIST AS&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;(SELECT #val FROM dual)&lt;br /&gt;SELECT SUBSTR(#val1, (decode(LEVEL, 1, 0, instr(#val2, ':', 1, LEVEL -1)) + 1), (decode(instr(#val3, ':', 1, LEVEL) -1, -1, LENGTH(#val4), instr(#val5, ':', 1, LEVEL) -1)) -(decode(LEVEL, 1, 0, instr(#val6, ':', 1, LEVEL -1)) + 1) + 1) a&lt;br /&gt;FROM&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace; line-height: 18px;"&gt;BIND_PARAM_LIST&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;CONNECT BY LEVEL &amp;lt;=&lt;br /&gt;(SELECT(LENGTH(#val7) -LENGTH(REPLACE(#val8, ':', NULL)))&lt;br /&gt;FROM&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace; line-height: 18px;"&gt;BIND_PARAM_LIST&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;) + 1)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;To understand the query one needs to be familiar with the &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;CONNECT BY&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; clause which is used for hierarchical queries. If you simply do&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;SELECT LEVEL FROM DUAL CONNECT BY LEVEL &amp;lt;=5&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;, it prints 1 to 5 in each row like&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;LEVEL&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;=====&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;3&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;4&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;5&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;The same logic is being used in the above query to separate the various &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;F_Names&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;. It just sub-strings the incoming string&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace; line-height: 18px;"&gt;NEERAJ:JACOB:ROBERT,&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; line-height: 18px;"&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="color: blue;"&gt;:&amp;nbsp;&lt;/span&gt;wise for each LEVEL to feed the result in the IN clause as&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;NEERAJ&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;JACOB&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;ROBERT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;b style="font-family: 'Trebuchet MS', sans-serif;"&gt;Usage :&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; Just add this query in the DB Adapter. Be careful to use &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;# &lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;instead of &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;? &lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;as in 11g the bind variable name can be defined as &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;#bind_variable&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;, in our case &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;#val1,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace; line-height: 18px;"&gt;#val2 ...&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace; line-height: 18px;"&gt;#val8.&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;Also you'll have to assign the same input string to these multiple &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;val&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;s. The val variables get exposed as input parameters while assigning and can be assigned as &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;'NEERAJ:JACOB:ROBERT'(your parameter list)&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;. You can use any other separator too e.g. ; instead of : by customizing the query a bit.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Just deploy the project and it is done. The same thing can also be achieved by using &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;query-database()&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;function as described &lt;a href="http://neeraj-soa-tips.blogspot.com/2011/04/getting-xml-output-from-oraextquery.html"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-1545086731644712200?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/1545086731644712200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2011/07/pass-multiple-parameters-dynamic-query.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/1545086731644712200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/1545086731644712200'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2011/07/pass-multiple-parameters-dynamic-query.html' title='Pass multiple parameters, dynamic query in Pure SQL in Database Adapter'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-1767371093308185681</id><published>2011-06-27T10:00:00.000-07:00</published><updated>2011-08-05T06:48:26.783-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MDS'/><title type='text'>Delete Data from MDS - Single Files</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;In case an artefact is wrongly published into MDS, it can be deleted from the MDS using 2 ways.&lt;/span&gt;&lt;br /&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;a href="http://forums.oracle.com/forums/thread.jspa?threadID=1260814"&gt;Deleting the entire folder&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Deleting the Selective Files&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;This post details about the latter.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;A file can be deleted from the MDS using Weblogic Scripting Tool. However, in upgraded versions of AIA (11g PS3 onwards), this is available &amp;nbsp;through &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;UpdateMetaDataDP.xml&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; also, very much the same way as we update the artefacts in MDS.&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;To delete a file from MDS follow the following steps.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;1.&lt;/b&gt; Run WLST command from &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;lt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;MW_HOME&amp;gt;/oracle_&lt;/span&gt;&lt;mw_home&gt;&lt;oracle_common_home&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;common/bin&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;. Note there is same command available in Weblogic Server home directory too but MDS related commands can be accessed through&amp;nbsp;&lt;/span&gt;&lt;/oracle_common_home&gt;&lt;/mw_home&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;wlst.sh/exe&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;residing&amp;nbsp;in oracle_common_home only&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;$&amp;nbsp;cd $MW_HOME/oracle_common/common/bin&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; $ wlst.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt; 2.&lt;/b&gt; Type the connect command to connect to &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;soa_server1&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; or &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;WLS_SOA1&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;depending on where your soa-infra is running&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp;$ connect('weblogic', 'welcome1', 't3://localhost:8001')&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt; 3.&lt;/b&gt; Once it is connected, delete The undesired file by typing the following command (Note the path starting from &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;/apps&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt; $ deleteMetadata(application='soa-infra',server='soa_server1',docs='/apps/AIAMetaData/AIAComponents/ApplicationConnectorServiceLibrary/Generic.wsdl')&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;You can use asterisk(*) to specify more than one files e.g. to delete all files with names starting with Gen use&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;deleteMetadata(application='soa-infra',server='soa_server1',docs='/apps/AIAMetaData/AIAComponents/ApplicationConnectorServiceLibrary/Gen*.wsdl')&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;&lt;u&gt;Exception:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;You may get the following exception&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;i&gt;MDS-91002: MDS Application runtime MBean for "soa-infra" is not available. "deleteMetadata" operation failure&lt;/i&gt;.&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Verify that your soa-infra is up and running and is on the same server to which you are connected through WLST.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Happy Learning...&lt;/span&gt;&lt;/div&gt;&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/5083674265912730417-1767371093308185681?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/1767371093308185681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2011/06/delete-data-from-mds-single-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/1767371093308185681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/1767371093308185681'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2011/06/delete-data-from-mds-single-files.html' title='Delete Data from MDS - Single Files'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-2213886798553073453</id><published>2011-05-10T14:43:00.000-07:00</published><updated>2011-06-28T06:49:43.652-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MS-SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Weblogic'/><title type='text'>Weblogic and MS SQL Configurations to run projects using SQL Server Connections</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;a href="http://neeraj-soa-tips.blogspot.com/2011/03/how-to-connect-to-mysql-server-through.html"&gt;Creating &lt;/a&gt;the SQL Server connection from Jdeveloper is easy. However, after the project is developed, it has to be deployed on the Weblogic Server, a JNDI needs to be created to connect to the MS SQL Server. Oracle has provided 2 default drivers for MS SQL Server.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Trebuchet MS', sans-serif;"&gt;*Oracle's MS SQL Server Driver (Type 4 XA) Versions:7.0, 2000, 2005, 2008&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Trebuchet MS', sans-serif;"&gt;*Oracle's MS SQL Server Driver (Type 4) Versions:7.0, 2000, 2005, 2008&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;The difference between 2 drivers is that one is Transaction Aware and other one is not. There are other drivers also present but they would need specific jars to be placed in the server lib directory, but default drivers would work without any additional configuration on the Weblogic Server. Hence a JNDI to connect to MS SQL Server can be created using any of these drivers very much the same way as you create for Oracle Database.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;However, following MS SQL Server configurations also need to be done to be able to connect to MS SQL Server from Weblogic Server.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Create the JTA Procedures&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Follow the steps as given &lt;a href="http://download.oracle.com/docs/cd/E12840_01/wls/docs103/jdbc_drivers/mssqlserver.html#wp1075232"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Also if you are using the XA driver, you also need to enable XA Transactions on MS SQL Server. Follow the&amp;nbsp;following&amp;nbsp;steps for that.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;ol style="text-align: left;"&gt;&lt;li style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;Turn on support for XA transactions:&amp;nbsp;&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Go to &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;Control Panel &amp;gt; Administrative tools &amp;gt; Component Services&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Expand the tree view to locate the computer where you want to turn on support for XA transactions: for example, &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;Component Services &amp;gt; Computers &amp;gt; My Computer&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Right-click the computer name, then click &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;Properties&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Click the &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;MSDTC &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;tab, and then click &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;Security Configuration.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Under &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;Security Settings&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;, click the check box for XA Transactions to turn on this support. (&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;Enable XA Transactions&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;)&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Click &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;OK&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;, and then click &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;OK &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;again.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;Create a registry named-value:&amp;nbsp;&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Use Registry Editor and navigate to registry key: &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\XADLL&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: 'Trebuchet MS', sans-serif;"&gt;Create a new registry named-value:&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Name is the file name of the &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Trebuchet MS', sans-serif;"&gt;XA DLL &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;(in the format &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;dllname.dll&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;).&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Type is &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;String (REG_SZ)&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Value is the full path name (including the file name) of the DLL file. for example, &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;C:\Program Files\Microsoft SQLServer\ MSSQL.1\ MSSQL\ Binn\ sqljdbc.dll&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Go to &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;Control Panel -&amp;gt;Administrative tools-&amp;gt;Services&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;Start "&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;Distributed Transaction Coordinator&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;."&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;Please restart the server to make these changes take effect.&lt;/b&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;&lt;u&gt;Note:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;While making the JNDI for data sources on WLS Console, specify the value of property &lt;/span&gt;&lt;a href="http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_db.htm#BABCDGJG"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;platformClassName&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;as&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;oracle.toplink.platform.database.SQLServerPlatform.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;And that's all. Happy Development!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&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/5083674265912730417-2213886798553073453?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/2213886798553073453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2011/05/weblogic-and-ms-sql-configurations-to.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/2213886798553073453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/2213886798553073453'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2011/05/weblogic-and-ms-sql-configurations-to.html' title='Weblogic and MS SQL Configurations to run projects using SQL Server Connections'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-6246345410399886961</id><published>2011-04-05T02:57:00.000-07:00</published><updated>2011-04-08T15:05:03.214-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SOA Suite 11g'/><category scheme='http://www.blogger.com/atom/ns#' term='Email Notifications'/><category scheme='http://www.blogger.com/atom/ns#' term='Fusion Middleware Console'/><title type='text'>How to check the Email Notification History in SOA Suite 11g FMW Console</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;Problem :&lt;/b&gt; I want to check email notification history in SOA Suite 11g FMW Console. When was an email sent, to whom and from whom and blaw blaw blaw.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;Solution :&lt;/b&gt; Just go to &lt;span class="Apple-style-span" style="color: blue;"&gt;FMW Console &amp;gt; Farm_Domain &amp;gt; User Messaging Service &amp;gt; Right Click usermessagingserver(soa_server1) &amp;gt; Message Status&lt;/span&gt;. It shows you the email notifications details. You can use the search criteria also to filter the data.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-22vAmGmr5UQ/TZrnFurTVbI/AAAAAAAAASc/nLE2BgdWkQw/s1600/Email+History.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="170" src="http://1.bp.blogspot.com/-22vAmGmr5UQ/TZrnFurTVbI/AAAAAAAAASc/nLE2BgdWkQw/s320/Email+History.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-6246345410399886961?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/6246345410399886961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2011/04/how-to-check-email-notification-history.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/6246345410399886961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/6246345410399886961'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2011/04/how-to-check-email-notification-history.html' title='How to check the Email Notification History in SOA Suite 11g FMW Console'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-22vAmGmr5UQ/TZrnFurTVbI/AAAAAAAAASc/nLE2BgdWkQw/s72-c/Email+History.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-3017293333292336540</id><published>2011-04-05T02:40:00.000-07:00</published><updated>2011-11-28T07:37:56.413-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='query-database'/><category scheme='http://www.blogger.com/atom/ns#' term='SOA Suite 11g'/><category scheme='http://www.blogger.com/atom/ns#' term='DB Adapter'/><title type='text'>How to get XML output from the oraext:query-database() function</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;oraext:query-database()&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; is a wonderful function that can be used to&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Fetch the data in the Assigns/Transformations on the fly without the use of DB Adapter&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Can be used to run any Dynamic Custom SQL including variable IN parameters and GROUP BY clauses.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;However, the output returned from this function is always a long string depending on the no.of resultant records. But we can always transform the same into XML format to traverse it in an easier way across the process.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;1.&lt;/b&gt; While calling the function use the 2nd and 3rd parameters as &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;true()&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; rather than &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;false()&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;. It will ensure that &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;ROWSET &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;and &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;ROW &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;tags get generated in the&amp;nbsp;resultant&amp;nbsp;String.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;2.&lt;/b&gt; Now create a schema with ROWSET as root element and ROW as unbounded repeating element. The best way to do this is to copy the resultant XML string into an XML file and use Schema from XML file option to create the schema. This will create the schema for which your resultant output string.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;3.&lt;/b&gt; Now in the &lt;span class="Apple-style-span" style="color: blue;"&gt;Assign &lt;/span&gt;activity use this function as follows to assign the result to Schema element just created in above step.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;i&gt;Note: I had my SQL query in the variable &lt;span class="Apple-style-span" style="color: blue;"&gt;SqlQuery &lt;/span&gt;which is being referred here.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;oraext:query-database(string(bpws:getVariableData('SqlQuery')), true(), true(), 'jdbc/DataSource')&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-am-Z8F4FHa8/TZrYw2-q8LI/AAAAAAAAASY/mcaTztPIriI/s1600/query-database.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;img border="0" height="205" src="http://4.bp.blogspot.com/-am-Z8F4FHa8/TZrYw2-q8LI/AAAAAAAAASY/mcaTztPIriI/s320/query-database.JPG" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;And you get the result in the XML format in the &lt;span class="Apple-style-span" style="color: blue;"&gt;DBResult &lt;/span&gt;variable!&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-3017293333292336540?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/3017293333292336540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2011/04/getting-xml-output-from-oraextquery.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/3017293333292336540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/3017293333292336540'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2011/04/getting-xml-output-from-oraextquery.html' title='How to get XML output from the oraext:query-database() function'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-am-Z8F4FHa8/TZrYw2-q8LI/AAAAAAAAASY/mcaTztPIriI/s72-c/query-database.JPG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-4410453280187857391</id><published>2011-03-03T04:55:00.000-08:00</published><updated>2011-05-10T14:44:11.947-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MS-SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Jdeveloper 11g'/><category scheme='http://www.blogger.com/atom/ns#' term='BPEL'/><title type='text'>How to connect to MS SQL Server through Jdeveloper 11.1.1.3</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;To connect to MS SQL Server you need to follow the following steps.&lt;/span&gt;&lt;br /&gt;&lt;b style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b style="font-family: 'Trebuchet MS', sans-serif;"&gt;Pre-requisite:&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; You need to have a &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;sqljdbc4.jar&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; file placed in the &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;jdev/lib/&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;folder&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;. It can be downloaded from &lt;a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a737000d-68d0-4531-b65d-da0f2a735707"&gt;this&lt;/a&gt;&amp;nbsp;&amp;nbsp;(1033\sqljdbc_3.0.1301.101_enu.tar.gz)&amp;nbsp;path and extracted to get &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;sqljdbc4.jar&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;. Finally it needs to be at &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;jdev/lib&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; location.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;1. Go to New Database Connection and create a Database Connection by providing all the required details. Remember to select &lt;span class="Apple-style-span" style="color: blue;"&gt;SQLServer &lt;/span&gt;as &lt;span class="Apple-style-span" style="color: blue;"&gt;Connection Type&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;2. In the Library section click Browse and add the Library entry as shown below. &lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh6.googleusercontent.com/-ykMurtVWftY/TW-IIAiqBJI/AAAAAAAAASU/lKjOfnVOPRc/s1600/Add+New+Entry.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="250" src="https://lh6.googleusercontent.com/-ykMurtVWftY/TW-IIAiqBJI/AAAAAAAAASU/lKjOfnVOPRc/s400/Add+New+Entry.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;3. Click on Test and it says &lt;b&gt;Success&lt;/b&gt;....&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;However, for the projects using MS SQL Server connection deployed on Weblogic server, some Weblogic and MS SQL Server configurations also need to be done that can be found &lt;a href="http://neeraj-soa-tips.blogspot.com/2011/05/weblogic-and-ms-sql-configurations-to.html"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-4410453280187857391?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/4410453280187857391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2011/03/how-to-connect-to-mysql-server-through.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/4410453280187857391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/4410453280187857391'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2011/03/how-to-connect-to-mysql-server-through.html' title='How to connect to MS SQL Server through Jdeveloper 11.1.1.3'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh6.googleusercontent.com/-ykMurtVWftY/TW-IIAiqBJI/AAAAAAAAASU/lKjOfnVOPRc/s72-c/Add+New+Entry.JPG' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-8828433121227434052</id><published>2010-11-28T02:43:00.000-08:00</published><updated>2010-11-28T02:43:18.411-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='String Functions'/><category scheme='http://www.blogger.com/atom/ns#' term='Validations'/><category scheme='http://www.blogger.com/atom/ns#' term='Regular Expressions'/><category scheme='http://www.blogger.com/atom/ns#' term='BPEL'/><title type='text'>Validating incoming String of Date format using Regular Expression</title><content type='html'>&lt;div class="MsoNormal"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma;"&gt;I was recently trying to restrict the format of the incoming variable so as to adhere it to the date format like &lt;/span&gt;&lt;b style="font-family: Tahoma;"&gt;27-Nov-2010 04:17:37 PM&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma;"&gt;. Well, this had to be pretty simple by using the &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;xp20:matches&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma;"&gt; function that can be used to match a string pattern against a regular expression. I used my function as &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: Tahoma; font-size: x-small;"&gt;&lt;span style="font-family: Tahoma; font-size: 10.0pt; mso-bidi-font-family: Arial;"&gt;&lt;b&gt;xp20:matches(&lt;/b&gt;&lt;span class="Apple-style-span" style="color: #b45f06;"&gt;bpws:getVariableData('inputVariable','payload','/ns3:PropertyDetails/ns3:PropertyValueToUpdate')&lt;/span&gt;, &lt;span class="Apple-style-span" style="color: #674ea7;"&gt;'^(0[1-9]|[12][0-9]|3[01])[- /.](Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[- /.](19|20)\d\d (0[1-9]|1[012])[:](0[1-9]|[12345][0-9])[:](0[1-9]|[12345][0-9]) (AM|PM)$'&lt;/span&gt;&lt;b&gt;)&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Tahoma; font-size: 10pt;"&gt;Ooops. This was not working and but telling me &lt;b&gt;Internal Xpath Error&lt;/b&gt;. Well the reason was that &lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;getVariableData()&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Tahoma; font-size: 10pt;"&gt; function gets the data from the XML schema element in &lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Object &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Tahoma; font-size: 10pt;"&gt;format rather than in &lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Tahoma; font-size: 10pt;"&gt;. Finally, all I did was that I used the &lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;string()&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Tahoma; font-size: 10pt;"&gt; function to convert the object from variable data and it worked without any issue.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: Tahoma; font-size: x-small;"&gt;&lt;span style="font-family: Tahoma; font-size: 10.0pt; mso-bidi-font-family: Arial;"&gt;&lt;b&gt;xp20:matches(&lt;/b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;string(&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #b45f06;"&gt;bpws:getVariableData('inputVariable','payload','/ns3:PropertyDetails/ns3:PropertyValueToUpdate')&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;)&lt;/span&gt;, &lt;span class="Apple-style-span" style="color: #134f5c;"&gt;'^(0[1-9]|[12][0-9]|3[01])[- /.](Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[- /.](19|20)\d\d (0[1-9]|1[012])[:](0[1-9]|[12345][0-9])[:](0[1-9]|[12345][0-9]) (AM|PM)$'&lt;/span&gt;&lt;b&gt;)&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: Tahoma; font-size: x-small;"&gt;&lt;span style="font-family: Tahoma; font-size: 10.0pt; mso-bidi-font-family: Arial;"&gt;Just a small learning…&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-8828433121227434052?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/8828433121227434052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/11/validating-incoming-string-of-date.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/8828433121227434052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/8828433121227434052'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/11/validating-incoming-string-of-date.html' title='Validating incoming String of Date format using Regular Expression'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-8643678941369203797</id><published>2010-11-27T13:53:00.000-08:00</published><updated>2011-03-28T04:07:39.686-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AIA'/><title type='text'>Provider ABCS not able to read the data while transform, Default Part Name not correct</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;I started working on AIA 3.0 with SOA 11.1.3.3 and developed a simple Worker interface that fetches the data from a table and transfers it to Provider ABCS.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_3yudTWgGlSg/TPF5t9FSauI/AAAAAAAAARI/HQs1u9kcuKc/s1600/AIA+Worker+Interface.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;img border="0" height="132" src="http://1.bp.blogspot.com/_3yudTWgGlSg/TPF5t9FSauI/AAAAAAAAARI/HQs1u9kcuKc/s400/AIA+Worker+Interface.JPG" width="400" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;But while running it, I faced the 2 errors.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;The first &lt;a href="http://forums.oracle.com/forums/message.jspa?messageID=9116612"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;error&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;that I faced was at the time of compilation. Well, that was seemingly a bug which was worked around. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Later, when I was testing the process, it behaved strange in a way that the all records travelled till Provider ABCS &lt;b&gt;Receive&lt;/b&gt; activity properly but did not get &lt;b&gt;Transformed&lt;/b&gt;. The &lt;b&gt;Transform &lt;/b&gt;activity payload looked empty as shown below.&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="t"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Invoke_WriteAllWorkersFile_InputVariable&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="m"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="t"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;part&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&lt;span class="t"&gt;name&lt;/span&gt;&lt;span class="m"&gt;="&lt;/span&gt;&lt;b&gt;&lt;span style="font-weight: bold;"&gt;XxbbIntgWorkersCollection&lt;/span&gt;&lt;/b&gt;&lt;span class="m"&gt;"&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;XxbbIntgWorkersCollection&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="m"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="m"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="t"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;part&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="m"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="m"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="t"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Invoke_WriteAllWorkersFile_InputVariable&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;I tried various things for this. But later found that the problem was with Provider ABCS. While constructing the PABCS using service constructor, it created the &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;SyncWorkerProvABCSImpl.WSDL (&amp;lt;ProjectName.WSDL&amp;gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; message part as &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;message name="SyncWorkerReqMsg"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;part name="SyncWorkerEBM" &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;element="eboebo:SyncWorkerListEBM"/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;/message&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;However, looking at the transformation I noticed that actual data is coming into the part with name &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;SyncWorkerListEBM &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;instead of &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SyncWorkerEBM&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;. Hence as my transform by default was trying to access the data from the &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SyncWorkerEBM &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;part, it was not getting any data resulting in empty transformation output variable. I changed the above code as following and it worked like a charm. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;lt;message name="SyncWorkerReqMsg"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;part name="SyncWorkerListEBM"&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; element="eboebo:SyncWorkerListEBM"/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;/message&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;The same has been raised to Oracle but till they come up with something, we need not stop. Let’s be going…&lt;/span&gt;&lt;span class="Apple-style-span" style="color: navy; font-family: Tahoma; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&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/5083674265912730417-8643678941369203797?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/8643678941369203797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/11/syncworkerlist-provider-abcs-not-able.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/8643678941369203797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/8643678941369203797'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/11/syncworkerlist-provider-abcs-not-able.html' title='Provider ABCS not able to read the data while transform, Default Part Name not correct'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3yudTWgGlSg/TPF5t9FSauI/AAAAAAAAARI/HQs1u9kcuKc/s72-c/AIA+Worker+Interface.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-6212165492856401912</id><published>2010-08-10T10:32:00.000-07:00</published><updated>2010-08-10T10:32:40.374-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fusion Middleware Console'/><title type='text'>Oracle Fusion Middleware Console not showing up properly : Screen Reader Setting</title><content type='html'>&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Yesterday I was looking at my friend’s FMW and it was not displaying the details properly. It showed something like below with radio buttons and partially visible table content.&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_3yudTWgGlSg/TGGKiOihaGI/AAAAAAAAAQQ/KeohM6WiJww/s1600/FMW+Screen.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;img border="0" height="122" src="http://1.bp.blogspot.com/_3yudTWgGlSg/TGGKiOihaGI/AAAAAAAAAQQ/KeohM6WiJww/s400/FMW+Screen.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Well, this is not any problem but just an accessibility option. The solution is pretty simple. To correct this, go to &lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;Oracle FMW Console &amp;gt; Setup &amp;gt; &amp;nbsp;My Preferences Menu Item &amp;gt; Accessibility Menu Item &amp;gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="x2e"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Uncheck&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="x2e"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;I use a screen reader&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;. This will solve the problem.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-6212165492856401912?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/6212165492856401912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/08/oracle-fusion-middleware-console-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/6212165492856401912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/6212165492856401912'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/08/oracle-fusion-middleware-console-not.html' title='Oracle Fusion Middleware Console not showing up properly : Screen Reader Setting'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3yudTWgGlSg/TGGKiOihaGI/AAAAAAAAAQQ/KeohM6WiJww/s72-c/FMW+Screen.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-8275675517542151042</id><published>2010-07-28T23:19:00.000-07:00</published><updated>2010-11-16T10:43:21.345-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AIA 3.0 Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='AIA'/><title type='text'>How to install AIA 3.0 from scratch? AIA 3.0 Installation : Important Tips and Tricks...</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Undoubtedly, it was a little challenge while trying to install AIA 3.0. Firstly the long&amp;nbsp;Installation&amp;nbsp;guide and very generic error descriptions &amp;nbsp;leave you nothing but perplexed, secondly, my OS being MS Vista adds fuel to the fire. But,&amp;nbsp;despite all the odds,&amp;nbsp;what matters most is that AIA 3.0 runs&amp;nbsp;successfully&amp;nbsp;on my Laptop (Neeraj-PC). However, just to save the time of world's greatest developers, I'm writing this post to give some of the tips and tricks that I found while installing. Hope they find it useful.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Note: For OS other than Windows the commands will change&amp;nbsp;accordingly.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Processor :&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; Intel Core 2 Duo 2.00 GHz&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;RAM : &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;3 GB&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;OS : &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Microsoft Windows Vista Home Premium (32 bits)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Below are the steps that I followed to install AIA&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;b&gt;Install Oracle Database 11g (11.2.0.1.0)&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.oracle.com/technology/software/products/database/index.html"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Download &lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;the Oracle database&amp;nbsp;installable&amp;nbsp;as zip files and extract them to a &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;single &lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;directory. Make sure when you start the&amp;nbsp;installation, there is only &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;one &lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;folder having all the contents of both the zips. The easy way is multi-select both the zips and say &lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Extract to some folder&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Proceed with the steps. I chose &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Desktop Class&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;, &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Enterprise Edition &lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;and did not&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;install Loopback Adapter.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Proceed with the steps and after&amp;nbsp;successful&amp;nbsp;installation check the Enterprise Manager console using &lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;http://&amp;lt;host_name&amp;gt;:&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-style: normal;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;&amp;lt;&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;b&gt;port_number&amp;gt;/em&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; as in my case &lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;http://Neeraj-PC:1158/em&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Create schemas using the Repository Creation Utility (rcu)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;While creating the schemas, I gave all the schemas the same password. However, you can opt to give different passwords as desired.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;b&gt;Install Weblogic server 11g R1 (10.3.2)&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="ohttp://www.oracle.com/technology/software/products/ias/htdocs/wls_main.html"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Download &lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;the server installable and &lt;/span&gt;&lt;a href="http://download.oracle.com/docs/cd/E15523_01/wls.htm"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;installation guide&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; and follow the guide to install the WLS.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;I installed using Sun JDK without any Loopback Adapter&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Install Oracle SOA Suite (11.1.1.2.0)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Study the &lt;/span&gt;&lt;a href="http://www.oracle.com/technology/software/products/ias/files/fusion_requirements.htm"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;software and hardware requirements&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; before installing and also gather the&amp;nbsp;necessary&amp;nbsp;supporting documents as &lt;/span&gt;&lt;a href="http://download.oracle.com/docs/cd/E15523_01/index.htm"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Installation guide&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;,&amp;nbsp;Administration&amp;nbsp;guides etc.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Follow the installation guide and install the WLS. After installation do not wonder if you are not able to see the soa_server1 folder under &amp;lt;Middleware&amp;gt;/user_projects/domains directory. It will come when you start your managed server first time using the startManagedWeblogic soa_server1.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;b&gt;Finally Installing the AIA 3.0&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Go through the &lt;a href="http://www.oracle.com/technology/software/products/ias/files/fusion_certification.html"&gt;Hardware-Software requirements&lt;/a&gt; carefully and download the AIA installable from &lt;a href="http://edelivery.oracle.com/"&gt;Oracle e-delivery&lt;/a&gt; website. Also download the following supporting documents from Oracle &lt;a href="https://support.oracle.com/"&gt;Support&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Oracle Application Integration Architecture Foundation Pack 11g Release 1 (11.1.1.2.0): Installation Guide - [Doc No :E17949-01]&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-weight: normal; line-height: 115%;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Known Issues and Workarounds for Oracle Application Integration Architecture Foundation Pack 11gR1 [Note ID : 1087180.1]&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;While following the installation guide and preparing for installation, pay attention to the steps mentioned below. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;Configuring JVM Parameters -&lt;/b&gt;&amp;nbsp;Instead of modifying the file &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;setDomainEnv.cmd&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;, make the change in the &lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;setSOADomainEnv.cmd&lt;/span&gt;&lt;/span&gt; as this file seems to override all the changes in the other domain files. Set the if condition as described.&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (&amp;nbsp;&amp;nbsp; &amp;nbsp;set USER_MEM_ARGS=%PORT_MEM_ARGS%) else (&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;set&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt; &lt;/span&gt;USER_MEM_ARGS=-Xms1024&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;b&gt;m&lt;/b&gt;&lt;/span&gt; -Xmx1024&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;m&lt;/span&gt;&lt;/b&gt; -XX:PermSize=512m XX:MaxPermSize=512m&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;Enabling remote JDBC Connection -&lt;/b&gt; Make this&amp;nbsp;argument&amp;nbsp;as &lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;true &lt;/span&gt;&lt;/span&gt;in both &lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;.cmd&lt;/span&gt;&lt;/span&gt; and &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;.sh&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; files to avoid any confusions.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;Setting up Timezone -&lt;/b&gt; Firstly verify the current timezone in the database from the &lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;sqlprompt(by running sqlplus.exe)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;using &lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;SELECT SESSIONTIMEZONE FROM DUAL;&lt;/span&gt;&lt;/span&gt;.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;Then you can set it to whatever you want using &lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;ALTER SESSION SET TIME_ZONE = ‘EST’;&lt;/span&gt;&lt;/span&gt;. Don’t close this sql prompt window till AIA installation is complete as it is maintained only for a session. Specify the same time zone in the weblogic managed server start too as given in the guide. Don’t specify any timezones like &lt;span class="Apple-style-span" style="color: red;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;+5:30&lt;/span&gt;&lt;/span&gt; to avoid any errors.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;Configure your node manager&lt;/b&gt; properly and Start your SOA server using the Node Manager before installation. Learn &lt;a href="http://neeraj-soa-tips.blogspot.com/2010/06/starting-admin-and-managed-servers.html"&gt;How&lt;/a&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;Go ahead with your AIA installation using the AIA Installer. While installation, at the time of &lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Deployment Configuration&lt;/span&gt;&lt;/span&gt; step it will say sometimes as &lt;span class="Apple-style-span" style="color: red;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Failed &lt;/span&gt;&lt;/span&gt;due to &lt;i&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Unable to reserve space in Heap&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;. Click &lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Retry&lt;/span&gt;&lt;/span&gt;. Close all open programs and make sure there is enough memory available as specified in the &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;USER_MEM_ARGS&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;. It should solve the error next time.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;After the installation is successful, go to the WLS console and set the user permissions as shown below.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_3yudTWgGlSg/TFEcdcvGYnI/AAAAAAAAAQI/6GDbsh5EqTo/s1600/WLS+User+Permissions.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_3yudTWgGlSg/TFEcdcvGYnI/AAAAAAAAAQI/6GDbsh5EqTo/s320/WLS+User+Permissions.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;li&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;Verify the installation from the AIA Console&amp;nbsp;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;http://&amp;lt;localhost:soa_server_port_number&amp;gt;/AIA&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-8275675517542151042?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/8275675517542151042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/07/how-to-install-aia-30-from-scratch.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/8275675517542151042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/8275675517542151042'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/07/how-to-install-aia-30-from-scratch.html' title='How to install AIA 3.0 from scratch? AIA 3.0 Installation : Important Tips and Tricks...'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3yudTWgGlSg/TFEcdcvGYnI/AAAAAAAAAQI/6GDbsh5EqTo/s72-c/WLS+User+Permissions.jpg' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-9107470181964074048</id><published>2010-06-30T21:43:00.000-07:00</published><updated>2010-06-30T21:43:10.643-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Node Manager'/><category scheme='http://www.blogger.com/atom/ns#' term='Weblogic'/><category scheme='http://www.blogger.com/atom/ns#' term='AIA'/><title type='text'>Starting Admin and Managed Servers using Node Manager and WLST</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Node Manager is a&amp;nbsp;WebLogic Server utility, independent of domains, that enables you to start, shut down, and restart&amp;nbsp;Administration Server and Managed Server instances from a remote location. You can further use the Node Manager to control&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Administration Server and Managed Server&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;from a local location also as I used in my case. Below post explains how you can start your Admin and Managed servers from the Node Manager.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;i&gt;Note : I have used Windows Vista OS and Oracle Database 11.2. All the commands for Linux/Unix will change accordingly.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Please follow the following steps for the same.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;1.) Firstly &lt;a href="http://neeraj-soa-tips.blogspot.com/2010/06/part-1-how-to-configure-node-manager-to.html"&gt;configure &lt;/a&gt;the Node Manager&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;2.) &lt;a href="http://neeraj-soa-tips.blogspot.com/2010/06/part-2-how-to-start-node-manager-and.html"&gt;Verify &lt;/a&gt;the Node Manager&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;3.) Once you verify and complete the above steps, I recommend, stop and close everything open till now.&amp;nbsp;Then follow the following steps.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Start your Node Manager using &lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;lt;Middleware_Home&amp;gt;\wlserver_10.3\server\bin\startNodeManager.cmd&lt;/span&gt;&lt;/span&gt; command from the command prompt.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Open a fresh command prompt window and run &lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;WLST.cmd&lt;/span&gt;&lt;/span&gt; from &lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;lt;Middleware_Home&amp;gt;\wlserver_10.3\common\bin\&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;WLST.cmd&lt;/span&gt;&lt;/span&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Next task is to connect to the Node Manager using &lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;nmConnect()&lt;/span&gt;&lt;/span&gt;. In the WLST console window type &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;nmConnect('weblogic','welcome1','neeraj-pc','5556','soa_domain')&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Once connected to Node Manager the command prompt will change.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Now to start your Admin server type nmStart(&lt;admin name="" server=""&gt;) e.g. &lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;nmStart('AdminServer')&lt;/span&gt;&lt;/span&gt;&lt;/admin&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;To start your managed server type nmStart(&lt;managed name="" server=""&gt;) e.g. &lt;/managed&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;nmStart('soa_server1')&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;If it gives the success notification, you are done. Also, you can verify the same from the Weblogic Console.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-9107470181964074048?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/9107470181964074048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/06/starting-admin-and-managed-servers.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/9107470181964074048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/9107470181964074048'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/06/starting-admin-and-managed-servers.html' title='Starting Admin and Managed Servers using Node Manager and WLST'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-7641437207368293302</id><published>2010-06-30T09:08:00.000-07:00</published><updated>2010-06-30T09:08:18.439-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Node Manager'/><category scheme='http://www.blogger.com/atom/ns#' term='Weblogic'/><category scheme='http://www.blogger.com/atom/ns#' term='AIA'/><title type='text'>Part 2 : How to start the Node manager and Verify that it is running properly</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;After the Node Manager is properly configured, you can start the Node Manager by following the below mentioned steps.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Open a new command window and go to &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;lt;Middleware_Home&amp;gt;\wlserver_10.3\server\bin&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; using &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;cd &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;command. Type &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;startNodeManager &lt;listenaddress&gt; &lt;listenport&gt;&lt;/listenport&gt;&lt;/listenaddress&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; and press Enter.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;It starts your Node Manager and gives the output as shown in below image.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_3yudTWgGlSg/TCl9I06pwDI/AAAAAAAAAP0/bZsJKYvmVI8/s1600/Node+Manager+Start.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;img border="0" height="290" src="http://4.bp.blogspot.com/_3yudTWgGlSg/TCl9I06pwDI/AAAAAAAAAP0/bZsJKYvmVI8/s320/Node+Manager+Start.jpg" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;To verify if the Node Manager is running&amp;nbsp;successfully, start your Admin Server if it is not Running and go to Weblogic Server Console.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Navigate to &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Environment --&amp;gt; Machines --&amp;gt; LocalMachine --&amp;gt; Monitoring Tab --&amp;gt; Node Manager Status&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;. It should display Reachable. See below image.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_3yudTWgGlSg/TCl-KhBhU4I/AAAAAAAAAP8/1MrkwTjmo2w/s1600/Node+Manager+Reachable.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;img border="0" height="201" src="http://3.bp.blogspot.com/_3yudTWgGlSg/TCl-KhBhU4I/AAAAAAAAAP8/1MrkwTjmo2w/s320/Node+Manager+Reachable.jpg" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Hence the Node Manager is running properly.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-7641437207368293302?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/7641437207368293302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/06/part-2-how-to-start-node-manager-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/7641437207368293302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/7641437207368293302'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/06/part-2-how-to-start-node-manager-and.html' title='Part 2 : How to start the Node manager and Verify that it is running properly'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3yudTWgGlSg/TCl9I06pwDI/AAAAAAAAAP0/bZsJKYvmVI8/s72-c/Node+Manager+Start.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-1167111046348037985</id><published>2010-06-30T09:07:00.000-07:00</published><updated>2010-07-25T04:20:26.316-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Node Manager'/><category scheme='http://www.blogger.com/atom/ns#' term='Weblogic'/><title type='text'>Part 1: How to configure the Node Manager to start Admin and Managed Servers</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Before you can use the Node Manager utility, you need to configure/verify the Node Manager.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;For this start the Admin Server as usual by running the&amp;nbsp;&lt;/span&gt;&lt;middleware_home&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Middleware_home&amp;gt;\user_projects\domains\soa_domain\startWebLogic.cmd&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;.&lt;/span&gt;&lt;/middleware_home&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Go to Weblogic Console and navigate to &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Machines--&amp;gt;LocalMachine--&amp;gt;Configuration Tab--&amp;gt;Node Manager Tab&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;. Specify the &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;ListenAddress &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;(where Node Manager will run) and &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;ListenPort &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;as per you installation. By default the port is &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;5556&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;. Be sure to provide the exact URL/Host name in &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;ListenAddress &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;as &lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;localhost &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;will disallow starting the servers from remote location. See below image.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_3yudTWgGlSg/TClb0Bx689I/AAAAAAAAAPs/zT9c7kNNazg/s1600/Node+Manager+Configuration.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;img border="0" height="200" src="http://2.bp.blogspot.com/_3yudTWgGlSg/TClb0Bx689I/AAAAAAAAAPs/zT9c7kNNazg/s320/Node+Manager+Configuration.jpg" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 17px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Go to&amp;nbsp;&lt;/span&gt;&lt;middleware_home&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Middleware_home&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;\wlserver_10.3\common\nodemanager\nodemanager.properties&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;. Set&lt;/span&gt;&lt;span style="line-height: 115%;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="line-height: 115%;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;StartScriptEnabled=true&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/middleware_home&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Start WLST from&amp;nbsp;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Middleware_home&amp;gt;\&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;wlserver_10.3\common\bin\wlst.cmd&lt;/span&gt;&lt;/span&gt; in a separate command prompt window. You can double click on the &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;wlst.cmd&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; also to start WLST.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Once WLST starts, connect to Admin Server from the WLST console. To connect type the &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;connect()&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; command on the WLST console and press &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Enter&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;. Accept defaults or provide inputs as required. Once it connects successfully, the WLST prompt will change to &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;wls:/mydomain/serverConfig&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Now type&amp;nbsp;&lt;/span&gt;&lt;span style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;nmEnroll(&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Middleware_home&amp;gt;\user_projects\domains\soa_domain)&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;. This command enrolls the current machine with the Node Manager and creates some properties file (&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;nm_password.properties,SerializedSystemIni.dat&lt;/span&gt;).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;&lt;span style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;If the message displays as "&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Successfully enrolled this machine with the domain directory at&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;", Enrollment is successful.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; line-height: 18px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;&lt;span style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Exit from the WLST console using the &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;exit()&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; command and shut down your Admin Server and Close the Browser Console window.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;&lt;span style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Node Manager is configured. Further, to start the Admin and Managed Servers from this Node Manager, refer to &lt;a href="http://neeraj-soa-tips.blogspot.com/2010/06/starting-admin-and-managed-servers.html"&gt;this&lt;/a&gt;&amp;nbsp;post.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;middleware_home&gt;&lt;/middleware_home&gt;&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/5083674265912730417-1167111046348037985?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/1167111046348037985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/06/part-1-how-to-configure-node-manager-to.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/1167111046348037985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/1167111046348037985'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/06/part-1-how-to-configure-node-manager-to.html' title='Part 1: How to configure the Node Manager to start Admin and Managed Servers'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3yudTWgGlSg/TClb0Bx689I/AAAAAAAAAPs/zT9c7kNNazg/s72-c/Node+Manager+Configuration.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-4500868347200262089</id><published>2010-04-29T11:06:00.000-07:00</published><updated>2010-04-29T11:08:46.093-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Jdeveloper 10g'/><category scheme='http://www.blogger.com/atom/ns#' term='Validations'/><category scheme='http://www.blogger.com/atom/ns#' term='Regular Expressions'/><category scheme='http://www.blogger.com/atom/ns#' term='ADF 10g'/><title type='text'>Client side Error Handling with validateRegExp on Decimal fields</title><content type='html'>There are undoubtedly more than one ways of handling the errors gracefully for your ADF inputText component. One of which is at the Model Layer using Validation at the Entity Objects the details of which can be seen &lt;a href="http://download.oracle.com/docs/cd/B32110_01/web.1013/b25947/bcentities.htm#sm0152"&gt;here&lt;/a&gt;.&lt;br /&gt;However, in some of the cases where we have an editable table dropped on the page and we need to provide the validation on all its fields, some of which are decimals, the various ways would be to use the various validators and converters as described &lt;a href="http://download.oracle.com/docs/cd/B32110_01/web.1013/b25947/web_val.htm#CIHCGEGI"&gt;here&lt;/a&gt;. However, this post describes 2 ways to handle the errors on the Decimal fields.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;Note : &lt;/i&gt;&lt;/b&gt;&lt;i&gt;To demonstrate the use of Decimal fields I've created a column Weight in the Employees table. Further I've created an Employees Entity Object, View Object and Application Module.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_3yudTWgGlSg/S9nDRaQjd8I/AAAAAAAAAKQ/vHDHGDe3nVE/s1600/NewDecimalColumn.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="158" src="http://4.bp.blogspot.com/_3yudTWgGlSg/S9nDRaQjd8I/AAAAAAAAAKQ/vHDHGDe3nVE/s320/NewDecimalColumn.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;i&gt;I also created a jspx page to Create/Update an Employee&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_3yudTWgGlSg/S9nD6ylsc0I/AAAAAAAAAKY/qfbZCsd31l4/s1600/EmployeePage.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="115" src="http://3.bp.blogspot.com/_3yudTWgGlSg/S9nD6ylsc0I/AAAAAAAAAKY/qfbZCsd31l4/s320/EmployeePage.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="background-color: yellow;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: yellow;"&gt;Using the Validate Double Range :&lt;/span&gt;&lt;br /&gt;Drag the &lt;b&gt;validateDoubleRange &lt;/b&gt;validator from the&amp;nbsp;Component Pallette under the&amp;nbsp;&lt;b&gt;JSF Core&lt;/b&gt; Menu and rop it under the inputText component. Remove ConvertNumber if any present. Just specify the range here as shown below.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_3yudTWgGlSg/S9nFC_FDFrI/AAAAAAAAAKg/ngS4g9Fq9t0/s1600/ValidateDoubleRange.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="120" src="http://2.bp.blogspot.com/_3yudTWgGlSg/S9nFC_FDFrI/AAAAAAAAAKg/ngS4g9Fq9t0/s320/ValidateDoubleRange.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;At run time&amp;nbsp;whenever&amp;nbsp;an error occurs it shows the result in the following format.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_3yudTWgGlSg/S9nFdW0choI/AAAAAAAAAKo/KGEEXK4XzNU/s1600/ValidateRangeErrorDisplay.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="173" src="http://1.bp.blogspot.com/_3yudTWgGlSg/S9nFdW0choI/AAAAAAAAAKo/KGEEXK4XzNU/s320/ValidateRangeErrorDisplay.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;However, the limitations of using this approach are :&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;You can not customize the message.&lt;/li&gt;&lt;li&gt;The Error messages are displayed after Submitting the page which involves a server call.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&amp;nbsp;Many times customers want client side validation messages in JavaScript alert boxes. The second approach demonstrates the same.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: yellow;"&gt;Using&amp;nbsp;validateRegExp :&lt;/span&gt;&lt;br /&gt;Validate Regular expression is a very efficient means to check for any format of the &lt;b&gt;STRINGS&lt;/b&gt;. But unfortunately it can not be used for &lt;b&gt;Numerical &lt;/b&gt;or &lt;b&gt;Decimal &lt;/b&gt;data types. Even if you try to drop a&amp;nbsp;validateRegExp validator under inputText, it works properly in case of errors but in case of correct value it throws an exception.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_3yudTWgGlSg/S9nHiff839I/AAAAAAAAAKw/nufO94zwjic/s1600/RegularExpression.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="166" src="http://1.bp.blogspot.com/_3yudTWgGlSg/S9nHiff839I/AAAAAAAAAKw/nufO94zwjic/s320/RegularExpression.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;500 Internal Server Error&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;java.lang.IllegalArgumentException: 'value' is not of type java.lang.String.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;at oracle.adf.view.faces.validator.ValidatorUtils.assertIsString(ValidatorUtils.java:36)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;at oracle.adf.view.faces.validator.RegExpValidator.validate(RegExpValidator.java:103)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;at oracle.adf.view.faces.component.UIXEditableValue.validateValue(UIXEditableValue.java:378)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;at oracle.adf.view.faces.component.UIXEditableValue.validate(UIXEditableValue.java:206)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;at oracle.adf.view.faces.component.UIXEditableValue._executeValidate(UIXEditableValue.java:522)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;at oracle.adf.view.faces.component.UIXEditableValue.processValidators(UIXEditableValue.java:302)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;at oracle.adf.view.faces.component.ChildLoop$Validate.process(ChildLoop.java:67)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;at oracle.adf.view.faces.component.ChildLoop.runAlways(ChildLoop.java:39)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;at oracle.adf.view.faces.component.ChildLoop.runAlways(ChildLoop.java:30)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;at oracle.adf.view.faces.component.UIXColumn.processValidators(UIXColumn.java:70)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;at oracle.adf.view.faces.component.UIXCollection.processComponent(UIXCollection.java:822)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;at oracle.adf.view.faces.component.TableUtils$3.process(TableUtils.java:256)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;at ...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To remove this error, just change the data type of your attribute to &lt;b&gt;String &lt;/b&gt;in the Entity Object as shown under. Please note the same Entity Object can be used for other View Objects also. Hence make sure that all the View Objects are in tact.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_3yudTWgGlSg/S9nIuM-RiYI/AAAAAAAAAK4/vkssgKUfnXY/s1600/ChangedDecimalField.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="229" src="http://1.bp.blogspot.com/_3yudTWgGlSg/S9nIuM-RiYI/AAAAAAAAAK4/vkssgKUfnXY/s320/ChangedDecimalField.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;So everything is set. Just run the page now and see the output.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_3yudTWgGlSg/S9nJFcFI7XI/AAAAAAAAALA/EoZ1rdqhRIU/s1600/RegularExpressionErrorDisplay.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_3yudTWgGlSg/S9nJFcFI7XI/AAAAAAAAALA/EoZ1rdqhRIU/s320/RegularExpressionErrorDisplay.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-4500868347200262089?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/4500868347200262089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/04/client-side-error-handling-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/4500868347200262089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/4500868347200262089'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/04/client-side-error-handling-with.html' title='Client side Error Handling with validateRegExp on Decimal fields'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3yudTWgGlSg/S9nDRaQjd8I/AAAAAAAAAKQ/vHDHGDe3nVE/s72-c/NewDecimalColumn.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-7765373655804033668</id><published>2010-04-02T05:40:00.000-07:00</published><updated>2010-04-02T05:43:59.005-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Jdeveloper 10g'/><category scheme='http://www.blogger.com/atom/ns#' term='cache'/><category scheme='http://www.blogger.com/atom/ns#' term='USE_APPLICATION_VIEW_CACHE'/><title type='text'>no cache policy header, USE_APPLICATION_VIEW_CACHE not working properly</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;Problem :&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;When I try to open a dialog box from my &amp;nbsp;page, I get the following error.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;Apr 2, 2010 12:24:22 PM oracle.webcache.adf.config.AFCConfigFactory getConfig&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;INFO: ADF Config did not find the AFC config&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Apr 2, 2010 12:24:22 PM oracle.webcache.adf.config.AFCConfigFactory getConfig&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;SEVERE: Error in config : Cannot locate config file. Using default values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Apr 2, 2010 12:24:22 PM oracle.webcache.adf.config.AFCConfigFactory getConfig&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;SEVERE: Error in config. Using default values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Apr 2, 2010 12:24:22 PM oracle.webcache.adf.filter.PageCachingProcessor getResponseFromCache&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;INFO: page (__ADFv__) cache miss&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Apr 2, 2010 12:24:22 PM oracle.webcache.adf.filter.PageCachingProcessor isResponseCacheable&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;INFO: response not cacheable - no cache policy header&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Apr 2, 2010 12:24:22 PM oracle.webcache.adf.filter.PageCachingProcessor getResponseFromCache&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;INFO: page (PPAPListDialog.jspx) cache miss&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Apr 2, 2010 12:24:22 PM aam.tooling.managedbeans.LoggedUserInfo &lt;init&gt;&lt;/init&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;INFO: In Logged User Info Bean...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Apr 2, 2010 12:24:22 PM oracle.webcache.adf.filter.PageCachingProcessor isResponseCacheable&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;INFO: response not cacheable - no cache policy header&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Due to this error, the following things happen.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;I keep on getting the Row Currency Error on navigating time and again to my dialog pages.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;I have an attachment dialog with command link to save the attachment on user's system. It often refers to the firstly clicked attachment always even when I have clicked on the different link this time.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;It does not update the dialog view properly. Sometimes newly added rows do not get displayed there.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;b&gt;Solution :&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;After a long study it was clear that it has something to do with the cache. But I just wondered where. Finally it was &amp;nbsp;&lt;b&gt;USE_APPLICATION_VIEW_CACHE&lt;/b&gt; in the &lt;b&gt;web.xml&lt;/b&gt; file. I set it to &lt;b&gt;false &lt;/b&gt;and all the above mentioned errors went.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;context-param&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;param-name&amp;gt;oracle.adf.view.faces.USE_APPLICATION_VIEW_CACHE&amp;lt;/param-name&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;param-value&amp;gt;&lt;b&gt;false&lt;/b&gt;&amp;lt;/param-value&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/context-param&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Although more information about&amp;nbsp;USE_APPLICATION_VIEW_CACHE&amp;nbsp;&amp;nbsp;can be found &lt;a href="http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/devguide/configuration.html#Configuring ADF Faces for Performance"&gt;here &lt;/a&gt;but there is no reference that I could make why this be causing problem in my application. But still if you face the same problem (probably when it's a day before the UAT as in my case), you can give a thought to apply this solution.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-7765373655804033668?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/7765373655804033668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/04/cache-filter-creates-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/7765373655804033668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/7765373655804033668'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/04/cache-filter-creates-problem.html' title='no cache policy header, USE_APPLICATION_VIEW_CACHE not working properly'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-1034553778060269934</id><published>2010-02-26T04:18:00.000-08:00</published><updated>2010-03-01T07:15:21.133-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Jdeveloper 10g'/><title type='text'>Can not start Jdeveloper : Unable to create instance of Java Virtual Machine</title><content type='html'>&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;I had not thought that Jdeveloper 10g may throw some error depending on my disk space even. When I tried to restart my Jdeveloper 10.1.3.3.41.57, it popped up an error message to me as shown below.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_3yudTWgGlSg/S4e7uzY34hI/AAAAAAAAAKI/WtRxSaJ1TE0/s1600-h/Jdeveloper+Start+Error.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="123" kt="true" src="http://4.bp.blogspot.com/_3yudTWgGlSg/S4e7uzY34hI/AAAAAAAAAKI/WtRxSaJ1TE0/s320/Jdeveloper+Start+Error.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;When Jdeveloper starts it tried to allocate some some heap size from the disk space. If that space is not avilable this error is popped up. &lt;/span&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;The same can be easily resolved by changing the AddVMOption parameter value to the desired value.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;Location : &lt;em&gt;&lt;strong&gt;JDEV_HOME\jdev\bin\jdev.conf&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;Parameter : &lt;strong&gt;&lt;em&gt;AddVMOption&lt;/em&gt;&lt;/strong&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;Value : &lt;strong&gt;&amp;lt;&lt;em&gt;Any valid disk space value in MB&amp;gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;em&gt;&lt;strong&gt;#&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;strong&gt;# Set the maximum heap to 512M&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;strong&gt;#&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;strong&gt;AddVMOption -Xmx1024M&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;If you have lot of available disk space it is better to have this heap size around 1024 MB to accelerate the context switching of Jdeveloper.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-1034553778060269934?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/1034553778060269934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/02/can-not-start-jdeveloper-unable-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/1034553778060269934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/1034553778060269934'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/02/can-not-start-jdeveloper-unable-to.html' title='Can not start Jdeveloper : Unable to create instance of Java Virtual Machine'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3yudTWgGlSg/S4e7uzY34hI/AAAAAAAAAKI/WtRxSaJ1TE0/s72-c/Jdeveloper+Start+Error.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-1927361938626730747</id><published>2010-01-31T06:23:00.000-08:00</published><updated>2010-01-31T06:44:57.642-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='setCurrentRowWithKey'/><category scheme='http://www.blogger.com/atom/ns#' term='ADF 10g'/><title type='text'>Setting the current row of a view object with custom key programmatically</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;I came across a use-case where I needed to set the key of a View Object manually through the backing bean. Usually &lt;b&gt;setCurrentRowWithKey()&lt;/b&gt; or&amp;nbsp;&lt;b&gt;setCurrentRowWithKeyValue()&lt;/b&gt; can be used to set the current row of a view object. But What if you don't know the exact key but part of it and you want to create the key yourself and set the current Row programmtically. &amp;nbsp;Well you can use the following function on click of a command button or customize it happily to put to any specific use...&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;public String setNewRowKey() {&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Get the iterator displayed on the Page&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FacesContext ctx = FacesContext.getCurrentInstance();&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Application app = ctx.getApplication();&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ValueBinding bind = app.createValueBinding("#{bindings}");&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DCIteratorBinding iter = ((DCBindingContainer) bind.getValue(ctx)).findIteratorBinding("DepartmentsEmployeeVOIterator");&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (iter == null) {&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throw new RuntimeException("Iterator not found");&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Create the key manually. It requires providing all primary keys for all&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // the Entity Objects included in the View Object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Object [] keyValues = new Object[2];&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; keyValues[0] = null; &amp;nbsp;// Any Department&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; keyValues[1] = "114"; // Employee ID&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // find all the rows matching the above criteria using the RowSetIterator.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // You can also use the same to find rows matching any key criteria.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Row [] rows = iter.getRowSetIterator().findByKey(new Key(keyValues), -1);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (rows.length &amp;gt; 0) &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // get the first row and its key and set current row of iterator with this key string&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iter.setCurrentRowWithKey(rows[0].getKey().toStringFormat(true));&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return "navigation-rule";&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-1927361938626730747?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/1927361938626730747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/01/setting-current-row-of-view-object-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/1927361938626730747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/1927361938626730747'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/01/setting-current-row-of-view-object-with.html' title='Setting the current row of a view object with custom key programmatically'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-8615964480112078473</id><published>2010-01-19T08:48:00.000-08:00</published><updated>2010-01-19T08:49:40.972-08:00</updated><title type='text'>"AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0</title><content type='html'>&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;While trying to run Application Module in Jdeveloper 10.1.3.3, I got the following error. &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:3199)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at oracle.sql.NUMBER.toString(NUMBER.java:761)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at oracle.sql.NUMBER.stringValue(NUMBER.java:2090)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at oracle.jbo.domain.Number.toString(Number.java:390)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.table.DefaultTableCellRenderer.setValue(DefaultTableCellRenderer.java:298)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.table.DefaultTableCellRenderer.getTableCellRendererComponentDefaultTableCellRenderer.java:190)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.JTable.prepareRenderer(JTable.java:3924)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2070)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1972)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1895)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.JComponent.paintComponent(JComponent.java:742)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.JComponent.paint(JComponent.java:1005)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4963)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.JComponent._paintImmediately(JComponent.java:4859)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.JComponent.paintImmediately(JComponent.java:4666)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;BC4J Tester exit code(0)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;As a basic human nature, I searched on the internet to find out that it was a bug as reported here.&lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;a href="http://forums.oracle.com/forums/thread.jspa?messageID=1617924"&gt;http://forums.oracle.com/forums/thread.jspa?messageID=1617924&lt;/a&gt;?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;But the same was fixed in Jdeveloper 10.1.3.3. Then why did it bug me now. It was then I realized that I had synchronized my Entity Object with the database. I opened one of my entity object and was wondering to see the Type of one of the attributes as String although it was a Number, something similar to this. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_3yudTWgGlSg/S1W9m1eTzhI/AAAAAAAAAJk/U4VNgmm6Z5U/s1600-h/EntityObject+DataType+Mismatch.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="284" ps="true" src="http://2.bp.blogspot.com/_3yudTWgGlSg/S1W9m1eTzhI/AAAAAAAAAJk/U4VNgmm6Z5U/s400/EntityObject+DataType+Mismatch.JPG" width="400" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;So I just modified all the Attribute types according to the ones in the database and hurrah it was working fine.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-8615964480112078473?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/8615964480112078473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/01/awt-eventqueue-0-javalangarrayindexouto.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/8615964480112078473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/8615964480112078473'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/01/awt-eventqueue-0-javalangarrayindexouto.html' title='&quot;AWT-EventQueue-0&quot; java.lang.ArrayIndexOutOfBoundsException: 0'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3yudTWgGlSg/S1W9m1eTzhI/AAAAAAAAAJk/U4VNgmm6Z5U/s72-c/EntityObject+DataType+Mismatch.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-2774794429791442567</id><published>2010-01-09T11:08:00.000-08:00</published><updated>2010-01-09T11:32:55.037-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Search'/><category scheme='http://www.blogger.com/atom/ns#' term='ADF 10g'/><title type='text'>Clear values in Search form fields</title><content type='html'>&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;I have designed a Search form to search for specific records based on search criteria. But once I have searched I want to clear the criteria fields to conduct a fresh search. There are 3 ways&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_3yudTWgGlSg/S0jYNdfnjuI/AAAAAAAAAHY/PSVxIdJ3XXc/s1600-h/Form+Example.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="71" src="http://3.bp.blogspot.com/_3yudTWgGlSg/S0jYNdfnjuI/AAAAAAAAAHY/PSVxIdJ3XXc/s320/Form+Example.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;1. Reset the bind parameters of the view objects by calling them in the bean that can be found at the below links.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;a href="http://forums.oracle.com/forums/thread.jspa?messageID=2563498#2563498"&gt;http://forums.oracle.com/forums/thread.jspa?messageID=2563498#2563498&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;a href="http://forums.oracle.com/forums/thread.jspa?messageID=1579998#1579998"&gt;http://forums.oracle.com/forums/thread.jspa?messageID=1579998#1579998&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;a href="http://radio.weblogs.com/0118231/2006/11/21.html"&gt;http://radio.weblogs.com/0118231/2006/11/21.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;a href="http://radio.weblogs.com/0118231/2006/11/21.html"&gt;&lt;/a&gt;&lt;span style="font-family: 'Times New Roman';"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;2. Use ResetButton &lt;/span&gt;&lt;af:resetbutton text="resetButton 1"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt; to reset the form parameters. But it will reset the form fields’ values to the previous search criteria parameters.&lt;/span&gt;&lt;/af:resetbutton&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span style="font-family: 'Times New Roman';"&gt;&lt;af:resetbutton text="resetButton 1"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;3. The third way originates from the user experience. According to my experience users are least concerned about the VO bind parameters being refreshed or not, but what they actually want is to clear the form instantly and preferably with no server call that means on the client-side itself. The reason for the same is that all countries/clients/users do not have very fast internet as to virtually diminish the time taken to reset the form. Hence this method came up to clear the search form using Java Script. This way might not be suitable for all the situations and also does not replace the other two mentioned above but still it is very much efficient and helpful to provide the end-users&amp;nbsp;pleasant&amp;nbsp;experience.&lt;/span&gt;&lt;/af:resetbutton&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;All you have to do is follow the below 3 steps and it is done.&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;Change your search form to &amp;lt;af:form&amp;gt; instead of &amp;lt;h:form&amp;gt;. After this the form looks like this.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="font-size: small;"&gt;&amp;lt;af:form id="searchForm"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;af:panelPage title="Clear Search Form Parameters Example"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;af:panelForm&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif; font-size: medium;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif; font-size: medium;"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;af:inputText id="&lt;/span&gt;&lt;span style="font-size: small;"&gt;firstName" value="#{bindings.TheFirstName.inputValue}" &amp;nbsp; &amp;nbsp;label="#{bindings.TheFirstName.label}" required="#{bindings.TheFirstName.mandatory}" &amp;nbsp;columns="#{bindings.TheFirstName.displayWidth}"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;af:validator binding="#{bindings.TheFirstName.validator}"/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/af:inputText&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;af:inputText id="salary" value="#{bindings.TheSalary.inputValue}" &amp;nbsp;label="#{bindings.TheSalary.label}" required="#{bindings.TheSalary.mandatory}"&amp;nbsp;columns="#{bindings.TheSalary.displayWidth}"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;af:validator binding="#{bindings.TheSalary.validator}"/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/af:inputText&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Create a Clear CommandButton as shown below and set the onClick property as clearAllFormFields() function.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="font-size: small;"&gt;&amp;lt;af:panelButtonBar&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;af:commandButton actionListener="#{bindings.ExecuteWithParams.execute}" text="Search" &amp;nbsp;disabled="#{!bindings.ExecuteWithParams.enabled}"/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;af:commandButton text="Clear" onclick="return clearAllFormFields();"/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="font-size: small;"&gt;&amp;lt;/af:panelButtonBar&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Now add the scriptlet function in the jspx page as shown below.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="font-size: small;"&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; function clearAllFormFields(){&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;//check if the object is not null. The object will be null when it is not rendered on the page &amp;nbsp;or is disabled.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;if(document.forms["searchForm"].elements["firstName"] != undefined)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; document.forms["searchForm"].elements["firstName"].value="";&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; if(document.forms["searchForm"].elements["salary"] != undefined)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; document.forms["searchForm"].elements["salary"].value="";&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; return false;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;And it is done. Now just test run the page.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5083674265912730417-2774794429791442567?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/2774794429791442567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/01/clear-values-in-search-form-fields.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/2774794429791442567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/2774794429791442567'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2010/01/clear-values-in-search-form-fields.html' title='Clear values in Search form fields'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3yudTWgGlSg/S0jYNdfnjuI/AAAAAAAAAHY/PSVxIdJ3XXc/s72-c/Form+Example.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5083674265912730417.post-8408376270503056903</id><published>2009-12-07T08:58:00.000-08:00</published><updated>2010-01-31T04:27:13.910-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='combo box'/><category scheme='http://www.blogger.com/atom/ns#' term='dynamic list value'/><category scheme='http://www.blogger.com/atom/ns#' term='ADF 11g'/><category scheme='http://www.blogger.com/atom/ns#' term='af:selectOneChoice'/><category scheme='http://www.blogger.com/atom/ns#' term='ADF 10g'/><title type='text'>af:selectOneChoice : get the combo box value for static and dynamic list</title><content type='html'>&lt;div style="text-align: left;"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span style="background-color: white;"&gt;I have seen very common requirement to process the value selected in the Single Selection Combo Box at run time. Following example tells how to get this value at runtime in the backing bean for static list and dynamic list.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;b&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-size: large;"&gt;1. Static List &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-size: large;"&gt;&lt;selectonechoice&gt;&lt;/selectonechoice&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;selectonechoice&gt;&lt;/selectonechoice&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span style="background-color: white;"&gt;Static list allows to add a fixed list of user defined values. The following image shows the static list created on the Department Id.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;a href="http://2.bp.blogspot.com/_3yudTWgGlSg/Sxq_mwcu78I/AAAAAAAAAG8/OfC19qiE138/s1600-h/Fixed+List.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" style="text-decoration: none;"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5411848574800424898" src="http://2.bp.blogspot.com/_3yudTWgGlSg/Sxq_mwcu78I/AAAAAAAAAG8/OfC19qiE138/s400/Fixed+List.jpg" style="cursor: pointer; display: block; height: 213px; margin: 0px auto 10px; text-align: center; width: 400px;" /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span style="background-color: white;"&gt;Following steps show how to get the value from this list at runtime.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span style="background-color: white;"&gt;Define the valueChangeListener Property of the &lt;b&gt;DepartmentId&lt;/b&gt; field to some method of a bean. e.g. &lt;b&gt;SelectOneChoiceValueGetter:getSelectOneChoiceValue&lt;/b&gt;&lt;b&gt;(ValueChangeEvent valueChangeEvent)&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span style="background-color: white;"&gt;Now go to the above value change listener method and add the following code&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;public void getSelectOneChoiceValue(ValueChangeEvent valueChangeEvent) {&lt;br /&gt;        // take the selectOneChoice object from the valueChangeEvenet&lt;br /&gt;        CoreSelectOneChoice selectOneChoice = (CoreSelectOneChoice)valueChangeEvent.getSource();&lt;br /&gt;        &lt;br /&gt;        //get the LOV items list object&lt;br /&gt;        List selectOnechoiceItemList = selectOneChoice.getChildren();&lt;br /&gt;&lt;br /&gt;        //traverse the list and get all the children items&lt;br /&gt;        for (int i = 0; i &amp;lt; selectOnechoiceItemList.size(); i++) {&lt;br /&gt;            if (selectOnechoiceItemList.get(i) instanceof CoreSelectItem) {&lt;br /&gt;                //get list item&lt;br /&gt;                CoreSelectItem csi = (CoreSelectItem)selectOnechoiceItemList.get(i);&lt;br /&gt;                &lt;br /&gt;                // get the new value selected and type cast it into actual class&lt;br /&gt;                oracle.jbo.domain.Number num = (Number)valueChangeEvent.getNewValue();&lt;br /&gt;&lt;br /&gt;                //check if the list value is similar to the new selected value&lt;br /&gt;                if ((((String)csi.getValue()).equals(num.toString()))) {&lt;br /&gt;                    System.out.println("Item Label :" + csi.getLabel());&lt;br /&gt;                    System.out.println("Item Value :" + csi.getValue());&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;                    // here is your value. store it or print it&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: black; font-family: 'Trebuchet MS', sans-serif; font-weight: bold; white-space: normal;"&gt;&lt;span style="font-size: large;"&gt;2. Dynamic List&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: black; font-family: 'Trebuchet MS', sans-serif; white-space: normal;"&gt;Dynamic list is created when  the number of values to be shown in the list box are not fixed. e.g. a new department can be added in an organisation in future and hence the newly added department is expected to appear in the list box at run time. In this case we create a dynamic list where the vales of the list box come&amp;nbsp;at runtime&amp;nbsp;from some master source. Following image shows the dynamic list created for the &lt;b&gt;Department Id&lt;/b&gt;&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_3yudTWgGlSg/SxrOYdJ3PLI/AAAAAAAAAHE/xTZXSatZf58/s1600-h/Dynamic+List.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5411864821777251506" src="http://1.bp.blogspot.com/_3yudTWgGlSg/SxrOYdJ3PLI/AAAAAAAAAHE/xTZXSatZf58/s400/Dynamic+List.jpg" style="cursor: pointer; height: 187px; width: 400px;" /&gt;&lt;/span&gt;&lt;/a&gt; &lt;br /&gt;&lt;div&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;In the page definition file following code gets added.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&amp;lt;list id="&lt;b&gt;EmployeesView1DepartmentId&lt;/b&gt;" IterBinding="&lt;b&gt;EmployeesView1Iterator&lt;/b&gt;" StaticList="false" ListOperMode="0" ListIter="&lt;b&gt;DepartmentsViewIterator&lt;/b&gt;"&amp;gt;&lt;br /&gt;&amp;lt;AttrNames&amp;gt;&amp;lt;Item Value="&lt;b&gt;DepartmentId&lt;/b&gt;"/&amp;gt;&amp;lt;/AttrNames&amp;gt;&lt;br /&gt;&amp;lt;ListAttrNames&amp;gt;&lt;br /&gt;&amp;lt;Item Value="&lt;b&gt;DepartmentId&lt;/b&gt;"/&amp;gt;&lt;br /&gt;&amp;lt;/ListAttrNames&amp;gt;&lt;br /&gt;&amp;lt;ListDisplayAttrNames&amp;gt;&lt;br /&gt;&amp;lt;Item Value="&lt;b&gt;DepartmentName&lt;/b&gt;"/&amp;gt;&lt;br /&gt;&amp;lt;/ListDisplayAttrNames&amp;gt;&lt;br /&gt;&amp;lt;/list&amp;gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;Following steps show how to get the value of a dynamic list at run time.&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;As defined earlier for static list, define the &lt;b&gt;valueChangeListener&lt;/b&gt; Property of the &lt;b&gt;DepartmentId&lt;/b&gt; field to some method of a bean. e.g. &lt;b&gt;DynamicListValueGetter:getDynamicListValue(ValueChangeEvent valueChangeEvent)&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;Now go to the above value change listener method and add the following code&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Note : You should have the bindings set as the managed Property in the Managed Bean.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;public void getDynamicListValue(ValueChangeEvent valueChangeEvent) {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;    // get the bindings to the current page components&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;    BindingContainer bindings = getBindings();&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;  &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;    try {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;        //get the control binding to the id of the List as written in the Page Definition file&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;        JUCtrlListBinding listBinding = (JUCtrlListBinding)bindings.get("EmployeesView1DepartmentId");&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;       // as this is a value change listener method, so the list binding contains the OLD value of the combo box and not the NEW one.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;       //The new value is available there in the valueChangeEvent as the index. So point the list binding to current selected index first&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;       listBinding.setSelectedIndex(Integer.parseInt(valueChangeEvent.getNewValue().toString()));&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;       // Now receive the selected row of the list binding&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;       Row selectedValue = (Row) listBinding.getSelectedValue();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;       //from this row you can get the desired attributes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;       System.out.println( "Item Label :" + selectedValue.getAttribute("DepartmentName"));&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;       System.out.println("Item Value :" + selectedValue.getAttribute("DepartmentId"));&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;    }&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;    catch (Exception ex) &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;       {ex.printStackTrace();}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;}&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;When you run the page and select an item from the combo box, the label and value of selected item are displayed in the Jdeveloper Console. Once you have got the values you can do whatever you want.&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&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/5083674265912730417-8408376270503056903?l=neeraj-soa-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-soa-tips.blogspot.com/feeds/8408376270503056903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2009/12/afselectonechoice-get-combo-box-value.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/8408376270503056903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5083674265912730417/posts/default/8408376270503056903'/><link rel='alternate' type='text/html' href='http://neeraj-soa-tips.blogspot.com/2009/12/afselectonechoice-get-combo-box-value.html' title='af:selectOneChoice : get the combo box value for static and dynamic list'/><author><name>Ǹѐѐгǻĵ</name><uri>http://www.blogger.com/profile/00710423700808591499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_3yudTWgGlSg/TPI0Yt0epHI/AAAAAAAAARM/RJRFu4unWNk/S220/CIMG0384.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3yudTWgGlSg/Sxq_mwcu78I/AAAAAAAAAG8/OfC19qiE138/s72-c/Fixed+List.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
