<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2981261623134351535</id><updated>2024-10-24T20:05:19.279-07:00</updated><category term="Android specific"/><category term="Eclipse IDE"/><title type='text'>Android Dev &amp;amp; Splinters</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>46</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-575912680801053864</id><published>2017-07-14T02:34:00.000-07:00</published><updated>2017-07-14T02:34:06.998-07:00</updated><title type='text'>Script_WIFI_NETSH</title><content type='html'>Come per magia sono scomparse tutte le facilities per la connessione al wifi da win.&lt;br /&gt;
&lt;br /&gt;
Alternativa comando shell netsh&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. C:\Windows\system32&amp;gt;Netsh wlan show networks&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Nome interfaccia: Connessione rete wireless&lt;br /&gt;
5 reti visibili.&lt;br /&gt;
&lt;br /&gt;
SSID 1 : Telecom-67121997&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Tipo di rete &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: Infrastruttura&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Autenticazione &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: WPA2-Personal&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Crittografia &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: CCMP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Una volta determinato il tipo di rete si crea il profilo a manona tramite gui&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaLLCRhK9YdVoleE_30D9WjpdVpNKImhLvqz865Wi8LBSaN8RnRghXrib4am29-EBIkigZqDXwN6TcPYQRQTLA_N5GuXed5s6X1ilFxlfwKCNpKoOlYLTJAKePbNluc64XkvFfb8TtD_0z/s1600/Cattura.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;219&quot; data-original-width=&quot;591&quot; height=&quot;118&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaLLCRhK9YdVoleE_30D9WjpdVpNKImhLvqz865Wi8LBSaN8RnRghXrib4am29-EBIkigZqDXwN6TcPYQRQTLA_N5GuXed5s6X1ilFxlfwKCNpKoOlYLTJAKePbNluc64XkvFfb8TtD_0z/s320/Cattura.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
attenzione che il nome del profilo &lt;b&gt;&lt;u&gt;DEVE &lt;/u&gt;&lt;/b&gt;essere il &lt;b&gt;SID della rete e la sicurezza ccmp indicata va bene con aes indicato nelle combo.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;3. si lancia il comando&amp;nbsp;C:\Windows\system32&amp;gt; netsh wlan connect Telecom-67121997&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;tutto dovrebbe partire&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Cheers!&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/575912680801053864/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2017/07/scriptwifinetsh.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/575912680801053864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/575912680801053864'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2017/07/scriptwifinetsh.html' title='Script_WIFI_NETSH'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaLLCRhK9YdVoleE_30D9WjpdVpNKImhLvqz865Wi8LBSaN8RnRghXrib4am29-EBIkigZqDXwN6TcPYQRQTLA_N5GuXed5s6X1ilFxlfwKCNpKoOlYLTJAKePbNluc64XkvFfb8TtD_0z/s72-c/Cattura.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-8651376200411366088</id><published>2015-11-09T01:50:00.001-08:00</published><updated>2015-11-09T01:50:13.403-08:00</updated><title type='text'>Elementary Os - Enlarge the Virtual Machine’s Partition</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;http://elementaryos.org/&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;sudo apt-get install virtualbox-guest-utils virtualbox-guest-x11 virtualbox-guest-dkms&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;b&gt;Enlarge disk&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #222222; font-family: monospace; font-size: 14.8199996948242px; line-height: 21px;&quot;&gt;VBoxManage modifyhd “C:\Users\Chris\VirtualBox VMs\Windows 7\Windows 7.vdi” –resize 81920&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #222222; font-family: monospace; font-size: 14.8199996948242px; line-height: 21px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #222222; font-family: monospace; font-size: 14.8199996948242px; line-height: 21px;&quot;&gt;ESEMPIO:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #222222; font-family: monospace; font-size: 14.8199996948242px; line-height: 21px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f9f9f9; font-size: 14.8199996948242px; line-height: 21px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: monospace;&quot;&gt;VBoxManage modifyhd Elementary.vdi --resize 15360&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #222222; font-family: monospace; font-size: 14.8199996948242px; line-height: 21px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3 style=&quot;background-color: white; color: #172232; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 17.7839984893799px; margin: 0px; padding: 0px;&quot;&gt;
Enlarge the Virtual Machine’s Partition&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
You now have a larger virtual hard disk. However, the operating system’s partition on your virtual hard disk is the same size, so you won’t be able to access any of this space yet.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
&lt;img alt=&quot;image&quot; border=&quot;0&quot; src=&quot;http://cdn3.howtogeek.com/wp-content/uploads/2012/09/650x360ximage150.png.pagespeed.ic.8dybwUNU1m.png&quot; height=&quot;221&quot; style=&quot;background-image: none; border: 0px; display: inline; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
You’ll now need to extend the guest operating system’s partition as if you were enlarging a partition on a real hard disk in a physical computer. You can’t enlarge the partition while the guest operating system is running, just as you can’t enlarge your C:\ partition while Windows is running on your computer.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
You can use a GParted live CD to resize your virtual machine’s partition – simply boot the GParted ISO image in your virtual machine and you’ll be taken to the GParted partition editor in a live Linux environment. GParted will be able to enlarge the partition on the virtual hard disk.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
First,&amp;nbsp;&lt;a href=&quot;http://gparted.sourceforge.net/download.php&quot; style=&quot;color: #114491;&quot;&gt;download the GParted live CD’s ISO file from here&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
Load the ISO file into your virtual machine by going into the virtual machine’s settings window, selecting your virtual CD drive, and browsing to the ISO file on your computer.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
&lt;img alt=&quot;image&quot; border=&quot;0&quot; src=&quot;http://cdn3.howtogeek.com/wp-content/uploads/2012/09/650x540ximage151.png.pagespeed.ic.AqtXzwO8SJ.png&quot; height=&quot;332&quot; style=&quot;background-image: none; border: 0px; display: inline; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
Boot (or restart) your virtual machine after inserting the ISO image and the virtual machine will boot from the ISO image. GParted’s live CD will ask you several questions while booting – you can press Enter to skip them for the default options.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
Once GParted is booted, right-click the partition you want to enlarge and select Resize/Move.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
&lt;img alt=&quot;image&quot; border=&quot;0&quot; src=&quot;http://cdn3.howtogeek.com/wp-content/uploads/2012/09/650x407ximage152.png.pagespeed.ic.KvvgWnZ6b-.png&quot; height=&quot;250&quot; style=&quot;background-image: none; border: 0px; display: inline; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
Specify a new size for the partition – for example, drag the slider all the way to the right to use all the available space for the partition. Click the Resize/Move button after you’ve specified the space you want to use.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
&lt;img alt=&quot;image&quot; border=&quot;0&quot; src=&quot;http://cdn3.howtogeek.com/wp-content/uploads/2012/09/650x559ximage153.png.pagespeed.ic.RSeNHd1DhT.png&quot; height=&quot;344&quot; style=&quot;background-image: none; border: 0px; display: inline; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
Finally, click the Apply button to apply your changes and enlarge the partition.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
&lt;img alt=&quot;image&quot; border=&quot;0&quot; src=&quot;http://cdn3.howtogeek.com/wp-content/uploads/2012/09/650x523ximage154.png.pagespeed.ic.oQi1SSoRYW.png&quot; height=&quot;321&quot; style=&quot;background-image: none; border: 0px; display: inline; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
After the resize operation completes, restart your virtual machine and remove the GParted ISO file. Windows will check the file system in your virtual machine to ensure it’s working properly — don’t interrupt this check.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
&lt;img alt=&quot;image&quot; border=&quot;0&quot; src=&quot;http://cdn3.howtogeek.com/wp-content/uploads/2012/09/650x572ximage155.png.pagespeed.ic.ApnORdWeDN.png&quot; height=&quot;281&quot; style=&quot;background-image: none; border: 0px; display: inline; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, sans-serif; font-size: 14.8199996948242px; line-height: 21px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
The virtual machine’s partition will now take up the entire virtual hard disk, so you’ll have access to the additional space.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/8651376200411366088/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2015/11/elementary-os-enlarge-virtual-machines.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/8651376200411366088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/8651376200411366088'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2015/11/elementary-os-enlarge-virtual-machines.html' title='Elementary Os - Enlarge the Virtual Machine’s Partition'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-5609517105560213992</id><published>2015-05-22T06:49:00.001-07:00</published><updated>2015-05-25T06:22:59.269-07:00</updated><title type='text'>Transferring large binary data with web services</title><content type='html'>&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;u style=&quot;background-color: yellow;&quot;&gt;Basic Question&lt;/u&gt; :&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;What is the best way to transfer large files with web services ? Presently we are using the straight forward option to transfer the binary data by &lt;b&gt;converting the binary data into base 64 &lt;/b&gt;format and &lt;b&gt;&lt;u&gt;embeding the base 64 encoding into soap envelop&lt;/u&gt;&lt;/b&gt; itself.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;But it slows down the application performance considerably.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;Please suggest something for performance improvement.&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;Quick answer&lt;/span&gt; :&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;br /&gt;
Check out&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;MTOM&lt;/strong&gt;, a W3C standard designed to transfer binary files through SOAP.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
From&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/MTOM&quot; rel=&quot;nofollow&quot; style=&quot;border: 0px; color: #0c65a5; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Wikipedia&lt;/a&gt;:&lt;/div&gt;
&lt;blockquote style=&quot;background-color: #fff9e3; border-left-color: rgb(255, 235, 142); border-left-style: solid; border-width: 0px 0px 0px 2px; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px 0px 10px; padding: 10px; quotes: none;&quot;&gt;
&lt;div style=&quot;border: 0px; clear: both; padding: 0px;&quot;&gt;
MTOM provides a way to send the binary data in its original binary form, avoiding any increase in size due to encoding it in text.&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Related resources:&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border: 0px; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px 0px 1em 30px; padding: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;&lt;a href=&quot;http://www.w3.org/TR/soap12-mtom/&quot; rel=&quot;nofollow&quot; style=&quot;border: 0px; color: #0c65a5; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;SOAP Message Transmission Optimization Mechanism&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/MTOM&quot; rel=&quot;nofollow&quot; style=&quot;border: 0px; color: #0c65a5; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Message Transmission Optimization Mechanism (Wikipedia)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Introduction&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Web service has been evolved from simple request-response mechanism to object oriented style support and now large data transfer.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Large data may be of various types like binary, images, database record export in XML or other format etc.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Normally, the large data transfer is avoided with the web service however in unavoidable circumstances, if it is required to do;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;you have few options which will be discussed later in the article.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;There is couple of big challenges during the large data transfer through web service &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;1)&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;How do you make sure that you meet the performance of the application and it should not deteriorate?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;2)&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;Memory constraint. Huge files should not be hold in the memory completely.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;We’ll discuss these challenges later in the article. Now, let’s discuss the various data transfer strategies/options to transfer the binary data.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background-color: yellow; font-family: Courier New, Courier, monospace;&quot;&gt;Binary data transfer strategies&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;In the following sections I’ll discuss the various data transfer strategies with their advantages and disadvantages.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1) &lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Embedding the binary data in the SOAP envelop&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;The straight forward option to transfer the binary data is to &lt;b&gt;&lt;u&gt;convert the binary data into base 64 format and embed the base 64 encoding into soap envelop itself&lt;/u&gt;&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;This approach is also &lt;b&gt;called as “by value” approach as the binary data is embedded in the XML document itself&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;This approach has following advantages and disadvantages.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;Advantages&lt;/b&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;color: #333333; line-height: 14.9759998321533px; margin: 0in 0px 1.5em 1.667em; padding: 0px;&quot; type=&quot;disc&quot;&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Simple to use&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;This approach gives applications the ability to process and describe data, based only on the XML component of the data&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;It can be positively considered &lt;b&gt;for small binary data transfer&lt;/b&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Drawbacks of embedding binary large data into soap envelop&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;1)&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;As binary data is part of soap envelop, it requires large memory to hold it.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px; margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2)&lt;span style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;Base64 encoding increases the size of the binary data by a factor of 1.33x of the original size&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;3)&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;It slows down the application performance.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Here is the API which can be referred/used for implementation&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Implementation API:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;ul style=&quot;color: #333333; line-height: 14.9759998321533px; margin: 0in 0px 1.5em 1.667em; padding: 0px;&quot; type=&quot;disc&quot;&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Apache commons codec -&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Base64Encoder (From source-code.biz) -&amp;nbsp;&lt;a href=&quot;http://www.source-code.biz/base64coder/java/&quot; style=&quot;color: #006699; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;http://www.source-code.biz/base64coder/java/&quot;&gt;http://www.source-code.biz/base64coder/java/&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Following sections in the article discuss other approaches also called as “by reference approaches” to overcome these issues. Sending binary data by reference is achieved by attaching pure binary data as external unparsed general entities outside the XML document and then embedding reference URIs to those entities as elements or attribute values. This prevents the unnecessary bloating of data and wasting of processing power.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2) &lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;FTP or Network files system&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;One of the good solutions to transfer the large data via web service is to move out the binary large data from the soap envelop and keep only the reference to binary data as a part of soap response.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To implement this approach, the data can be placed either on FTP server or somewhere on shared location on network and the path to data (file) can be given in the web service request or response.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Following section discuss the advantages and disadvantages of this approach.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Advantages&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;1)&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;Data is not part of the soap envelop so it does not require huge memory to hold it.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;2)&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;Since there is no encoding and decoding requires as in case of base 64, it improves the application performance.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px; margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3) You can have separate network line dedicated for FTP which can free up normal application network line resulting in performance improvement.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Disadvantages&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px; margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1)&lt;span style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;It requires FTP server.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px; margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2)&lt;span style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;Additional maintenance of FTP server&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;3)&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;Sometime, may not be best suited for small applications.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 14.9759998321533px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Here is the API which can be referred/used for implementation&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Implementation API:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 14.9759998321533px; text-indent: -24px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Apache commons - &lt;a href=&quot;http://commons.apache.org/net/api-release/org/apache/commons/net/ftp/FTPClient.html&quot;&gt;http://commons.apache.org/net/api-release/org/apache/commons/net/ftp/FTPClient.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px; margin: 0in 0in 0pt 1in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;·&lt;span style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3) &lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Message Transmission Optimization Mechanism (MTOM)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;MTOM (SOAP Message Transmission Optimization Mechanism) is another specification that focuses on solving the &quot;Attachments&quot; problem.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;MTOM is actually a &quot;by reference&quot; method.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;The wire format of a MTOM optimized message is the same as the SOAP with Attachments message. The most noticeable feature of MTOM is the use of the XOP:Include element, to reference the binary attachments (external unparsed general entities) of the message.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;With the use of this exclusive element, the attached binary content logically becomes inline (by value) with the SOAP document even though it is actually attached separately. This merges the two realms by making it possible to work only with one data model. On a lighter note, MTOM has standardized the referencing mechanism of SwA.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;The following is an extract from the XOP specification.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;At the conceptual level, this binary data can be thought of as being base64-encoded in the XML Document. As this conceptual form might be needed during some processing of the XML document (e.g., for signing the XML document), it is necessary to have a one-to-one correspondence between XML Infosets and XOP Packages. Therefore, the conceptual representation of such binary data is as if it were base64-encoded, using the canonical lexical form of the XML Schema base64Binary datatype. In the reverse direction, XOP is capable of optimizing only base64-encoded Infoset data that is in the canonical lexical form.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;div style=&quot;line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;The client application sends SOAP Message that contains complex data in Base64Binary encoded format.&amp;nbsp;&lt;a href=&quot;http://www.w3.org/TR/2004/PER-xmlschema-2-20040318/#base64Binary&quot; style=&quot;color: #006699; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;Base64Binary&lt;/span&gt;&lt;/a&gt;&amp;nbsp;data type represents arbitrary data (e.g., Images, PDF files, Word Docs) in 65 textual. A sample SOAP Body with Base64Binary encoded element&amp;nbsp;&lt;mtom:data&gt;is as follows:&lt;/mtom:data&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.9759998321533px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;line-height: 14.9759998321533px; margin: 0in 0in 12pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;soap:body&gt;&lt;/soap:body&gt;&lt;/code&gt;&lt;br /&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;/code&gt;&amp;nbsp;mtom&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;ByteEcho&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/code&gt;&amp;nbsp;mtom&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;AVBERi0xLjYNJeLjz9MNCjE&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;DQpzdGFyNCjEx0YNCg&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;==&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/code&gt;&amp;nbsp;mtom&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/code&gt;&lt;br /&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;/code&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;mtom&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;ByteEcho&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;/code&gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;div&gt;
&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;An&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;MTOM&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;aware web services engine detects the presence of&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Base64Binary&lt;/span&gt;&lt;/i&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;data&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/i&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;mtom&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;i&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;the example&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;and&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;makes a decision&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;–&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;to convert the&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Base64Binary&lt;/span&gt;&lt;/i&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;data to MIME data&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;an&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;a href=&quot;http://www.w3.org/TR/xop10/&quot; style=&quot;color: #006699; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;XML&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;binary&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Optimization&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Package&lt;/span&gt;&lt;/a&gt;&lt;/i&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;xop&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;content type&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;The&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;data conversion&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;results&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;replacing the&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Base64Binary&lt;/span&gt;&lt;/i&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;data&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;an&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;xop:include&gt;&lt;/xop:include&gt;&lt;/i&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;element that references the original raw bytes of the document being transmitted&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;The&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;raw bytes are appended to the SOAP&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Message&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;and&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;are separated&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;by&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;a MIME boundary&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;as&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;shown below&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;
&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;
&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;
&lt;div style=&quot;margin: 0in 0in 12pt;&quot;&gt;
&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;soap:envelope&gt;&lt;/soap:envelope&gt;&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;
&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;
&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;mtom&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;ByteEcho&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/code&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;mtom&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;data&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;xop:include href=&quot;cid:1.633335845875937500@java.net&quot;&gt;&lt;/xop:include&gt;&lt;/span&gt;&lt;/i&gt;&lt;/code&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;mtom&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;data&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;mtom&lt;/span&gt;&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;&lt;span class=&quot;typ&quot;&gt;ByteEcho&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;/code&gt;&lt;br /&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;--&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;&lt;span class=&quot;typ&quot;&gt;MIMEBoundary000000&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;content&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;id&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;&lt;span class=&quot;lit&quot;&gt;&lt;span class=&quot;lit&quot;&gt;1.633335845875937500@java&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;net&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;content&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;type&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;application&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;octet&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;stream&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;content&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;transfer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;encoding&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;binary&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;
&lt;code class=&quot;prettyprint&quot; style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;The&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;raw binary data along&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;with&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;the SOAP&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Message&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;and&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;the MIME&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Boundary&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;is&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;send over the wire to the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Producer&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;The&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Producer&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;then&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;transforms the raw binary data back to&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Base64Binary&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;encoding&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;for&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;other processing&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;This&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;approach has couple of advantages&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;/div&gt;
&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;b&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Advantages&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;ol style=&quot;margin: 0px 0px 1.5em 1.667em; padding: 0px;&quot; type=&quot;1&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Effective&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Transmission&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Base64Binary&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;encoded data&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;is&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;~&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;&lt;span class=&quot;lit&quot;&gt;33&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;%&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;greater than raw&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;byte&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;transmission&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;MIME&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Therefore&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;MTOM reduces data size&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;by&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;converting&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Base64Binary&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;encoding to raw bytes&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;for&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;transmission&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Data&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;is&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;transferred&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;streaming approach&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/ol&gt;
&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Disadvantages&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;/&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Constraints&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;ol style=&quot;margin: 0px 0px 1.5em 1.667em; padding: 0px;&quot; type=&quot;1&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;HTTP&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;specific&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;although it could easily be adapted to other&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;MIME&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;based&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;or&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;MIME&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;like transports&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Detecting&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;MTOM messages&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;for&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;dispatch&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;is&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;additional overhead&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;You&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;may&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;not&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;be able&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;use&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;MTOM&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;all the parties involved&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;in&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;data transfer&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;do&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;not&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;support MTOM specification&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/ol&gt;
&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Here&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;is&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;the API which can be referred&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;/&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;used&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;for&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;implementation&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;/div&gt;
&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Implementation&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;API&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;margin: 0in 0in 0pt 1in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Metro&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://metro.dev.java.net/guide/Binary_Attachments__MTOM_.html&quot; style=&quot;color: #006699; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;https&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot;&gt;//metro.dev.java.net/guide/Binary_Attachments__MTOM_.html&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;/div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;b&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Plain HTTP&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;One of the big genuine question is why just don’t use the http to post and stream the data. It doesn’t require any soap envelop etc. And the answer is yes this can be done provided you are not looking for any web service related benefits.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;/div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;b&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Conclusion:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;I’ve seen different methods of transferring the binary large data through web service however each method has its own advantages and disadvantages. Now, the question is raised which one is better and answer is: depending upon your application environment, you will have to choose one of the options.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;However in my opinion, here is the order of precedence of selection.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot;&gt;1)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot;&gt;Use base64 encoding if binary data is very small and it does not substantially impact the performance.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot;&gt;2)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot;&gt;Use FTP or network share if binary data is large.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot;&gt;3)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot;&gt;Prefer MTOM if all the involved parties in data transfer support the MTOM as it is one of the best way to stream the content.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot;&gt;4)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-stretch: normal;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot;&gt;Use plain HTTP if it is just upload/download of the file.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;/div&gt;
&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 14.9759998321533px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/5609517105560213992/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2015/05/transferring-large-binary-data-with-web.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/5609517105560213992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/5609517105560213992'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2015/05/transferring-large-binary-data-with-web.html' title='Transferring large binary data with web services'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-9072429956776817328</id><published>2015-05-14T06:40:00.001-07:00</published><updated>2015-05-14T06:40:22.893-07:00</updated><title type='text'></title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: large;&quot;&gt;&lt;b&gt;How To Install Wordpress on Ubuntu 12.04&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;i&gt;About Wordpress&lt;/i&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Wordpress is a free and open source website and blogging tool that uses php and MySQL.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;It was created in 2003 and has since then expanded to manage 22% of all the new websites created and has over 20,000 plugins to customize its functionality.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;u&gt;Setup&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;The steps in this tutorial require the user to have root privileges. You can see how to set that up in the Initial Server Setup.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Before working with wordpress, you need to have &lt;b&gt;&lt;u&gt;LAMP installed&lt;/u&gt;&lt;/b&gt; on your virtual private server. If you don&#39;t have the Linux, Apache, MySQL, PHP stack on your VPS, you can find the tutorial for setting it up in the Ubuntu LAMP tutorial.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Once you have the user and required software, you can start installing wordpress!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Step One—Download WordPress&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;We can download Wordpress straight from their website:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;wget http://wordpress.org/latest.tar.gz&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;This command will download the zipped wordpress package straight to your user&#39;s home directory.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;ou can unzip it the the next line:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;tar -xzvf latest.tar.gz&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Step Two—Create the WordPress Database and User&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;After we unzip the wordpress files, they will be in a directory called wordpress in the home directory.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Now we need to switch gears for a moment and create a new MySQL directory for wordpress.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Go ahead and log into the MySQL Shell:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;mysql -u root -p&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Login using your MySQL root password, and then we need to create a wordpress database, a user in that database, and give that user a new password. Keep in mind that all MySQL commands must end with semi-colon.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;First, let&#39;s make the database (I&#39;m calling mine wordpress for simplicity&#39;s sake; feel free to give it whatever name you choose):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;CREATE DATABASE wordpress;&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Query OK, 1 row affected (0.00 sec)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Then we need to create the new user. You can replace the database, name, and password, with whatever you prefer:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;CREATE USER wordpressuser@localhost;&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Query OK, 0 rows affected (0.00 sec)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Set the password for your new user:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;SET PASSWORD FOR wordpressuser@localhost= PASSWORD(&quot;password&quot;);&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Query OK, 0 rows affected (0.00 sec)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Finish up by granting all privileges to the new user. Without this command, the wordpress installer will not be able to start up:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY &#39;password&#39;;&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Query OK, 0 rows affected (0.00 sec)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Then refresh MySQL:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;FLUSH PRIVILEGES;&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Query OK, 0 rows affected (0.00 sec)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Exit out of the MySQL shell:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;exit&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Step &lt;u&gt;Three—Setup the WordPress Configuration&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;The first step to is to copy the sample wordpress configuration file, located in the wordpress directory, into a new file which we will edit, creating a new usable wordpress config:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;i style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;cp ~/wordpress/wp-config-sample.php ~/wordpress/wp-config.php&lt;/b&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Then open the wordpress config:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;sudo nano ~/wordpress/wp-config.php&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Find the section that contains the field below and substitute in the correct name for your database, username, and password:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;// ** MySQL settings - You can get this info from your web host ** //&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;/** The name of the database for WordPress */&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;define(&#39;DB_NAME&#39;, &#39;wordpress&#39;);&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;/** MySQL database username */&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;define(&#39;DB_USER&#39;, &#39;wordpressuser&#39;);&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;/** MySQL database password */&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;define(&#39;DB_PASSWORD&#39;, &#39;password&#39;);&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;i&gt;Save and Exit.&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Step Four—Copy the Files&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;We are almost done uploading Wordpress to the virtual private server. The final move that remains is to transfer the unzipped WordPress files to the website&#39;s root directory.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;sudo rsync -avP ~/wordpress/ /var/www/&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Finally we need to set the permissions on the installation. First, switch in to the web directory:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;cd /var/www/&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Give ownership of the directory to the apache user.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;sudo chown username:www-data /var/www -R&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;sudo chmod g+w /var/www -R&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;From here, WordPress has its own easy to follow installation form online.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;However, the form does require a specific php module to run. If it is not yet installed on your server, download php-gd:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo apt-get install php5-gd&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Step Five—RESULTS: Access the WordPress Installation&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Once that is all done, the wordpress online installation page is up and waiting for you:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Access the page by adding /wp-admin/install.php to your site&#39;s domain or IP address (eg. example.com/wp-admin/install.php) and fill out the short online form (it should look like this).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/9072429956776817328/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2015/05/how-to-install-wordpress-on-ubuntu-12.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/9072429956776817328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/9072429956776817328'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2015/05/how-to-install-wordpress-on-ubuntu-12.html' title=''/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-7586712537658533761</id><published>2015-05-14T06:01:00.004-07:00</published><updated>2016-01-08T03:52:26.661-08:00</updated><title type='text'></title><content type='html'>&lt;h1 class=&quot;entry-title&quot; style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #333333; line-height: 1.2308; margin: 0px 0px 1.2308em; outline: 0px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: large;&quot;&gt;Install XAMPP in Ubuntu&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: large; line-height: 1.2308;&quot;&gt;using command&amp;nbsp;line&lt;/span&gt;&lt;/h1&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #333333; font-size: 19px; line-height: 31.9997997283936px; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;You can install&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/XAMPP&quot; sl-processed=&quot;1&quot; style=&quot;border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-width: 0px 0px 1px; box-sizing: inherit; color: #333333; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;XAMPP&lt;/a&gt;&amp;nbsp;in&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Ubuntu_(operating_system)&quot; sl-processed=&quot;1&quot; style=&quot;border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-width: 0px 0px 1px; box-sizing: inherit; color: #333333; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Ubuntu&lt;/a&gt;&amp;nbsp;using ppa(Personal Package Archives). This is a simple process. Open terminal and type following command.&lt;span id=&quot;more-133&quot; style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.00784314); border: 1px solid rgba(51, 51, 51, 0.0980392); box-sizing: inherit; color: #333333; font-size: 19px; line-height: 1.2632; margin-bottom: 1.6842em; max-width: 100%; outline: 0px; overflow: auto; padding: 0.8em; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;sudo add-apt-repository ppa:upubuntu-com/web
sudo apt-get update
sudo apt-get install xampp&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.00784314); border: 1px solid rgba(51, 51, 51, 0.0980392); box-sizing: inherit; color: #333333; font-size: 19px; line-height: 1.2632; margin-bottom: 1.6842em; max-width: 100%; outline: 0px; overflow: auto; padding: 0.8em; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #333333; font-size: 19px; line-height: 31.9997997283936px; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;XAMPP is installed now type following command &amp;nbsp;to start XAMPP server&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.00784314); border: 1px solid rgba(51, 51, 51, 0.0980392); box-sizing: inherit; color: #333333; font-size: 19px; line-height: 1.2632; margin-bottom: 1.6842em; max-width: 100%; outline: 0px; overflow: auto; padding: 0.8em; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;sudo /opt/lampp/lampp start&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.00784314); border: 1px solid rgba(51, 51, 51, 0.0980392); box-sizing: inherit; color: #333333; font-size: 19px; line-height: 1.2632; margin-bottom: 1.6842em; max-width: 100%; outline: 0px; overflow: auto; padding: 0.8em; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #333333; font-size: 19px; line-height: 31.9997997283936px; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Now xampp is installed in your linux , just open web browser and type url in address bar :&amp;nbsp;&lt;a href=&quot;http://localhost/&quot; rel=&quot;nofollow&quot; sl-processed=&quot;1&quot; style=&quot;border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-width: 0px 0px 1px; box-sizing: inherit; color: #333333; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;http://localhost/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #333333; line-height: 1.2308; margin: 0px 0px 1.2308em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: large;&quot;&gt;&lt;u&gt;Operate XAMPP in Ubuntu using command&amp;nbsp;line&lt;/u&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #333333; font-size: 19px; line-height: 31.9997997283936px; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;You can operate XAMPP server in ubuntu using following command.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Syntax:&amp;nbsp;&lt;em style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;sudo /opt/lampp/lampp&lt;/b&gt; &amp;lt;action&amp;gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #333333; font-size: 19px; line-height: 31.9997997283936px; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;For example:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #333333; font-size: 19px; line-height: 31.9997997283936px; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;to start XAMPP server write following command in terminal&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;&lt;em style=&quot;border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;sudo /opt/lampp/lampp start&lt;/b&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #333333; font-size: 19px; line-height: 31.9997997283936px; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;figure class=&quot;wp-caption alignnone&quot; data-shortcode=&quot;caption&quot; id=&quot;attachment_173&quot; style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-size: 19px; line-height: 31.9997997283936px; margin: 0px 0px 1.6842em; max-width: 100%; width: 300px;&quot;&gt;&lt;a href=&quot;https://phptechnologytutorials.files.wordpress.com/2013/04/start-xampp-in-ubuntu.png&quot; sl-processed=&quot;1&quot; style=&quot;border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-width: 0px 0px 1px; box-sizing: inherit; color: #333333; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;img alt=&quot;start xampp in ubuntu&quot; class=&quot;size-medium wp-image-173&quot; height=&quot;148&quot; src=&quot;https://phptechnologytutorials.files.wordpress.com/2013/04/start-xampp-in-ubuntu.png?w=300&amp;amp;h=148&quot; style=&quot;border: 0px; box-sizing: inherit; display: block; height: auto; margin: 0px; max-width: 100%; vertical-align: middle;&quot; width=&quot;300&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;figcaption class=&quot;wp-caption-text&quot; style=&quot;box-sizing: inherit; color: rgba(51, 51, 51, 0.701961); font-size: 1.6rem; line-height: 1.5; padding: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;start xampp in ubuntu&lt;/span&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #333333; font-size: 19px; line-height: 31.9997997283936px; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;to stop XAMPP server write following command in terminal&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;&lt;em style=&quot;border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;sudo /opt/lampp/lampp stop&lt;/b&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #333333; font-size: 19px; line-height: 31.9997997283936px; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span id=&quot;more-163&quot; style=&quot;border: 0px; box-sizing: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;Following list shows command list&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; style=&quot;background-color: white; border-color: rgba(51, 51, 51, 0.0980392); border-spacing: 0px; border-style: solid; border-width: 1px 0px 0px 1px; box-sizing: inherit; color: #333333; font-size: 19px; line-height: 31.9997997283936px; margin: 0px 0px 1.6842em; outline: 0px; padding: 0px; table-layout: fixed; vertical-align: baseline; width: 594px;&quot;&gt;&lt;thead style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;th style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Action&lt;/span&gt;&lt;/th&gt;&lt;th style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Action Detail&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td colspan=&quot;2&quot; style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: inherit; font-style: inherit; font-weight: 700; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;XAMPP Start Commands&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;start&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Start XAMPP (Apache, MySQL and eventually others)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;startapache&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Start only Apache&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;startssl&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Start only SSL support&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;startmysql&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Start only MySQL&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;startftp&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Start only ProFTPD&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td colspan=&quot;2&quot; style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: inherit; font-style: inherit; font-weight: 700; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;XAMPP Stop Commands&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;stop&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Stop XAMPP (Apache, MySQL and eventually others)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;stopapache&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Stop only Apache&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;stopssl&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Stop only SSL support&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;stopmysql&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Stop only MySQL&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;stopftp&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Stop only ProFTPD&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td colspan=&quot;2&quot; style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: inherit; font-style: inherit; font-weight: 700; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;XAMPP Reload Commands&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;reload&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Reload XAMPP (Apache, MySQL and eventually others)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;reloadapache&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Reload only Apache&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;reloadmysql&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Reload only MySQL&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;reloadftp&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Reload only ProFTPD&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td colspan=&quot;2&quot; style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: inherit; font-style: inherit; font-weight: 700; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Other Commands&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;restart&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Stop and start XAMPP&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;security&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Check XAMPP’s security&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;php5&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Activate PHP5&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;phpstatus&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Which version of PHP is active?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;backup&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Make backup file of your XAMPP config, log and data files&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;panel&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(51, 51, 51, 0.0980392); border-style: solid; border-width: 0px 1px 1px 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0.4em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Starts graphical XAMPP control panel&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/7586712537658533761/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2015/05/install-xampp-in-ubuntu-using-command.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/7586712537658533761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/7586712537658533761'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2015/05/install-xampp-in-ubuntu-using-command.html' title=''/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-2445078310086435125</id><published>2015-05-14T05:58:00.000-07:00</published><updated>2015-05-14T05:58:16.484-07:00</updated><title type='text'>Broker Concepts In WebMethods</title><content type='html'>&lt;h1 class=&quot;post-title entry-title&quot; itemprop=&quot;name headline&quot; style=&quot;border-bottom-color: rgb(211, 211, 211); border-bottom-style: solid; border-bottom-width: 1px; color: #0e0e0e; font-stretch: normal; margin: 0px; padding: 0px 0px 5px 50px;&quot;&gt;
&lt;a href=&quot;http://knowwebmethods.blogspot.it/2014/12/broker.html&quot; itemprop=&quot;url&quot; style=&quot;color: #0e0e0e; display: block; text-align: center; text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: small;&quot;&gt;Broker Concepts In webMethods&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;topmeta&quot; style=&quot;color: #333333; overflow: hidden; padding: 5px 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-1835648016185686929&quot; itemprop=&quot;description articleBody&quot; style=&quot;color: #333333; line-height: 1.6em; margin: 0px 0px 0.75em;&quot;&gt;
&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;W&lt;a href=&quot;http://knowwebmethods.blogspot.in/2014/12/integration-server-in-webmethods.html&quot; style=&quot;color: #999999; text-decoration: none;&quot;&gt;ebMethods Integration Server(IS)&lt;/a&gt;&amp;nbsp;is mainly used to support the integration of diverse services and communication between systems.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;But to do the same we need multiple Integration servers to do the complete job (Not compulsory, depends on business requirements&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;and server load).&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;And this is the area where Broker will come into the picture, which acts as &quot;message backbone&quot; which helps the IS&#39;s to communicate with each other using a model called as &quot;Publish and Subscribe Model&quot;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;We will look into more details about this model in another section.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;When the &lt;b&gt;IS&#39;s received the documents from the external applications&lt;/b&gt;, the &lt;b&gt;&lt;u style=&quot;background-color: yellow;&quot;&gt;IS publishes the document to the the respective configured Broker&lt;/u&gt;&lt;/b&gt; which in turn the configured subscriber(another IS or another application) will subscribe those documents for the further process.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;So this inturn indicates that the IS interactions are in &lt;span style=&quot;background-color: yellow;&quot;&gt;de-coupled&lt;/span&gt; format, meaning they do not interact directly.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Instead, the interactions will happen through Broker.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;These are the components that interact with the Broker:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1. webMethods IS&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2. webMethods JMS with ASF Support&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3. webMethods Task Engine&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;4. webMethods Logging Utility&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;5. webMethods Process Engine&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;A webMethods Broker environment mainly consists of following main components.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1. &lt;b&gt;Broker Server&lt;/b&gt;: This is a runtime components which mainly used for the &lt;b&gt;Publishers&lt;/b&gt; and &lt;b&gt;Subscribers &lt;/b&gt;to Interact.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 1.6em;&quot;&gt;It also manages memory and disk resources for all the Brokers that reside on it.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;By default, &lt;b&gt;port 6849&lt;/b&gt; is the Broker Server base port.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;It uses the default port &lt;b&gt;6849&lt;/b&gt; for non-SSL requests and ports 6848 and 6847 for SSL requests.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2. &lt;b&gt;Brokers&lt;/b&gt;: This &lt;span style=&quot;background-color: yellow;&quot;&gt;resides&lt;/span&gt; on Broker Server.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;When a client connects to Broker Server, the client specifies the Broker with which it wants to interact.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3. &lt;b&gt;Broker User Interface&lt;/b&gt;: This is a administarting component, which we mainly used to monitor Broker Health, log size etc. This is running on My webMethods Server.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;4. &lt;b&gt;Broker Monitor&lt;/b&gt;: This will install automatically when we install Broker Server.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;As in the name describes that, the Broker Monitor will mainly monitor all the Broker servers status.Broker Monitor continually checks the state of the Broker Server and automatically attempts to re-start it if it stops running.The Broker Monitor default port 6850.The Broker Monitor configuration file (awbrokermon.cfg) points to the Broker Servers that reside on the host machine.So when BrokerMonitor starts the broker server, it will capture the respective Broker Server PID and using this PID it will monitor the status of the respective Broker servers.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;Diagram: Broker Monitor--&amp;gt;Broker Servers(Multiple with it&#39;s own port)--&amp;gt;Brokers(Multiple)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3daN7kJUiiwhoFGpUgoGbUaf9NpqKKPLLQ3o5_eBDhpCwSImrQ9mmvdgHh8lCPR2IJMM1OlmPRxwXUhmMDhclPc446WTxeONWs5CBetlXipuUkOZXuvHvlAqNgbqX72mGLBt0I_dyWwNG/s1600/Broker1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;color: #999999; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;596&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3daN7kJUiiwhoFGpUgoGbUaf9NpqKKPLLQ3o5_eBDhpCwSImrQ9mmvdgHh8lCPR2IJMM1OlmPRxwXUhmMDhclPc446WTxeONWs5CBetlXipuUkOZXuvHvlAqNgbqX72mGLBt0I_dyWwNG/s1600/Broker1.JPG&quot; style=&quot;-webkit-transition: all 0.4s ease-in-out; border: 1px solid rgb(211, 211, 211); height: auto; max-width: 95%; padding: 4px; transition: all 0.4s ease-in-out;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;A webMethods Broker environment has only one Broker Monitor even if it hosts multiple&amp;nbsp;Broker Servers. Broker Monitor monitors all of the Broker Servers running in the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 1.6em;&quot;&gt;webMethods Broker environment.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;It will automatically attempt to restart any Broker&amp;nbsp;Server that stops running in its environment.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;u&gt;Broker encompasses the following objects&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1. Document types: which identify the kinds of documents that the Broker’s clients can&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 1.6em;&quot;&gt;exchange.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2. Client Groups: which define specific properties and permissions that Broker applies to&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 1.6em;&quot;&gt;clients.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3. Client State Objects: which maintain information about the individual clients that use&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;the Broker.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Note: When we install Broker Server, the server will be installed with a &quot;default&quot; Broker, which we will be mainly used to communicate with applications which not mentioned with to which broker it needs to communicate. We can install required number of Brokers apart from this &quot;default&quot; broker.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;u&gt;How Integration Server communicate with Broker?&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;The Integration Server uses &quot;dispatcher.cnf&quot; config files to communicate with Broker.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;This config will store all the information about the Broker to which IS wants to communicates like broker server name, broker server port, status of the Broker.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;The dispatcher will also take care of the connection pool monitoring which helps to connectivity between IS and Broker.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;u&gt;How the Storage will be handling in the Brokers?&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;The broker Storage will be handling through the concept called &quot;&lt;span style=&quot;background-color: yellow;&quot;&gt;Queue&lt;/span&gt;&quot;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;When the broker receives the documents from the IS, &lt;u&gt;the Broker will place the documents that matches the client&#39;s subscription in the client&#39;s queue&lt;/u&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;Each client has it&#39;s own queue.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;The Queue will be either in &quot;Locked&quot; or &quot;Unlocked&quot; state.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;During the &quot;Lock&quot; state all the published documents will be keep piling up in the queue which we can be used to verify the documents structure by downloading the same.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;And during the &quot;Unlock&quot; state the documents will be subcribed by the respective subscribing clients.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Note: When there are no subscriptions for the respective documents, then the documents will be moved to queue called &quot;DeadLetter&quot; queue.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Note: We use another concept of queue called &quot;Forward queue&quot;, this is mainly used in the Territories to store the documents between the brokers configured in territories.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;u&gt;What about StorageType of Documents?&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Documents published to Broker can be stored as volatile documents or guaranteed documents.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Volatile documents are stored only in memory and are lost if the host machine loses power or the Broker Server is otherwise re-started.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Guaranteed documents are persisted to disk so that they can be recovered in case of a power failure or a restart.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Now we will see what is the combination of Queue+Storage i.e, QueueStorage refers to?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;QueueStorage in the Broker Servers refers to fileStorage used to persist the guaranteed documents and non-volatile Broker meta-data.&amp;nbsp;Queue Storage consists of two types of files LogFile and StorageFile.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;LogFile:&amp;nbsp;which is a fixed-sized file that Broker can write data to quickly when each documents through broker.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;StorageFiles:&amp;nbsp;To which the files/data will stored in batch wise after the LogFile size becomes full.This will happen automatically through a process called &quot;logged-commit&quot; process&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;We can configure QueueStorage either in Combined mode or Separate Mode.&amp;nbsp;In combined mode, Broker meta-data and run-time data are stored in the same log and storage files.&amp;nbsp;In Separate mode,the broker uses two log files and two storage files.It stores meta-data in one log/storage pair and run-time data in the other log/storage pair.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;u&gt;How can we sync multiple Brokers ?&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-family: Courier New, Courier, monospace;&quot;&gt;We can sync the multiple &lt;b&gt;brokers using the concept of Territory&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;Brokers that form a territory function as a single logical Broker&lt;/b&gt;. Clients that connect to one Broker in a territory can automatically exchange documents with clients connected to any of the Brokers in the territory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;When Brokers operate in a territory, they maintain the same set of document types and client group definitions.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGFjY7q59bKSaPoCtwM6KsM4lCjEMq44FH5D37r6rvJ_7AMaAZsuRzb9BzJGxpTpExg4_zaUoUtkPD4TAaORX1jJK8F3u1ZPx73TQkMuHITZLjr4KH2UVorrheUCs13qCAiYu9EmGENN5x/s1600/Broker2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;color: #999999; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGFjY7q59bKSaPoCtwM6KsM4lCjEMq44FH5D37r6rvJ_7AMaAZsuRzb9BzJGxpTpExg4_zaUoUtkPD4TAaORX1jJK8F3u1ZPx73TQkMuHITZLjr4KH2UVorrheUCs13qCAiYu9EmGENN5x/s1600/Broker2.JPG&quot; style=&quot;-webkit-transition: all 0.4s ease-in-out; border: 1px solid rgb(211, 211, 211); height: auto; max-width: 95%; padding: 4px; transition: all 0.4s ease-in-out;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;u&gt;How multiple territories will communicate&lt;/u&gt;&lt;/b&gt;?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Territories will communicate through a bridge called &lt;b style=&quot;background-color: yellow;&quot;&gt;&quot;Gateway&quot;&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;A gateway enables clients in one territory to receive documents that are published in another territory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Procedure for Start and Stop of the Broker components:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;We can achieve the Start and Stop mechanism of the Broker Components using either Broker user Interface through MWS or by with the help of UNIX commands(On UNIX Platform) or Windows Procedures (On Microsoft Platform) &amp;nbsp;as described below.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;--&amp;gt; Broker Monitor:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To start Broker Monitor manually on Windows&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 From the Start menu, open Services as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Settings &amp;gt; Control Panel &amp;gt; Administrative Tools &amp;gt; Services&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 Right-click the webMethods Broker Monitor service and click Start.The status of the Broker Monitor switches to “Started” and Broker Monitor starts the Broker Servers that reside on the machine.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To configure Broker Monitor to start automatically on Unix&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 Navigate to the directory that contains the Broker Monitor script.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 Run the following command:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;./S45_broker71 start&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Where S45_broker71 specifies the file name of the start up script.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3 To confirm that Broker Monitor is running, enter the following command:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;ps -ef | grep aw&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;If Broker Monitor is running, “awbrokermon” will appear in the process list.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To stop Broker Monitor on Windows&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 From the Start menu, open Services as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Settings &amp;gt; Control Panel &amp;gt; Administrative Tools &amp;gt; Services&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 Right-click the webMethods Broker Monitor service and click Stop.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3 Click Yes to confirm that you want to stop the Broker Servers that Broker Monitor is monitoring.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To stop Broker Monitor on Unix&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 Navigate to the directory where the Broker Monitor script file resides.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 Run the following command:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;./S45_broker71 stop&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Where S45_broker71 specifies the file name of the stop script.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;--&amp;gt; Broker Server&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To manually start a Broker Server using My webMethods&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 In My webMethods: Messaging &amp;gt; Broker Servers &amp;gt; Servers.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 In the Broker Servers List, select the check box beside the Broker Server that you want to&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;start.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3 Click Restart.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To manually start a Broker Server from the command line&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 On the machine where Broker Server is installed, navigate to the following directory:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;webMethods/Broker/bin&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 Run the following command:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;broker_start hostName:portNum&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To manually start a Broker Server from the Windows control panel&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 From the Start menu in Windows, open Services as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Settings &amp;gt; Control Panel &amp;gt; Administrative Tools &amp;gt; Services&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 Right-click the webMethods Broker Server service that you want to start and click Start.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To stop a Broker Server using My webMethods&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 In My webMethods: Messaging &amp;gt; Broker Servers &amp;gt; Servers.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 In the Broker Servers List, select the check box beside the Broker Server that you want to&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;stop.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3 Click Stop.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To stop a Broker Server from the command line (using broker_stop)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 On the machine where Broker Server is installed, navigate to the following directory:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;webMethods/Broker/bin&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 Run the following command:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;broker_stop hostName:portNum idParams&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To stop a Broker Server from the Windows control panel&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 From the Start menu, open Services as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Settings &amp;gt; Control Panel &amp;gt; Administrative Tools &amp;gt; Services&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 Right-click the webMethods Broker Server service that you want to stop and click Stop.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Now we will see few more details of the Broker Objects which we have mentioned before.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Document Types:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;As we know that, the broker communicates between Publisher and subscriber through documents. But how will the Broker knows, whether to accept or discard the incoming document when it is notified with the incoming document?. To achieve this the Broker uses the &quot;Document Type&quot; as filter technique, which mean that when the Broker receives the document the Broker will check whether the respective Document type is configured in the broker to accept the Document if it is then it will accept by the respective broker.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Each document is an instance of a document type. A document type is a schema-like definition that describes the structure of a document that publishers and subscribers can exchange using the Broker. A document type has a unique name, a structure that consists of named fields, and a set of properties that determines how the Broker handles instances of that document type at run time.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;We can create these Document Types either in the following ways.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1. We can use Developer to define a document type and mark it as publishable.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2. Using Broker API&#39;s.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3. A developer can add a JMS topic as a Broker document type through My webMethods.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;DocumentType Name appears in MWS as below.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;folderName::subFolderName::documentTypeName&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Example:Type::Hardware::PO::receivePO&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Note: When we create document type is created through webMethods Developer, the Broker document type name includes the preface “wm::is::”.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Important Properties of Document Type:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1. Time to live specifies how long Broker maintains instances of this document type once&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;they are published.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2. Validation indicates whether or not Broker validates instances of this document type&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;and if so, whether or not the document can contain fields that are not defined in the&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;document type.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3. Storage type determines whether instances of this document type are stored in memory&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;or on disk.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To view documents types on a Broker&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;In My webMethods: Messaging &amp;gt; Broker Servers &amp;gt; Document Types.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;We can modify the following Document Type Properties using My webMethods.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;ion an&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Document type description&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Time to live value&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Validation level&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Note: If a client publishes a document for which there is not an associated document type on the Broker, Broker returns an error message to the client and publication fails.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To Delete document Types on a Broker&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1. In My webMethods: Messaging &amp;gt; Broker Servers &amp;gt; Document Types&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2. In the Document Type List, select the check box next to the name of the document types that you want to delete. If the document type does not appear in the list, use the Search tab to locate it.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3. Click Delete. My webMethods deletes the selected document type.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Client Groups:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Each Client in the Broker belongs to one Client Group, where we can use to define a particular classes of a client like Administrators,Integration servers processes.Below are the settings which we can do using Client Group Object.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;a. Client Characteristics Like Queue Storage Type&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;b. Security-Labeled: Which includes ACL, encryption etc.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;c. Access To Document Types:specified by lists of the document types available to the client group’s members.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;d. Can-publish types:List the document types that the client group’s Broker clients are permitted to publish (or deliver).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;e. Can-subscribe types: List all document types that Broker clients in the client group can subscribe to (or receive deliveries from).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;f. Log publish types: List all the document types that Broker clients in the client group can log when published.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;g. Log acknowledge types: Display the number of document types that Broker clients in the client group can log when received.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Another important property which we can assign using client Group to each client is &quot;Queue Storage Type&quot; and &quot;Client LifeCycle&quot;.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Queue Storage Type:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;You assign a queue storage type when you create a client group, and the value cannot be changed. You can set the storage type to volatile or guaranteed.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1. Volatile. Documents are stored only in local memory and are lost if the Broker Host loses power or the Broker Server is re-started.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2. Guaranteed. Documents are persisted to disk and can be recovered in case of a power failure or restart.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Client LifeCycle&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Explicit destroy. Maintains the Broker client’s state object when the client disconnects.The client continues to receive documents in its queue, even though it is not actively connected. Use this setting for applications that need to maintain state information in the Broker between connections, e.g., if a network or system failure occurs.For example, a webMethods Integration Server uses the explicit destroy lifecycle so that documents that update the database are not lost if the Integration Server is not running. When the Integration Server is not running, the Broker queues documents for it; the Integration Server retrieves the documents when it restarts.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Destroy on disconnect. Broker automatically destroys client state object information whenever the connection between the client and Broker is terminated, thus losing all knowledge of the client. With this setting, the state of a Broker client exists for the duration of the client’s connection to the Broker.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Clients:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;As mentioned above A client is an object on the Broker that represents the connection between a client program and the Broker.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;A client program publishes documents to a Broker Server using its client. The Broker Server’s publishing engine routes documents published by a client to other clients that subscribe to those documents.A client program subscribes to documents by registering document type subscriptions with its client. Broker places the documents to which a client subscribes in the client’s queue. A client program then retrieves the documents from its client queue.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;If multiple client programs can share the same client if the client was configured as a shared state client when it was created. Sharing a client allows multiple client programs, each using its own session, to process documents from a single client queue in parallel on a first-come, first-served basis.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Note:&amp;nbsp;If you disconnect the last session to a client with a destroy on disconnect lifecycle, Broker deletes the client.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;If you disconnect the last session for a client with an explicit destroy lifecycle, the client remains. The client program can reconnect to the client at a future time.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Note:&amp;nbsp;Clients cannot be deleted when their queues are locked.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Clients can be copied only when the client group to which it belongs is present in the target server. Client groups can be copied only when all the documents in its can subscribe and can publish list are present in the target broker.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;In our previous discussion we have covered the concepts of Territory and Gateways, now we will how to create and delete the same in MWS.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Territory:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To create a territory&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 In My webMethods: Messaging &amp;gt; Broker Territories &amp;gt; Brokers&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 Click Add Territory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3 In Territory Name, type a name for the territory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;4 Use the following steps to select one of the Brokers that will participate in this&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;territory:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; a In the Broker Server field, select the Broker Server that hosts the Broker.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; b Use the Selected Brokers controls to specify the Brokers that you want to add.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;5 Click OK.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;How to add Brokers to Territory?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 In My webMethods: Messaging &amp;gt; Broker Territories &amp;gt; Brokers&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 In the Territory Brokers List, click Add Broker.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3 From the Territory to Join list on the Add Territory Broker page, select the territory to&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;which you want to add a Broker.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;4 Use the following steps to select the Brokers to add to the territory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;a In the Broker Server field, select the Broker Server that hosts the Broker(s) that you&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;want to add.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;b Use the Selected Brokers controls to specify the Brokers that you want to add to&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;territory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;5 Click Join&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;How to Remove Broker from Territory?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 In My webMethods: Messaging &amp;gt; Broker Territories &amp;gt; Brokers&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 In the Territory Brokers List, select the check box beside the Broker that you want to&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;remove from a territory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3 Click Leave Territory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To Delete a Territory&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;You can dissolve a territory by simply removing every Broker from the territory. When the last Broker has been removed from the territory, the territory will cease to exist.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Gateway:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;A gateway connection enables two territories to exchange documents. Unlike territories, whose constituent Brokers automatically share their document types and client groups, a gateway connection requires an administrator to explicitly specify which document types the territories are permitted to send and receive. Moreover, the territories never share client group information.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;A gateway performs functions similar to those performed by a Remote Broker object in a&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;territory.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1. Establishes and maintains a connection with its counterpart in the remote territory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2. Maintains the subscription list and forward queue for the remote territory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3. Retrieves documents for the local territory from the remote gateway.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Note: Unlike a Remote Broker object, however, a gateway requires an administrator to explicitly specify which document types it can “forward to” and “receive from” the remote territory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;How the Gateway Name looks like ?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;localTerritory &amp;gt; remoteTerritory&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Steps to take before configuring the gateway betwen territories.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1. Identify the list of document types that each territory needs to receive from the other&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2. Identify the two Brokers that will host the gateways&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3. Determine what type of authentication and encryption is required between the territories&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;4. Create and configure each gateway in the gateway pair.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;How to define a gateway pair?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 In My webMethods: Messaging &amp;gt; Broker Territories &amp;gt; Gateways.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 Click Add.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3 On the Create Gateway Pair tab, select the two Brokers that will form the gateway connection.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;4 Click Create.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;5 Then we need to select the Document Types which need to flow through the Gateway Connection.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Gateway Filters:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;The Broker uses the filter string to determine which documents match your criteria and allows only those documents that match the filter string to pass through the gateway.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;How to delete a gateway connection?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 In My webMethods: Messaging &amp;gt; Broker Territories &amp;gt; Gateways.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 In the Territory Gateways List, select the checkbox beside the gateway(s) that you want to delete.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3 Click Delete.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;How to Pause and resume a Document Flow in Gateway?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To Pause:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 In My webMethods: Messaging &amp;gt; Broker Territories &amp;gt; Gateways&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 Click Details for the gateway whose outbound flow of documents you want to pause.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3 On the Configuration tab, click Pause Forwarding.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To Resume:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1 In My webMethods: Messaging &amp;gt; Broker Territories &amp;gt; Gateways.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2 Click Details for the gateway whose outbound flow of documents you want to restore.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;3 On the Configuration tab, click Resume Forwarding.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Note:It does not prevent that gateway from receiving documents from the remote territory. To halt the flow of inbound documents, you must pause the gateway in the remote territory, too.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;THIS completes all the high level picture of the wM Broker Tool.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Other Info:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;What are Infosets?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Infosets contain client application-specific information stored in the format of a Broker document. The infoset information is based on the application that created the client (for example, both JMS and Test Client store data in the infoset field), and the application uses the infoset to store specific configuration information for its own use.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Can we copy document Type between Brokers?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;You can copy document types between any Brokers to which you have access in one of two ways:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1. Copy and paste.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2. Export and Import. When you use the export-import functionality, My webMethods&amp;nbsp;places the exported document type information in a file. The administrator for the&amp;nbsp;destination Broker then imports the file. To use the export-import functionality, you&amp;nbsp;must have administrator access. For more information about using the export-import&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;functionality&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;What is Can-Publish and Can-Subscribe?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;This feature is w.r.t to document types, which we will select when the respective document wants to flow between two brokers within territories.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;What is Allow-Forward and Allow-Receive ?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;This feature is w.r.t to document types, which we will select when the respective document wants to flow between two Territories through Gateway.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;What is Remote Broker Object?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Each Broker in a territory maintains a Remote Broker object for each of the Brokers to which&amp;nbsp;it is connected. This object acts as the server-side state object for the Broker at the other&amp;nbsp;end of the connection.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/2445078310086435125/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2015/05/broker-concepts-in-webmethods.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/2445078310086435125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/2445078310086435125'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2015/05/broker-concepts-in-webmethods.html' title='Broker Concepts In WebMethods'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3daN7kJUiiwhoFGpUgoGbUaf9NpqKKPLLQ3o5_eBDhpCwSImrQ9mmvdgHh8lCPR2IJMM1OlmPRxwXUhmMDhclPc446WTxeONWs5CBetlXipuUkOZXuvHvlAqNgbqX72mGLBt0I_dyWwNG/s72-c/Broker1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-1500374645121599363</id><published>2015-04-13T02:41:00.000-07:00</published><updated>2015-04-13T02:41:00.774-07:00</updated><title type='text'>Webmethods steps</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: large;&quot;&gt;&lt;b&gt;Webmethods VS Tibco steps&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
WebMethods and Tibco are the two most popular Enterprise Application Integration tools in the market today.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
Lets look at some technical details to bring out the differences between them.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
If you understand EAI, you’ll probably understand Hub and Spoke Architecture and Bus architecture.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;img alt=&quot;&quot; class=&quot;alignleft&quot; src=&quot;http://www.fulltablescan.com/uploads/hub_and_spoke.PNG&quot; height=&quot;182&quot; style=&quot;border-radius: 3px; border: 0px; box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 4px; float: left; height: auto; margin: 0.857142857rem 1.714285714rem 0.857142857rem 0px; max-width: 100%; padding: 0px; vertical-align: baseline;&quot; title=&quot;Hub and Spoke Architecture&quot; width=&quot;310&quot; /&gt;&lt;br /&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1. Hub and Spoke Vs Bus Architecture&lt;/strong&gt;&lt;br /&gt;
&lt;b style=&quot;line-height: 19.2000007629395px;&quot;&gt;WebMethods &lt;/b&gt;&lt;span style=&quot;line-height: 19.2000007629395px;&quot;&gt;is &lt;/span&gt;&lt;b style=&quot;line-height: 19.2000007629395px;&quot;&gt;Hub and Spoke Architecture&lt;/b&gt;&lt;span style=&quot;line-height: 19.2000007629395px;&quot;&gt; and Tibco is Bus architecture.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19.2000007629395px;&quot;&gt;Hub and spoke is some thing where you have a centralized server, and all the data lines extending from it like spokes whereas&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;line-height: 19.2000007629395px;&quot;&gt;Bus architecture is like a data bus connecting and serving data to all the applications connected to it. One has to imagine many practical scenarios before one can perfectly avoid confusion between the two.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2. Broker Vs EMS&lt;/strong&gt;&lt;br /&gt;
&lt;b&gt;WebMethod &lt;/b&gt;has a product called Broker Server. &lt;u&gt;This is their way of implementing JMS ‘kind of stuff’. I say ‘kind of’ because it can be used easily only with webMethods Integration server&lt;/u&gt;. Other data can be exchanged only through some extra wrappers/adapters.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
On the other hand Tibco came out with a complete 100% JMS implementation which they say is written in C(and they also claim that because its written in C, its faster – I have doubts). The product is called EMS. One can create queues and publish and subscribe to it.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;3. Document Vs XML&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19.2000007629395px;&quot;&gt;WebMethods internally stores each structure as a document. The broker can understand only documents. This means that if you have an XML , you’d first need to create a document out of it and then will be able to use it on their brokers(off course they provide API for conversion)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
Tibco is quite good at these. You can send and receive just any XML or data by defining a schema. Hats off on that..&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;4. Packages Vs EARs&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19.2000007629395px;&quot;&gt;In Webmethods, each module or project is represented as a package. Each package may have functions called flow services. These can be invoked by other packages residing on the same Integration server. A package can contain their own flow language code(which is in XML). This gets converted internally into Java code. A Java service will have pure Java code.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
Tibco deployment is more like a Enterprize archive(EAR). You need to pack all your compiled code and then deploy to the server(called BusinessWorks Engine).&lt;br /&gt;
This can sometimes be problematic because we have to have our own version control system, whereas webmethods has it inbuilt.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;5. Integration Server Vs BusinessWorks&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19.2000007629395px;&quot;&gt;Webmethods has a centralized server where all the code is deployed. This is called an Integration Server. An integration server will also contain their built in services.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
Tibco on the other hand has the product called BusinessWorks. EAR files are deployed on the BW engines to work out the trick.&lt;br /&gt;
At the end, I feel both are nothing but tweaked tomcat servers!!!&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;6. Services Vs Pallets.&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19.2000007629395px;&quot;&gt;A service in WebMethod , be it built-in or user built is a small function of a package(think of it as a class). There is a set of complete startup utilities which WebMethods provides. These are called Built-in Servcies&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
Tibco has a concept of pallets. These pallets are also some small function. But the implemennntation is done in just one city!&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;7. Triggers Vs Queues&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19.2000007629395px;&quot;&gt;Whenever a data comes to the Broker from an Integration server or rather say, webmethods Broker receieves a Queue, then a Trigger is called. These triggers in WebMethods do nothing but call another service[built-in or custom built].&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
JMS implementation of TIBCO called EMS does a delivery of the message(JMS message -Remember it can be anything!) to all the clients who have subscribed to the Queue.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;8. Developer Vs Designer&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19.2000007629395px; text-align: center;&quot;&gt;Developer is for Webmethods. Its a java (old fashioned look, revamped in new version) based IDE which connects to IntegrationServer and allows you to ‘drag-n-drop-programming’. It gives you options to watch variables, debug, step through etc.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
Tibco Designer – This is also a Java based tool which allows you to create your processes. You have have predefined template (basically a folder structure) for a new project and build everything accordingly. It gives you options for testing/debugging with breakpoints etc.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;9. Flow Language Vs Flow Charting&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19.2000007629395px;&quot;&gt;Webmethods uses a language called Flow Language. A flow language consists of simple programming constricts like looping, branching, breaking etc. A flow service is written in Flow Language and comprises of Flow Steps(instructions ). Everything is drag and drop with some basic property setting such as Input/Output and pipeline variables.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
Tibco implements everything like a flow chart. There is a canvas where start and stop end points are given. We can drag and drop existing processes and connect them with flow lines. These flow lines carry data with them in its pipeline kind of implementation.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
It has to be noted that Webmethod’s earlier version (say around 3-4) had a similar interface what Tibco has it today. Further to that, Webmethods 7 interfaces have changed a lot from webmethods 6.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.2000007629395px; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/1500374645121599363/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2015/04/webmethods-steps.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/1500374645121599363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/1500374645121599363'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2015/04/webmethods-steps.html' title='Webmethods steps'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-6265901886589548728</id><published>2015-02-17T06:01:00.004-08:00</published><updated>2015-02-17T06:01:40.851-08:00</updated><title type='text'>How to use ExtJS 4 + JQuery together</title><content type='html'>&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-family: ProximaNova-Reg; font-size: 15px; line-height: 22.5px; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: ProximaNova-Reg; font-size: large;&quot;&gt;&lt;span style=&quot;line-height: 22.5px;&quot;&gt;&lt;b&gt;How to use ExtJS 4 + JQuery together&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-family: ProximaNova-Reg; font-size: 15px; line-height: 22.5px; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-size: 15px; line-height: 22.5px; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;This is an example of how to use&amp;nbsp;&lt;a href=&quot;http://www.sencha.com/&quot; style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; color: #20328e; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Ext JS 4&lt;/b&gt;&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href=&quot;http://jquery.com/&quot; style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; color: #20328e; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;JQuery&lt;/b&gt;&amp;nbsp;&lt;/a&gt;in an application together.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-size: 15px; line-height: 22.5px; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;To use&amp;nbsp;&lt;a href=&quot;http://www.sencha.com/&quot; style=&quot;border: 0px; color: #20328e; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Ext JS 4&lt;/b&gt;&lt;/a&gt;&amp;nbsp;with any JS frameowork is very simple: you need to import the js framework file (in this case&amp;nbsp;&lt;a href=&quot;http://jquery.com/&quot; style=&quot;border: 0px; color: #20328e; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;JQuery&amp;nbsp;&lt;/a&gt;) and import Ext JS. ANd you are ready to develop with both frameworks!&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-size: 15px; line-height: 22.5px; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;It is very basic and simple, but I get some emails asking about it once in a while, so I thought it would be nice to share, in case you did not use both in a project together before.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-size: 15px; line-height: 22.5px; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Following is how the sample project structure looks like:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-family: ProximaNova-Reg; font-size: 15px; line-height: 22.5px; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;a href=&quot;http://loianegroner.com/wp-content/uploads/2011/08/extjs4_jquery_loiane.png&quot; style=&quot;border: 0px; color: #20328e; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;aligncenter size-full wp-image-1146&quot; height=&quot;154&quot; src=&quot;http://loianegroner.com/wp-content/uploads/2011/08/extjs4_jquery_loiane.png&quot; style=&quot;border: 0px; float: none; margin: 0px auto; outline: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;extjs4_jquery_loiane&quot; width=&quot;170&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-family: ProximaNova-Reg; font-size: 15px; line-height: 22.5px; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-size: 15px; line-height: 22.5px; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;u&gt;Then the approach is very easy:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;Ext JS 4 + JQuery&amp;lt;/title&amp;gt;
 
    &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;ext4/resources/css/ext-all.css&quot; /&amp;gt;
 
    &amp;lt;script type=&quot;text/javascript&quot; src=&quot;jquery/jquery-1.6.2.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script type=&quot;text/javascript&quot; src=&quot;ext4/ext-all.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
    Ext.onReady(function() {
        &lt;span style=&quot;background-color: #9fc5e8;&quot;&gt;Ext.Msg.alert(&#39;Alert&#39;,&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;$(&#39;#divId&#39;).text()&lt;/span&gt;&lt;span style=&quot;background-color: #9fc5e8;&quot;&gt;);&lt;/span&gt;
 
    });
    &amp;lt;/script&amp;gt;
    &amp;lt;div id=&quot;divId&quot; style=&quot;padding:20px;&quot;&amp;gt;Using Ext JS 4 + JQuery&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
&lt;pre&gt;
&lt;/pre&gt;
&lt;pre&gt;
&lt;/pre&gt;
&lt;pre&gt;
&lt;/pre&gt;
&lt;pre&gt;Ref (&lt;a href=&quot;http://css.dzone.com/articles/how-use-extjs-4-jquery&quot;&gt;http://css.dzone.com/articles/how-use-extjs-4-jquery&lt;/a&gt;)&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-family: ProximaNova-Reg; font-size: 15px; line-height: 22.5px; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/6265901886589548728/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2015/02/how-to-use-extjs-4-jquery-together.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/6265901886589548728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/6265901886589548728'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2015/02/how-to-use-extjs-4-jquery-together.html' title='How to use ExtJS 4 + JQuery together'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-1206617350588532073</id><published>2012-10-01T05:10:00.005-07:00</published><updated>2012-10-01T05:10:57.357-07:00</updated><title type='text'>CMS or Web-Framework</title><content type='html'>&lt;div class=&quot;post-text&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Content Management Solutions (CMS) are 
platforms you can install on your web server that allow you to choose or
 create a theme and begin adding content to your website.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;CMS solutions
 are great for blogs, news sites, and basic corporate or informational 
websites where the intent is to have pages with mostly text, links and 
images on them.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;For example &lt;a href=&quot;http://wordpress.org/&quot;&gt;Wordpress&lt;/a&gt; and &lt;a href=&quot;http://drupal.org/&quot;&gt;Drupal&lt;/a&gt;
 are CMS platforms (Wordpress started off as a Blog platforms and has 
evolved into a CMS).&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Also, some CMS solutions are more advanced and can
 do advanced websites they tend to be more specific and/or cost money.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;In addition to basic text, links and images, most CMS solutions allow
 for additional plugins that allow Web 2.0 items to be embedded in the 
content area of a page or in the menu or sidebar.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;By Web 2.0 I mean 
more advanced features that create dynamic content, like Google Maps or 
interactive content.  Some of these things can be easily embedded 
without plugins depending on how easy the content creator has made it to
 embed.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Wordpress for instance has &lt;a href=&quot;http://wordpress.org/extend/plugins/&quot;&gt;thousands of plugins&lt;/a&gt;. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Some plugins are not CMS specific.  A good example would be &lt;a href=&quot;http://disqus.com/&quot;&gt;Disqus&lt;/a&gt;, which lets you add comments to your website by adding a small amount of code to your html.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;A web framework is just a software framework built to work on website
 code.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Frameworks can be in any language.  Trying to mesh frameworks 
from different languages can be a challenge though.  Usually, part of 
the framework code is built to work on the server side and is never seen
 by the client.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Frameworks are small to large size code packages that 
can be used to build websites more quickly.  They can add a vast array 
of functionality to your site.  Some examples are &lt;a href=&quot;http://cakephp.org/&quot;&gt;CakePHP&lt;/a&gt;, anything installed with &lt;a href=&quot;http://nuget.org/&quot;&gt;NuGet&lt;/a&gt; for .Net, or &lt;a href=&quot;http://rubyonrails.org/&quot;&gt;Rails&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Finally, another way to look at it is that most CMS solutions, are 
web frameworks themselves.  They are just on the larger end of the code 
base scale.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/1206617350588532073/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/10/cms-or-web-framework.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/1206617350588532073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/1206617350588532073'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/10/cms-or-web-framework.html' title='CMS or Web-Framework'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-8196518193757080318</id><published>2012-10-01T05:10:00.002-07:00</published><updated>2012-10-01T05:10:13.504-07:00</updated><title type='text'> JBoss AS 7 </title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s1600/jboss-logo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;198&quot; src=&quot;http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s320/jboss-logo.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;This is an introduction tutorial to the newest &lt;strong&gt;JBoss AS 7&lt;/strong&gt;
 which appeared in the download section for the first time in Nov 2010.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span class=&quot;xtypo_info&quot;&gt;JBoss AS 7 does not come with an installer; it is simply a matter of extracting the compressed archive.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;After
 you have installed JBoss, it is wise to perform a simple startup test 
to validate that there are no major problems with your Java VM/operating
 system combination. To test your installation, move to the bin 
directory of your &lt;u&gt;&lt;b&gt;JBOSS_HOME&lt;/b&gt;&lt;/u&gt; directory and issue the following command:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;

&lt;pre&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;standalone.bat # Windows users
$ standalone.sh # Linux/Unix users      &lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The above command starts up a JBoss standalone instance that&#39;s 
equivalent of starting the application server with the run.bat/run.sh 
script used by earlier AS releases.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;You will notice &lt;u&gt;&lt;b&gt;how amazingly fast 
is starting&lt;/b&gt;&lt;/u&gt; the new release of the application server; this is due to 
the new modular architecture, which only starts up necessary parts of 
the application server container needed by loaded applications.&lt;br /&gt;&lt;br /&gt;If
 you need to customize the startup properties of your application 
server, then you need to open the &lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;u&gt;&lt;b&gt;standalone.conf&lt;/b&gt;&lt;/u&gt;&lt;/span&gt; (or 
standalone.conf.bat for the Windows users) where the memory requirements
 of JBoss are declared.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Here&#39;s the Linux core section of it:&lt;br /&gt;&lt;span class=&quot;xtypo_code&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;if [ &quot;x$JAVA_OPTS&quot; = &quot;x&quot; ]; then
JAVA_OPTS=&quot;&lt;b&gt;-Xms64m&lt;/b&gt; &lt;b&gt;-Xmx512m&lt;/b&gt; &lt;b&gt;-XX:MaxPermSize=256m&lt;/b&gt; -Dorg.jboss.resolver.
warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 - Dsun.rmi.dgc.
server.gcInterval=3600000&quot;
fi&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;So, by default, the application 
server starts with a minimum memory requirement of &lt;b&gt;64MB&lt;/b&gt; of heap space 
and a maximum of &lt;b&gt;512MB&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;This will be just enough to get started, 
however, if you need to run a core Java EE application on it, you will 
likely require at least 1GB of heap space or 2GB or more depending on 
your application type. Generally speaking, 32-bit machines cannot 
execute a process whose space exceeds 2GB, however on 64 bit machines, 
there&#39;s essentially no limit to process size.&lt;/span&gt;&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;You can verify that the server is reachable from the network by 
simply pointing your browser to the application server&#39;s welcome page, 
which is reachable by default at the well-known address: &lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;http://localhost:8080&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Connecting to the server with the command line interface&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;If you have been using previous releases of the application server 
you might have heard about the &lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;twiddle&lt;/b&gt;&lt;/span&gt; command -line utility that 
queried the MBeans installed on the application server.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;u&gt;This utility has
 been replaced by a more sophisticated interface named the Command Line 
Interface (CLI)&lt;/u&gt;, which can be found in the JBOSS_HOME/bin folder.&lt;br /&gt;&lt;br /&gt;Just launch the &lt;strong&gt;jboss-cli.bat script&lt;/strong&gt; (or jboss-admin.sh for Linux users) and you will be able to manage the application server via a shell interface.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Now issue the &lt;strong&gt;connect [Ipaddress:port]&lt;/strong&gt; command to connect to the management interface:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;

&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[disconnected /] connect
Connected to localhost:9999&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Connecting to a remote host&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;

&lt;div class=&quot;ja-typo-box box-sticky&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;ja-typo-box box-sticky&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Starting from the 
7.1.0 release &lt;u&gt;&lt;b&gt;there is security enabled&lt;/b&gt;&lt;/u&gt; by  default on the AS 7.1 
distribution for remote clients.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;ja-typo-box box-sticky&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;ja-typo-box box-sticky&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Thus management interfaces are secured 
by default to prevent  &lt;strong&gt;unauthorized remote&lt;/strong&gt; access whilst still allowing access for local users  for an easier out of the box experience.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;ja-typo-box box-sticky&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;If you are connecting to a remote host controller, then you need to provide your credentials:&lt;/span&gt;&lt;br /&gt;

&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;./jboss-cli.sh --connect 192.168.1.1
 Authenticating against security realm: 192.168.1.1
 Username:admin
 Password:*****
 Connected to standalone controller at 192.168.1.1:9999
 [
 &lt;a href=&quot;mailto:standalone@192.168&quot;&gt;standalone@192.168&lt;/a&gt;.1.1:9999 /]&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;To add &lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;u&gt;&lt;b&gt;new users to your management interfaces&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;, then you need use the &lt;strong&gt;add-user.sh/add-user.bat&lt;/strong&gt; file.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The users defined in the management realm are used for the 
authentication of remote CLI clients.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;By definition all HTTP access is 
considered remote, thus if you want to use the Web administration 
console you will need to define users at first.&lt;/span&gt;&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;This utility requires the following pieces of information for the new user: -&lt;/span&gt;&lt;br /&gt;

&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;strong&gt;Type - &lt;/strong&gt;You can choose between application users 
(contained in application-users.properties) and management users 
(mgmt-users.properties) which is default. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;strong&gt;Realm &lt;/strong&gt;- this is the name of the realm used to 
secure the management interfaces, by default it is &#39;ManagementRealm&#39; so 
you can just press enter, if you change the realm as described below 
this is where you need to enter your new realm name.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;strong&gt;Username &lt;/strong&gt;- the username needs to be alpha numeric.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;strong&gt;Password &lt;/strong&gt;- At the moment the main restriction on this field is that is can not be the same as the username.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Here&#39;s how to add a new &lt;strong&gt;Management &lt;/strong&gt;user.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;What type of user do you wish to add?
 &amp;nbsp;a) Management User (mgmt-users.properties)
 &amp;nbsp;b) Application User (application-users.properties)
 (a): a
 
 Enter the details of the new user to add.
 Realm (ManagementRealm) :
 Username : user1234
 Password :
 Re-enter Password :
 About to add user &#39;user1234&#39; for realm &#39;ManagementRealm&#39;
 Is this correct yes/no? yes
      &lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Stopping JBoss&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Probably the easiest way to stop JBoss is by sending an interrupt signal with Ctrl+C.&lt;br /&gt;However,
&lt;u&gt;&lt;b&gt; if your JBoss process was launched in the background&lt;/b&gt;&lt;/u&gt; or rather is 
running on another machine (see next), then you can use the CLI 
interface to issue an immediate shutdown command:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;

&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[disconnected /] connect
Connected to localhost:9999
[localhost:9999 /] :shutdown&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;There is 
actually one more option to shutdown the application server, which is 
pretty useful if you need to shut down the server from within a script. 
This option consists of passing the --connect option to the admin shell,
 thereby switching off the interactive mode:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;

&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;jboss-cli.bat --connect command=:shutdown # Windows
jboss-cli.sh --connect command=:shutdown # Unix / Linux&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;strong&gt;Restarting JBoss&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The command-line Interface contains a lot of useful commands. One of 
the most interesting options is the ability to reload all or parts of 
the AS confi guration using the &lt;strong&gt;reload &lt;/strong&gt;command . When issued on the root node path of the AS server, it is able to reload the services configuration:&lt;/span&gt;&lt;br /&gt;

&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[disconnected /] connect
Connected to localhost:9999
[localhost:9999 /] :reload&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;strong&gt;The new server structure&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The first thing you&#39;ll notice when you browse through the application
 server folders is that its file system is basically divided into two 
core parts: the dichotomy reflects the distinction between &lt;span style=&quot;background-color: yellow;&quot;&gt;standalone &lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;servers&lt;/span&gt; &lt;/strong&gt;and &lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;strong&gt;domain &lt;/strong&gt;servers&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;

&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;img alt=&quot;JBoss as 7 tutorial&quot; height=&quot;407&quot; src=&quot;http://www.mastertheboss.com/images/stories/jboss/6785_01_10.png&quot; width=&quot;525&quot; /&gt;&lt;/span&gt;&lt;br /&gt;

&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span class=&quot;xtypo_info&quot;&gt;A JBoss domain is used to manage and coordinate a set of application server instances.&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span class=&quot;xtypo_rounded2&quot;&gt;JBoss AS 7 in &lt;strong&gt;domain mode&lt;/strong&gt; spawns multiple JVMs which build up the domain.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span class=&quot;xtypo_rounded2&quot;&gt;Besides the AS instances, two more processes are created: the &lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;strong&gt;Domain Controller&lt;/strong&gt;&lt;/span&gt; which &lt;u&gt;acts as management control point of the domain&lt;/u&gt; and the &lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;strong&gt;Host Controller&lt;/strong&gt;&lt;/span&gt; which &lt;u&gt;interacts with the domain Controller to control the lifecycle of the AS instances&lt;/u&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;img alt=&quot;jboss 7 tutorial&quot; height=&quot;419&quot; src=&quot;http://www.mastertheboss.com/images/stories/jboss/jboss7.jpg&quot; width=&quot;387&quot; /&gt;&lt;/span&gt;&lt;br /&gt;

&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;em&gt;JBoss AS 7 running in domain mode&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;

&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;In order to launch JBoss AS 7 in domain mode run the &lt;strong&gt;domain.sh/domain.cmd&lt;/strong&gt; script from the bin folder.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;

&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;strong&gt;Deploying applications on JBoss AS 7&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Applications are deployed differentely depending on the type of 
server.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;u&gt;If you are deploying to a domain of servers then you need the 
Command Line Interface&lt;/u&gt; because the application server needs to be 
informed on which server group/s&amp;nbsp; the deployment is targeted.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;strong&gt;Ex. Deploy an application on all server groups:&lt;/strong&gt;&lt;br /&gt;&lt;span class=&quot;xtypo_code&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

&lt;pre&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;deploy MyApp.war --all-server-groups&lt;/span&gt;&lt;/u&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;strong&gt;Ex. Deploy an application on one or more server groups (separated by a comma):&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;

&lt;pre&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;deploy application.ear --server-groups=main-server-group&lt;/span&gt;&lt;/u&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;If you are deploying to a standalone server then you can either use the &lt;u&gt;CLI or drop the deployment unit into the server&lt;/u&gt; &lt;strong&gt;deployments &lt;/strong&gt;folder.&lt;/span&gt;&lt;br /&gt;

&lt;br /&gt;

&lt;div class=&quot;ja-typo-box box-sticky&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;strong&gt;&lt;/strong&gt;The &lt;strong&gt;deployments &lt;/strong&gt;folder
 is the  location in which users can place their deployment content (for
 example,  WAR, EAR, JAR, SAR fi les) to have it automatically deployed 
into the  server runtime. Users, particularly those running production 
systems,  are encouraged to use the JBoss AS management APIs to upload 
and deploy  deployment content instead of relying on the deployment 
scanner  subsystem that periodically&lt;br /&gt;scans this directory&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;As soon as the deployer HD scanner detects the application, the 
module is moved to the work folder of the application, leaving a 
placeholder Test.war.deployed file in the deployments folder.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;img alt=&quot;jboss 7 tutorial&quot; height=&quot;192&quot; src=&quot;http://www.mastertheboss.com/images/stories/jboss/jboss7_deployed.PNG&quot; width=&quot;546&quot; /&gt;&lt;/span&gt;&lt;br /&gt;

&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span class=&quot;xtypo_info&quot;&gt;&lt;span class=&quot;xtypo_info&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span class=&quot;xtypo_info&quot;&gt;&lt;span class=&quot;xtypo_info&quot;&gt;Note: With the default configuration, &lt;strong&gt;packaged &lt;/strong&gt;archives (.ear, .war, .jar, .sar) are automatically deployed. &lt;strong&gt;Exploded&lt;/strong&gt; archives need adding a .dodeploy empty file in the deployments folder to trigger deployment.&lt;/span&gt;&lt;/span&gt;&amp;lt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/8196518193757080318/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/10/jboss-as-7.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/8196518193757080318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/8196518193757080318'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/10/jboss-as-7.html' title=' JBoss AS 7 '/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s72-c/jboss-logo.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-6978928273423971068</id><published>2012-09-07T06:40:00.003-07:00</published><updated>2015-03-26T03:02:06.500-07:00</updated><title type='text'>Microsoft Management Console (MMC) saved query</title><content type='html'>&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-Sym6jfjgeQs/UEnzVYiLc9I/AAAAAAAABWM/bm0qA-lpR6k/s1600/activedirectory.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-Sym6jfjgeQs/UEnzVYiLc9I/AAAAAAAABWM/bm0qA-lpR6k/s320/activedirectory.jpg&quot; height=&quot;228&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;The saved queries function in the Microsoft Management Console (MMC) Active Directory Users and Computers snap-in lets you create, save, and organize queries that you&#39;ll use repeatedly for administering Active Directory (AD) objects.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;You can create queries using the wizardlike options on the New Query dialog box, or you can define custom searches that can be used to gather whatever objects you like simply by keying in your own LDAP queries.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Here are the steps to follow in the Active Directory Users and Computers console to create a Custom Search saved query:&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;background-color: white; color: #333333; font-size: 12px; margin: 15px; padding: 10px 10px 10px 40px;&quot;&gt;
&lt;li style=&quot;list-style-type: decimal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Right click the Saved Queries folder and select New, Query.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: decimal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Enter an appropriate Name and Description.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: decimal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Make sure the query root is set to the domain level you want the query to pertain to.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: decimal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Select the&amp;nbsp;&lt;em&gt;Include subcontainers&lt;/em&gt;&amp;nbsp;check box if you want the query to search all subcontainers.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: decimal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Click Define Query.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: decimal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;In the Find dialog box, click the Find drop-down arrow and select Custom Search.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: decimal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;On the Advanced tab, enter your LDAP query string into the&amp;nbsp;&lt;em&gt;Enter LDAP query&lt;/em&gt;&amp;nbsp;box.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: decimal;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Click OK twice.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;What follows is a list of queries that can help you administer AD—and get you started on the road to using saved queries to simplify AD management.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Groups Like Service (finds any group name that contains the word&amp;nbsp;&lt;em&gt;service&lt;/em&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(objectcategory=group)(samaccountname=*service*)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Description Like Service (finds accounts in which the description contains the word&amp;nbsp;&lt;em&gt;service&lt;/em&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(objectcategory=person)(description=*service*)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Groups Like Admin (finds any groups whose name contains the word&amp;nbsp;&lt;em&gt;admin&lt;/em&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(objectcategory=group)(samaccountname=*admin*)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Universal Groups (finds groups with universal scope)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(groupType:1.2.840.113556.1.4.803:=8)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Groups with No Members (finds groups that have no members in them)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(objectCategory=group)(!member=*)&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Note: The ! symbol means &quot;Not&quot; and * means &quot;Has a value,&quot; so the combination of the two evaluates to “Doesn’t have a value.”&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Global, Domain Local, or Universal Groups (finds any group defined as a Global Group, a Domain Local Group, or a Universal Group)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(groupType:1.2.840.113556.1.4.804:=14)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Global, Domain Local, or Universal Groups with No Members (finds any group defined as a Global Group, a Domain Local Group, or a Universal Group that has no members)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(groupType:1.2.840.113556.1.4.804:=14)(!member=*)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;User Like Service (finds any account ID that has a name containing the word&amp;nbsp;&lt;em&gt;service&lt;/em&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(objectcategory=person)(samaccountname=*service*)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Password Does Not Expire (finds user accounts with nonexpiring passwords)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;objectCategory=person)(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=65536)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;No Employee ID (finds any user account that has no employeeid value)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(objectcategory=person)(!employeeid=*)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;No Login Script (finds accounts that don&#39;t run a logon script)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(objectcategory=person)(!scriptPath=*)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;No Profile Path (finds accounts that don’t have roaming profiles)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(objectcategory=person)(!profilepath=*)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Must Change Password and Not Disabled (finds nondisabled accounts that must change their password at next logon)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(objectCategory=person)(objectClass=user)(pwdLastSet=0)(!useraccountcontrol:1.2.840.113556.1.4.803:=2)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;UserList Exclude Disabled Account (finds all user accounts except those that are disabled)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(objectCategory=person)(objectClass=user)(!useraccountcontrol:1.2.840.113556.1.4.803:=2)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Locked Out Accounts (finds all locked out accounts)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(objectCategory=person)(objectClass=user)(useraccountcontrol:1.2.840.113556.1.4.803:=16)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Domain Local Groups (finds groups with Domain Local scope)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(groupType:1.2.840.113556.1.4.803:=4)&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;Users with Email Address (finds accounts that have an email address)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(objectcategory=person)(mail=*)&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; margin-bottom: 8px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Users with No Email Address (finds accounts with no email address)&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px solid rgb(204, 204, 204); color: #333333; font-size: 12px; margin: 5px; max-height: 250px; min-height: 25px; overflow: auto; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(objectcategory=person)(!mail=*)&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/6978928273423971068/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/09/the-saved-queries-function-in-microsoft.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/6978928273423971068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/6978928273423971068'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/09/the-saved-queries-function-in-microsoft.html' title='Microsoft Management Console (MMC) saved query'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-Sym6jfjgeQs/UEnzVYiLc9I/AAAAAAAABWM/bm0qA-lpR6k/s72-c/activedirectory.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-2811542832074476232</id><published>2012-09-07T02:27:00.000-07:00</published><updated>2012-09-07T02:27:25.493-07:00</updated><title type='text'>Connectors on JBoss</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s1600/jboss-logo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;198&quot; src=&quot;http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s320/jboss-logo.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&lt;/h2&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2981261623134351535&quot; id=&quot;Connectors_on_JBoss&quot;&gt;Connectors on JBoss&amp;nbsp;&lt;/a&gt;&lt;/h2&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;
Implementation of the J2EE Connector Architecture (JCA)&lt;/h2&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;JCA is a resource manager integration API whose goal is to &lt;u&gt;standardize 
access to &lt;b style=&quot;background-color: yellow;&quot;&gt;non-relational resources&lt;/b&gt; in the same way the JDBC API 
standardized access to relational data&lt;/u&gt;.&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;The purpose of this notes is 
to introduce the utility of the JCA APIs and then describe the 
architecture of JCA in JBoss.&lt;/span&gt;&lt;/h2&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;u&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2981261623134351535&quot; id=&quot;Connectors_on_JBoss-JCA_Overview&quot;&gt;JCA Overview&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;

         
   &lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;J2EE 1.4 contains a connector architecture (JCA) specification that 
allows for the integration of transacted and secure resource adaptors 
into a J2EE application server environment.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;The JCA specification 
describes the notion of such resource managers as Enterprise Information
 Systems (EIS).&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;Examples of &lt;b&gt;EIS&lt;/b&gt; systems include enterprise resource 
planning packages, &lt;u&gt;mainframe&lt;/u&gt; &lt;u&gt;transaction&lt;/u&gt; &lt;u&gt;processing&lt;/u&gt;, &lt;u&gt;non-Java legacy 
applications&lt;/u&gt;, etc.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;

         &lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
   The reason for focusing on EIS is primarily because the notions of 
transactions, security, and scalability are requirements in enterprise 
software systems. However, the JCA is applicable to any resource that 
needs to integrate into JBoss in a secure, scalable and transacted 
manner.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;In this introduction we will focus on resource adapters as a 
generic notion rather than something specific to the EIS environment.
  &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
   The connector architecture defines a standard SPI (Service Provider 
Interface) for integrating the transaction, security and connection 
management facilities of an application server with those of a resource 
manager.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The SPI defines the system level contract between the resource 
adaptor and the application server.
  &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
   The connector architecture also defines a Common Client Interface 
(CCI) for accessing resources.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The CCI is targeted at EIS development 
tools and other sophisticated users of integrated resources. The CCI 
provides a way to minimize the EIS specific code required by such tools.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Typically J2EE developers will access a resource using such a tool, or a
 resource specific interface rather than using CCI directly. The reason 
is that the CCI is not a type specific API. To be used effectively it 
must be used in conjunction with metadata that describes how to map from
 the generic CCI API to the resource manager specific data types used 
internally by the resource manager.
  &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The purpose of the connector architecture is to enable a resource 
vendor to provide a standard adaptor for its product. A resource adaptor
 is a system-level software driver that is used by a Java application to
 connect to resource.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The resource adaptor plugs into an application 
server and provides connectivity between the resource manager, the 
application server, and the enterprise application. A resource vendor 
need only implement a JCA compliant adaptor once to allow use of the 
resource manager in any JCA capable application server.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
   An application server vendor &lt;u&gt;extends its architecture once to support
 the connector architecture and is then assured of seamless connectivity
 to multiple resource managers&lt;/u&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Likewise, a resource manager vendor 
provides one standard resource adaptor and it has the capability to plug
 in to any application server that supports the connector architecture.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2981261623134351535&quot; id=&quot;JCA_Overview-The_relationship_between_a_J2EE_application_server_and_a_JCA_resource_adaptor&quot;&gt;
            &lt;div class=&quot;figure-contents&quot;&gt;
&lt;div align=&quot;center&quot; class=&quot;mediaobject&quot;&gt;
&lt;img align=&quot;middle&quot; alt=&quot;The relationship between a J2EE application server and a JCA resource adaptor&quot; height=&quot;420&quot; src=&quot;http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/images/jca-ra.jpg&quot; width=&quot;640&quot; /&gt;
               &lt;/div&gt;
&lt;/div&gt;
&lt;/a&gt;&lt;/h2&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2981261623134351535&quot; id=&quot;JCA_Overview-The_relationship_between_a_J2EE_application_server_and_a_JCA_resource_adaptor&quot;&gt;&lt;b&gt;Figure&amp;nbsp;5.1.&amp;nbsp;The relationship between a J2EE application server and a JCA resource adaptor&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/i&gt;&lt;/h2&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;/h2&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-weight: normal; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The application server is extended to provide support for the JCA SPI
 to allow a resource adaptor to integrate with the server connection 
pooling, transaction management and security management facilities. This
 integration API defines a three-part system contract.
  &lt;/span&gt;
         &lt;/h2&gt;
&lt;div class=&quot;itemizedlist&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;ul&gt;
&lt;li&gt;
                  
     
                     &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;bold&quot;&gt;
                        &lt;b&gt;Connection management&lt;/b&gt;
                     &lt;/span&gt;: a contract that allows the application 
server to pool resource connections. The purpose of the pool management 
is to allow for scalability. Resource connections are typically expense 
objects to create and pooling them allows for more effective reuse and 
management.
    &lt;/span&gt;&lt;br /&gt;

               &lt;/li&gt;
&lt;li&gt;
                  
     
                     &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;bold&quot;&gt;
                        &lt;b&gt;Transaction Management&lt;/b&gt;
                     &lt;/span&gt;: a contract that allows the application server transaction manager to manage transactions that engage resource managers.
    &lt;/span&gt;&lt;br /&gt;

               &lt;/li&gt;
&lt;li&gt;
                  
     
                     &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;bold&quot;&gt;
                        &lt;b&gt;Security Management&lt;/b&gt;
                     &lt;/span&gt;: a contract that enables secured access to resource managers.
    &lt;/span&gt;&lt;br /&gt;

               &lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;/h2&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;&amp;nbsp;
 &lt;/span&gt;&lt;/h2&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&lt;/h2&gt;
&lt;h2 class=&quot;title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&lt;/h2&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/2811542832074476232/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/09/connectors-on-jboss.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/2811542832074476232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/2811542832074476232'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/09/connectors-on-jboss.html' title='Connectors on JBoss'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s72-c/jboss-logo.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-524929440771198575</id><published>2012-09-07T02:26:00.001-07:00</published><updated>2012-09-07T02:26:20.027-07:00</updated><title type='text'>First Aid of JVM Crash Issues</title><content type='html'>&lt;div id=&quot;_mcePaste&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Java Virtual Machine is a Native engine which allows
 our Java Applications to run.&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
It performs the code optimization to 
improve the performance.&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
In correct tuning, &lt;b&gt;Low memory allocation&lt;/b&gt;, &lt;b&gt;
extensive code optimization&lt;/b&gt;, &lt;b&gt;bad garbage collection strategy&lt;/b&gt;, &lt;b&gt;API code 
leaking&lt;/b&gt;…etc are some of the reasons which may cause the JVM to crash.&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Analyzing a JVM Crash is one of the very interesting
 and little time taking process sometimes it is even little complex to 
find out the root cause of the JVM Crash.&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Here in this article we will 
see some of the common mistakes, first aid solutions/debugging 
techniques to find out what kind of informations we can get by looking 
into the Core Dump.&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;h2 style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;What is Core Dump &amp;amp; Where to Find It?&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/h2&gt;
&lt;div id=&quot;_mcePaste&quot;&gt;
Code dump is usually a Binary file which gets 
generated by the Operating System when JVM or any other process crashes.&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot;&gt;
Sometimes it also happens that the JVM will not be able to generate the
 Crash dump.&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot;&gt;
In Windows Operating Systems it will be generated in the 
Directory where the “Dr. Watson” tool is installed.&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot;&gt;
In Windows it will 
be usually: &amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;”&lt;b&gt;C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson&lt;/b&gt;“&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;
&lt;div id=&quot;_mcePaste&quot;&gt;
By default in Unix based Operating Systems the Core 
Dump files are created in the directory where the Java Program/Server 
was started even sometimes it is generated in the “/tmp” directory of 
the Operating System.&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot;&gt;
But using the following Java Option we can change 
it’s the Crash Dump/Heap &amp;nbsp; Dump generation locations: &amp;nbsp;&lt;b&gt;-XX:HeapDumpPath=/opt/app/someLocaton/&lt;/b&gt; and &amp;nbsp;&lt;b&gt;-XX:+HeapDump&lt;/b&gt; JVM Options.&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;NOTE:&lt;/b&gt;&lt;/span&gt; These 
Flags does not gurantee that always the Heap/Crash dump will be 
generated at the time of JVM Crash. There are some more reasons behind 
the Core Dump not gets generated…like Process Limitations or the Less 
Disk Quota or unavailability of the Free File Descriptors.&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/524929440771198575/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/09/first-aid-of-jvm-crash-issues.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/524929440771198575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/524929440771198575'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/09/first-aid-of-jvm-crash-issues.html' title='First Aid of JVM Crash Issues'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-1204920265879998363</id><published>2012-08-23T14:05:00.002-07:00</published><updated>2020-01-09T02:53:13.927-08:00</updated><title type='text'>Ubuntu Bootup Howto</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;h2 id=&quot;Directories_and_Configs&quot; style=&quot;background-color: white; border: 0px; color: #333333; font-size: 24px; line-height: 28px; margin: 1em 0px 8px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;u&gt;Directories and Configs&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;border: 0px; color: #333333; font-size: 13px; line-height: 13px; list-style: decimal; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font-style: inherit; line-height: 1.5; margin: 0px 0px 8px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;line891&quot; style=&quot;border: 0px; font-style: inherit; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;strong style=&quot;background-color: yellow; border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/etc/init&lt;/strong&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;is where the upstart init configs live. While they are not scripts themselves, they essentially execute whatever is required to replace sysvinit scripts.&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-17&quot; style=&quot;background-color: white; border: 0px; font-style: inherit; font-style: inherit; line-height: 1; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-style: inherit; line-height: 1.5; margin: 0px 0px 8px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;line891&quot; style=&quot;border: 0px; font-style: inherit; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;strong style=&quot;background-color: yellow; border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/etc/init.d&lt;/strong&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;is where all the traditional sysvinit scripts and the backward compatible scripts for upstart live. The backward compatible scripts basically run&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;background-color: yellow; border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;service myservice start&lt;/strong&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;instead of doing anything themselves. Some just show a notice to use the &quot;service&quot; command.&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-18&quot; style=&quot;background-color: white; border: 0px; font-style: inherit; font-style: inherit; line-height: 1; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-style: inherit; line-height: 1.5; margin: 0px 0px 8px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;line891&quot; style=&quot;border: 0px; font-style: inherit; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;strong style=&quot;background-color: yellow; border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/etc/init/rc-sysinit.conf&lt;/strong&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;controls execution of traditional scripts &lt;u&gt;added manually or with&amp;nbsp;&lt;/u&gt;&lt;/span&gt;&lt;strong style=&quot;background-color: white; border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;u&gt;update-rc.d&lt;/u&gt;&lt;/strong&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;to traditional runlevels in /etc/rc*&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-19&quot; style=&quot;background-color: white; border: 0px; font-style: inherit; font-style: inherit; line-height: 1; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-style: inherit; line-height: 1.5; margin: 0px 0px 0px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;line891&quot; style=&quot;border: 0px; font-style: inherit; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;strong style=&quot;background-color: yellow; border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/etc/default&lt;/strong&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;has &lt;u&gt;configuration files&lt;/u&gt; allowing you to control the behaviour of both traditional sysvinit scripts and new upstart configs.&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-20&quot; style=&quot;background-color: white; border: 0px; font-style: inherit; font-style: inherit; line-height: 1; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-21&quot; style=&quot;background-color: white; border: 0px; font-style: inherit; font-style: inherit; line-height: 1; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; border: 0px; color: #333333; font-size: 13px; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;h2 id=&quot;Using_Services&quot; style=&quot;background-color: white; border: 0px; color: #333333; font-size: 24px; font-weight: normal; line-height: 28px; margin: 1em 0px 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Using Services&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-22&quot; style=&quot;background-color: white; border: 0px; color: #333333; font-size: 13px; line-height: 13px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-23&quot; style=&quot;background-color: white; border: 0px; color: #333333; font-size: 13px; line-height: 13px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;line874&quot; style=&quot;background-color: white; border: 0px; color: #333333; font-size: 13px; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Please note that generally, you can use either traditional sysvinit scripts and the methods of working with them as well as the new upstart configs and the command: &quot;service&quot; interchangeably. It is however recommended you use the new upstart methods which are both forward and backward compatible.&lt;span class=&quot;anchor&quot; id=&quot;line-24&quot; style=&quot;border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-25&quot; style=&quot;border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; border: 0px; color: #333333; font-size: 13px; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Starting a Service&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;border: 0px; color: #333333; font-size: 13px; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); font-family: UbuntuMono, courier, monospace; font-weight: normal; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;strong style=&quot;border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# Traditional:
&lt;span class=&quot;anchor&quot; id=&quot;line-2&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;/etc/init.d/myservice start
&lt;span class=&quot;anchor&quot; id=&quot;line-3&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;# Upstart
&lt;span class=&quot;anchor&quot; id=&quot;line-4&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;service myservice start&lt;/strong&gt;&lt;/pre&gt;
&lt;strong style=&quot;border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-33&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;ubuntu&amp;quot; , &amp;quot;ubuntu beta&amp;quot; , &amp;quot;bitstream vera sans&amp;quot; , &amp;quot;dejavu sans&amp;quot; , &amp;quot;tahoma&amp;quot; , sans-serif; font-weight: normal; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-34&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;ubuntu&amp;quot; , &amp;quot;ubuntu beta&amp;quot; , &amp;quot;bitstream vera sans&amp;quot; , &amp;quot;dejavu sans&amp;quot; , &amp;quot;tahoma&amp;quot; , sans-serif; font-weight: normal; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; border: 0px; font-weight: normal; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Stopping a Service&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-35&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-36&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;strong style=&quot;border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/strong&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; border: 0px; font-family: Ubuntu, &#39;Ubuntu Beta&#39;, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-weight: normal; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-37&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-38&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-39&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-40&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-41&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;strong style=&quot;border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); font-family: UbuntuMono, courier, monospace; font-weight: normal; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-1-1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;# Traditional: 
&lt;span class=&quot;anchor&quot; id=&quot;line-2-1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;/etc/init.d/myservice stop
&lt;span class=&quot;anchor&quot; id=&quot;line-3-1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;# Upstart
&lt;span class=&quot;anchor&quot; id=&quot;line-4-1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;service myservice stop&lt;/pre&gt;
&lt;span class=&quot;anchor&quot; id=&quot;line-42&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;ubuntu&amp;quot; , &amp;quot;ubuntu beta&amp;quot; , &amp;quot;bitstream vera sans&amp;quot; , &amp;quot;dejavu sans&amp;quot; , &amp;quot;tahoma&amp;quot; , sans-serif; font-weight: normal; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-43&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;ubuntu&amp;quot; , &amp;quot;ubuntu beta&amp;quot; , &amp;quot;bitstream vera sans&amp;quot; , &amp;quot;dejavu sans&amp;quot; , &amp;quot;tahoma&amp;quot; , sans-serif; font-weight: normal; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line867&quot; style=&quot;background-color: white; border: 0px; font-weight: normal; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Getting a list of Services&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-44&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-45&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; border: 0px; font-family: Ubuntu, &#39;Ubuntu Beta&#39;, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-weight: normal; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;anchor&quot; id=&quot;line-46&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-47&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-48&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-49&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-50&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px dashed rgb(193, 180, 150); font-family: UbuntuMono, courier, monospace; font-weight: normal; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-1-2&quot; style=&quot;background-color: #f3f3f3; border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;# Traditional:
&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-2-2&quot; style=&quot;background-color: #f3f3f3; border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;ls /etc/init.d
&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-3-2&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;# Upstart: &lt;/span&gt;&lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;
&lt;span class=&quot;anchor&quot; id=&quot;line-4-2&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;service --status-all&lt;/span&gt;&lt;/pre&gt;
&lt;span class=&quot;anchor&quot; id=&quot;line-51&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;ubuntu&amp;quot; , &amp;quot;ubuntu beta&amp;quot; , &amp;quot;bitstream vera sans&amp;quot; , &amp;quot;dejavu sans&amp;quot; , &amp;quot;tahoma&amp;quot; , sans-serif; font-weight: normal; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;ul style=&quot;background-color: white; border: 0px; font-family: Ubuntu, &#39;Ubuntu Beta&#39;, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-weight: normal; list-style: decimal; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1.5; margin: 0px 0px 0px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;line891&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Note:&lt;/strong&gt;&amp;nbsp;Upstart method will show both traditional and upstart services.&lt;span class=&quot;anchor&quot; id=&quot;line-52&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-53&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line891&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; border: 0px; font-weight: normal; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Adding a Service to Default runlevels&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-54&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-55&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; border: 0px; font-family: Ubuntu, &#39;Ubuntu Beta&#39;, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-weight: normal; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;anchor&quot; id=&quot;line-56&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-57&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-58&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;border: 1px dashed rgb(193, 180, 150); font-family: UbuntuMono, courier, monospace; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-weight: normal;&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-1-3&quot; style=&quot;background-color: #f3f3f3; border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #f3f3f3; font-weight: normal;&quot;&gt;# Traditional
&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-2-3&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;update-rc.d&lt;/span&gt;&lt;span style=&quot;background-color: #f3f3f3;&quot;&gt; apache2 defaults&lt;/span&gt;&lt;/pre&gt;
&lt;span class=&quot;anchor&quot; id=&quot;line-59&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;ubuntu&amp;quot; , &amp;quot;ubuntu beta&amp;quot; , &amp;quot;bitstream vera sans&amp;quot; , &amp;quot;dejavu sans&amp;quot; , &amp;quot;tahoma&amp;quot; , sans-serif; font-weight: normal; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-60&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;ubuntu&amp;quot; , &amp;quot;ubuntu beta&amp;quot; , &amp;quot;bitstream vera sans&amp;quot; , &amp;quot;dejavu sans&amp;quot; , &amp;quot;tahoma&amp;quot; , sans-serif; font-weight: normal; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;ul style=&quot;background-color: white; border: 0px; font-family: Ubuntu, &#39;Ubuntu Beta&#39;, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-weight: normal; list-style: decimal; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1.5; margin: 0px 0px 0px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;line891&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Upstart&lt;/strong&gt;: there is no concept of runlevels, everything is event driven with dependencies. You would add an upstart config to&lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/etc/init&lt;/strong&gt;&amp;nbsp;and potentially source a config file in&amp;nbsp;&lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/etc/default&lt;/strong&gt;&amp;nbsp;to allow users to override default behaviour.&lt;span class=&quot;anchor&quot; id=&quot;line-61&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-62&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; border: 0px; font-family: Ubuntu, &#39;Ubuntu Beta&#39;, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-weight: normal; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Removing a Service from Default runlevels&lt;/strong&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-63&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-64&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; border: 0px; font-family: Ubuntu, &#39;Ubuntu Beta&#39;, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-weight: normal; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;anchor&quot; id=&quot;line-65&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-66&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-67&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); font-family: UbuntuMono, courier, monospace; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-1-4&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: normal; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;# Traditional - Something along the lines of
&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-2-4&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;rm /etc/rc*/*myscript&lt;/pre&gt;
&lt;span class=&quot;anchor&quot; id=&quot;line-68&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;ubuntu&amp;quot; , &amp;quot;ubuntu beta&amp;quot; , &amp;quot;bitstream vera sans&amp;quot; , &amp;quot;dejavu sans&amp;quot; , &amp;quot;tahoma&amp;quot; , sans-serif; font-weight: normal; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-69&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;ubuntu&amp;quot; , &amp;quot;ubuntu beta&amp;quot; , &amp;quot;bitstream vera sans&amp;quot; , &amp;quot;dejavu sans&amp;quot; , &amp;quot;tahoma&amp;quot; , sans-serif; font-weight: normal; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;ul style=&quot;background-color: white; border: 0px; list-style: decimal; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font-style: inherit; line-height: 1.5; margin: 0px 0px 0px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;line891&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;strong style=&quot;border: 0px; font-style: inherit; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;ul style=&quot;border: 0px; display: inline !important; list-style: decimal; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; display: inline !important; font-style: inherit; line-height: 1.5; margin: 0px 0px 0px 2.4em; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;line891&quot; style=&quot;background-color: white; border: 0px; font-family: inherit; font-style: inherit; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: normal; line-height: 1; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Upstart&lt;/strong&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;: If no config is available in /etc/default, edit config in &lt;/span&gt;/etc/init&lt;/div&gt;
&lt;div class=&quot;line891&quot; style=&quot;border: 0px; font-style: inherit; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; color: #172232; font-family: arial, helvetica, clean, sans-serif; font-size: 13px; line-height: 15px; margin: 0px 0px 4px; padding: 0px; width: 650px;&quot;&gt;
&lt;/h2&gt;
&lt;h2 style=&quot;background-color: white; color: #172232; line-height: 15px; margin: 0px 0px 4px; padding: 0px; width: 650px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: small;&quot;&gt;&lt;u&gt;Show the List of Installed Packages on Ubuntu or Debian&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 14px; font-weight: normal; line-height: 17px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: small;&quot;&gt;The command we need to use is dpkg –get-selections, which will give us a list of all the currently installed packages.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: small;&quot;&gt;
&lt;blockquote style=&quot;border: 1px dashed rgb(47, 111, 171); clear: both; font-size: 15px; line-height: 1.1em; margin: 0px; padding: 4px 4px 4px 6px;&quot;&gt;
&lt;pre style=&quot;font-size: 13px; line-height: 12px; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: #f9f9f9; font-weight: normal;&quot;&gt;$ &lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;dpkg --get-selections&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; font-weight: normal;&quot;&gt;
adduser                                         install
alsa-base                                       install
alsa-utils                                      install
apache2                                         install
apache2-mpm-prefork                             install
apache2-utils                                   install
apache2.2-common                                install
apt                                             install
apt-utils                                       install&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 14px; font-weight: normal; line-height: 17px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
The full list can be long and unwieldy, so it’s much easier to filter through grep to get results for the exact package you need. For instance, I wanted to see which php packages I had already installed through apt-get:&lt;/div&gt;
&lt;blockquote style=&quot;border: 1px dashed rgb(47, 111, 171); clear: both; font-size: 15px; line-height: 1.1em; margin: 0px; padding: 4px 4px 4px 6px;&quot;&gt;
&lt;pre style=&quot;font-size: 13px; line-height: 12px; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;dpkg --get-selections | grep php&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f9f9f9; font-size: 13px; font-weight: normal; line-height: 12px; padding: 0px;&quot;&gt;libapache2-mod-php5                             install
php-db                                          install
php-pear                                        install
php-sqlite3                                     install
php5                                            install
php5-cli                                        install
php5-common                                     install
php5-gd                                         install
php5-memcache                                   install
php5-mysql                                      install
php5-sqlite                                     install
php5-sqlite3                                    install
php5-xsl                                        install&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 14px; font-weight: normal; line-height: 17px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
For extra credit, you can find the locations of the files within a package from the list by using the dpkg -L command, such as:&lt;/div&gt;
&lt;blockquote style=&quot;border: 1px dashed rgb(47, 111, 171); clear: both; font-size: 15px; line-height: 1.1em; margin: 0px; padding: 4px 4px 4px 6px;&quot;&gt;
&lt;pre style=&quot;font-size: 13px; line-height: 12px; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;dpkg -L php5-gd&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; font-weight: normal;&quot;&gt;
/.
/usr
/usr/lib
/usr/lib/php5
/usr/lib/php5/20060613
/usr/lib/php5/20060613/gd.so
/usr/share
/usr/share/doc
/etc
/etc/php5
/etc/php5/conf.d
/etc/php5/conf.d/gd.ini
/usr/share/doc/php5-gd
&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 14px; font-weight: normal; line-height: 17px; margin-bottom: 20px; margin-top: 20px; padding: 0px;&quot;&gt;
Now I can take a look at the gd.ini file and change some settings around…&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;line891&quot; style=&quot;background-color: white; border: 0px; font-family: inherit; font-style: inherit; line-height: 1.5; margin-bottom: 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/strong&gt;&lt;ul style=&quot;background-color: white; border: 0px; list-style: decimal; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/ul&gt;
&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/1204920265879998363/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/08/ubuntu-bootup-howto.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/1204920265879998363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/1204920265879998363'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/08/ubuntu-bootup-howto.html' title='Ubuntu Bootup Howto'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-8553055573582203556</id><published>2012-08-03T08:19:00.000-07:00</published><updated>2012-08-03T08:19:02.607-07:00</updated><title type='text'></title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s1600/jboss-logo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;198&quot; src=&quot;http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s320/jboss-logo.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h1 dir=&quot;ltr&quot; id=&quot;internal-source-marker_0.5732321570137565&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-size: 24px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Java EE Patterns - Rethinking Best Practices&lt;/span&gt;&lt;/h1&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;I&#39;d like to make you aware of the excellent book Real World Java EE Patterns - Rethinking Best Practices by &lt;/span&gt;&lt;a href=&quot;http://adam-bien.com/inhalte/about/&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #0000ee; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;&quot;&gt;Adam Bien&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; (&lt;/span&gt;&lt;a href=&quot;http://blog.adam-bien.com/&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #0000ee; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;&quot;&gt;blog&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;),
 a Java Champion and renowned consultant, software architect and Java EE
 standardization comitee member. I&#39;d absolutely recommend it to any 
architect or developer serious with Java EE 5 or 6 development, even to 
those not planning to use EJB 3.x (at least prior to reading the book 
:)). It&#39;s a must-read complement to the now a little outdated &lt;/span&gt;&lt;a href=&quot;http://www.corej2eepatterns.com/Patterns2ndEd/&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #0000ee; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;&quot;&gt;Core J2EE patterns&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
 as it updates the patterns for the new bright world of EJB 3/3.1 while 
discarding some of them and introducing some new, extremely useful 
patterns and techniques.&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The
 book starts with an overview of the evolution of Java Enterprise 
Edition and the hard issues it solves for us, continues with the new and
 updated patterns and strategies and concludes with an introduction of 
two opposite architectures you can build with Java EE 5/6, namely lean 
SOA and domain-driven (which itself makes it worth reading).&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;What
 I really appreciate in addition to that valuable content is that for 
each pattern there is a section on testing and documentation and a 
really good evaluation of consequences in terms of maintainability, 
performance and other such qualities. You will find there also many code
 samples and beautiful applications of the Builder and Fluent API 
patterns.&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The
 main message is that EJB 3.x is so lean and powerful that we must 
justify why NOT using it - and when using it, you should be very 
pragmatic and only introduce patterns, layers and principles if they 
bring real value.&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-size: 24px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;A summary of the patterns&lt;/span&gt;&lt;/h1&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Because not only abstractions but also my memory is &lt;/span&gt;&lt;a href=&quot;http://www.joelonsoftware.com/articles/LeakyAbstractions.html&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #0000ee; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;&quot;&gt;leaky&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
 :-), I&#39;ve written down the key points as a reference and a reminder. It
 will be of a rather limited value to anybody else as it&#39;s closely bound
 to the structure and content of my mind, yet I hope it could give you a
 good idea of what is inside the book and why you should go and pick it 
up immediately :-).&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;A
 general rule: &quot;An introduction of another layer of abstraction or 
encapsulation causes additional development and maintenace effort.&quot; 
[p137] Thus it must provide some real added value to be justifiable.&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Notion: New or radically different patterns are marked with *&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;h2 dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-size: 19px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;BUSINESS TIER&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Service Facade (Application Service?!)&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;[JH: The old name should likely be Session Facade, not A. S.]&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The boundary class used by UI&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;A transaction boundary too (SOA: starts a new tx)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Coarse-grained API&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Usually @Stateless&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Either contains a simple business logic (i.e. is merged w/ a Service) or delegates to Services/DAOs (incl. EntityManager)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Service (Session Facade?!)&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;[JH: The old name should likely be Application Service, not S.F.]&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Fine-grained, reusable logic in an EJB with local access only, product of decomposition&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Used by a Service Facade&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Usually @Stateless s Tx=Mandatory&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Uses EntityManager and/or specialized DAOs&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;In SOA arch. w/ anemic objects the behavior is here contrary to the PDO below&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Persistent Domain Object (Business Object)*&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Rich domain object, ie. having rich behavior/bus.logic and persistent (x anemic structure of SOA)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Forces:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Complex business logic&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Type-specific
 behavior necessary (profits from inehritance, polymorphism) - e.g. 
validation rules are domain object related and sophisticated&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;DB may be adjusted for JPA needs&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Solution:
 @Entity; getter/setters only when justified (x anemic structures, i.e. 
state is hidden), has methods modeling behavior and changing its state 
(creating other entities..); methods named fluently (domain-driven API)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Only the cross-cutting/orchestration logic impl. in a Service&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Created/maintained by a Service, S.Facade or Gateway (CR(U)D methods)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Requires the entity to stay attached =&amp;gt; buz.+present. tier in the same JVM&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Gateway*&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Provides access to the root PDOs, exposes them to the present. tier (opposed to S.Facade, which hides the logic impl.)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;It&#39;s necessary to manage PDOs who&#39;re unaware of EntityManager and to hold client state (the PDOs) over conseq. executions&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The presentation tier must be in the same JVM&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Essential for the (rich) domain-driven architecture&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Forces:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;PDOs are already well encapsulated, additional encaps./layering unnecess.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;DB may be changed as needed&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;changes of UI are likely to affect DB anyway&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;An interactive app., w/ non-trivial validations depending on objects&#39; state&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Users decide when their changes are persisted, when not&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Note: Not much suitable for RIA UI for they&#39;re running on the client = remotely&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Solution:
 @Stateful w/ Extended persist. context and tx=NONE and a single save() 
method that only starts a tx. (via annot. tx=Req.New) and thus forces 
Ent.Man. to commit changes performed so far&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Consequences:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Scalability:
 Doesn&#39;t scale as well as stateless but still absolutely sufficient for 
most apps; depends on cache size, length of sessions; need to find out 
via load tests&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Performance may be better as PDOs are loaded only once and accessed locally per ref.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Need a well defined strategy for handling stale objects, i.e. the OptimisticLockException, test early&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Maint.:
 &quot;In non-trivial, problem-solving applications, a Gateway can greatly 
improve the maintainability. It simplifies the architecture and makes 
the intermediary layers superfluous.&quot; [114] Unsuitable for SOA arch.w/ 
many externally exposed services.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Productivity, ease of use much higher&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Fluid Logic&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Inclusion
 of scripting for algorithms/bus.logic that change often so that 
recompilation/redeployment aren&#39;t necessary - JSR-223 (Scripting for the
 Java Platform)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Executed from a Service&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Paginator and Fast Lane Reader&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;A Service/S.F. allowing for efficient access to large amounts of mostly read-only data [subset]&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Former
 motivation: in EJB 2, a FLR accessed huge quantities of read-only data 
via JDBC directly for efficiency - JPA is efficient enough in this, 
providing a way to extract only some attributes and paginate over large 
results&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Valid
 motivation: &quot;JPA is not able to stream objects, rather than load the 
entire page into memory at once. For some use cases such as exports, 
batches, or reports direct access to the database cursor would provide 
better performance.&quot; [123]&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Forces:
 iteration over large amount of data needed; it cannot be sent at once 
to the client and must be cached on the server; the client needs only 
some attributes of the entity; the access is mostly read-only&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Solution - not a single one but different strategies w/ +/-&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Paginator
 and Value List Handler Strategy: sess. bean implementing an Iterator of
 list of lists of domain objects (a list = a page); either Stateful 
holding internally the current position or Stateless; uses 
Query.setFirstResult + setMaxResults. May use Persist.Ctx.EXTENDED to be
 updatable.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Live
 Cursor and F.L.R. Str(eaming?): to get as fast access as possible when 
conversion into objects isn&#39;t necessary, we may let inject DataSource 
via a @Resource directly into an EJB and use JDBC; will share Connection
 w/ any Ent.Mgr. in the same tx&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Paginator
 in a domain-driven arch.: &quot;A Paginator is also an optimization, which 
should only be introduced in case the iteration over a collection of 
attached PDOs causes performance or resource problems.&quot; [p269]&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Retired Patterns&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Service Locator - replaced by DI&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Composite Entity - JPA entities completely different&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Value Object Assembler - VOs mostly not needed anymore as entities are POJOs; partly impl. by EntityManager&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Business
 Delegate - not needed thanks to DI injecting a Business interface&#39;s 
impl., which doesn&#39;t throw EJB-specific, checked exceptions anymore&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Domain Store -impl. by the EntityManager&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Value
 List Handler - implemented by EntityManager; it can also execute native
 SQL and convert them to entities or a list of primitives&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-size: 19px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Integration Tier&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Data Access Object (DAO)&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The J2EE 1.4 motivation for DAOs doesn&#39;t apply anymore:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;JPA EntityManager is a DAO&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Encapsulation of a DB is leaky anyway; you will only rarely change your DB vendor and never a RDBMS for another storage type&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Thus
 DAOs are only needed for non-JPA resources and at those rare 
occassions, where they provide a real added value, such as consolidating
 often repeated persistence logic to support DRY - or if you application
 has some special requirements that really justify the effort.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Solution: A stateless EJB with @Local interface and @TransactionAttrbute(MANDATORY), accessed by Services/S.Facades.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Note:
 Heavy use of JPA QL would blur the business logic so it might be better
 to move the creation of queries into dedicated query builders or other 
utility classes.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Strategies (may be combined together, of course):&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Generic
 DAO - the results of JPA queries aren&#39;t type-safe and a type-safe 
generic DAO (CrudService) for CRUD and named query search operations 
(such as &amp;lt;T&amp;gt; T create(T t)) could be more convenient.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: square; margin-left: 96px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Suggestion: Use entity class constants for named query names to avoid typos [and help to track their usage].&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Domain-specific
 DAO - DAO for a particular entity, which provides an added value aside 
of wrapping JPA, such as prefetching of dependant objects, managing 
common relations, results filtering based on the current user etc.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Attached-result
 DAO - the default behavior - JPA entities stay attached for the 
duration of the transaction and any changes to them will be commited to 
the DB&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Detached-result
 DAO - if it isn&#39;t possible to stay attached, e.g. due to the data 
source&#39;s limitations. A common case in JEE is to return a subset of 
managed entity object graph mapped to transient DTOs for optimization 
purposes (select new BookLiteView(...) ..).&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Back-end
 Integration DAO - encapsulates a Java Connector Architecture, Common 
Client Interface or similar adapter for a legacy resource to shield the 
developer from their low-level APIs.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Abstract
 DAO - reusable data access logic can be also inherited instead of 
delegated to a helper DAO. Purists could complain but &quot;Inheriting from 
generic DAO functionality streamlines the code and is pragmatic.&quot; 
Especially suitable for DB-driven apps.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Transfer Object (TO) and Data Transfer Object (DTO)&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Again, the J2EE 1.4 motivation for (D)TOs doesn&#39;t apply anymore because detached Entities aren&#39;t active elements and are POJOs&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;There may be few reasons where (D)TOs may be appropriate:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To
 provide consumer-specific views to the persistence layer/send a subset 
of the data graph for performance reasons (see the Detached-result DAO 
above)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To
 keep outside-facing services binary compatible, which may be necessary 
for long-lived SOA services that share the same domain model and need to
 be evolved independently. Adding/changing an entity field needed by a 
new service isn&#39;t possible if the entity is used also by older 
services/clients.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: square; margin-left: 96px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;At
 times it may be necessary to decouple SOA services by replacing hard 
references to other entities with DTOs that carry their ID and type and 
act as a proxy for fetching those entities via their own services. Of 
course this is laborious to code/maintain and less efficient due to 
multiple service calls so you need a sound reason to justify it.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Transfering data from non-JPA sources.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To transfer also presentation tier-specific metadata for building UIs on the fly (e.g. @LAbel(&quot;Enter password&quot;), @MinLength(4))&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To provide a simpler form for transfer over RESTFul/SOAP/CORBA/or even ASCII&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Solution:
 A Serializable or Externalizable POJO. (Implementing Externalizable 
allows for providing faster to process and smaller serialized forms and 
may (should) be automated via code generation. But use with care - it 
adds lot of code that must be maintained and understood.)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Strategies&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Builder-style
 TO - fluent API simplifies its constructions and makes it easier to 
read. Ex.: MyDTO d = new MyDTO.Builder().name(&quot;Duke&quot;).age(42).build(); 
(Builder is a nested static class)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Builder-style
 Immutable TO - prescribe the setting of certain attributes - mark them 
final and only instantiate the DTO when build() is invoked.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Client-specific
 TO - add metadata e.g. for dynamic UI construction and data validation 
[you likely don&#39;t want them in domain Entities] - annotations such as 
@Label(&quot;First Name&quot;) are added to the DTO&#39;s getters (getFirstName()) . 
Check JSR-303 Bean Validation.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Generic
 DTO - dynamic (basically a map of attributes), using reflection - for 
generic UIs. Cons: not type-safe, several times more objects (attribute 
name, type representation, metadata ..); see Apache BeanUtils.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Legacy POJO Integration&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;If
 you need to integrate a legacy POJO into a JEE application and it needs
 to leverage the container services (e.g. security, lifecycle and 
concurrency management, DI) and participate in transactions, you can 
simply turn it into s Stateless session bean provided that it complies 
with the EJB 3 programming restrictions (has the default constructor 
and, prior to 3.1, an interface). Instead of adding annotations to its 
source code, which may be not accessible, you use ejb-jar.xml.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The overhead introduced by turning it into an EJB is really low and comparable to other DI frameworks.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Generic JCA&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&quot;It
 is not possible to access legacy resources such as files, native 
libraries, or starting new threads from EJBs without violating the 
programming restrictions.&quot; [p181] - see Chapter 21.1.2 of JSR 220&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Even if you do not care about violating those restrictions, you may care for making your application non-portable.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Thus
 if you want to access a Java EE incompatible resource, perhaps 
transactionally, in a portable way, you need to use JCA (with the 
additional benefit of monitoring)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The
 JEE restrictions do not apply to Servlets, MBeans and JCA connectors, 
of those only JCA can participate in transactions and within a security 
context.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;While
 complete JCA implementation is complex, a minimal one is &quot;surprisingly 
simple&quot; - it comprises of 2 interfcase, 4 classes, 1 XML file. Two of 
the classes are highly reusable, the remaining part is resource 
dependent.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;You
 don&#39;t even need to implement the Common Client Interface (CCI), which 
may be too abstract and complex, and provide your own one instead.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Depending
 on your requiremements, you can choose which parts of JCA to implement 
[JH: perhaps e.g. javax.resource.spi.work when dealing with threads]&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Example: transactional file access:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;a &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Connection&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; {write(String), close() } interface (JCA is connection-oriented) and Connection factory interface to be put into JNDI: &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;DataSource&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; extends Serializable, Referenceable { getConnection() }&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;a (simple) logic in the class &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;FileConnection&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; impl. Connection and javax.resource.spi.&lt;/span&gt;&lt;a href=&quot;http://java.sun.com/javaee/5/docs/api/javax/resource/spi/LocalTransaction.html&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #0000ee; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;&quot;&gt;LocalTransaction&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;, delegating close() to the GenericManagedConnection (below) and using JCA&#39;s &lt;/span&gt;&lt;a href=&quot;http://java.sun.com/javaee/5/docs/api/javax/resource/spi/ConnectionRequestInfo.html&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #0000ee; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;&quot;&gt;ConnectionRequestInfo&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; for implementing hashCode and equals to distinguish this connection from others&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;a simple &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;FileDataSource&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
 class impl. DataSource providing a custom ConnectionRequestInfo 
implementation (e.g. with equals returning true and hashCode 1 to make 
all connections equal) and using JCA&#39;s ConnectionManager to create a 
connection, casting its output to FileConnection, using the C.M. and a 
ManagedConnectionFactory supplied via the constructor&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;a generic &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;GenericManagedConnection&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
 class impl. ManagedConnection and LocalTransaction (to invoke the 
F.C.&#39;s corresponding methods), which will actually instantiate the 
FileConnection and manage its listeners, while also providing a custom 
impl. of ManagedConnectionMetaData to describe it and returning null for
 getXAResource. Notice that the app. server uses the event notification 
to manage the connection.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;a generic &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;GenericManagedConnectionFactory&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
 class impl. ManagedConnectionFactory, Serializable and creating the 
FileDataSource as the conn. factory and GenericManagedConnection as the 
ManagedConnection. (matchManagedConnections selects a connection with 
matching ConnectionRequestInfo from a set of candidates or throws a 
ResourceException.)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;an &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;ra.xml&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; file (def. by the &lt;/span&gt;&lt;a href=&quot;http://java.sun.com/j2ee/connector/download.html&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #0000ee; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;&quot;&gt;specs&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;)
 containing all the interfaces and classes under 
resourceadapter/outbound-resourceadapter/connection-definition 
(managedconnectionfactory-class=GenericM.C.F., 
connectionfactory-interface=DataSource, 
connectionfactory-impl-class=FileD.S., connection-interface=Connection, 
connection-impl-class=FileC., transaction-support=LocalTransaction, 
authentication-mechanism/a.-m.-type=BasicPassword and 
/credential-interface=javax.resource.spi.security.PasswordCredential)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Finally
 you pack it all into a .rar JAR, drop it to the server, and configure a
 connection pool and deploy the data source under some JNDI name, e.g. 
&quot;jca/FileDS&quot;, to make it injectable via @Resource(name=&quot;jca/FileDS&quot;)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Note: Apache Commons File Transactions contains XA-compliant file access and could be easily wrapped w/ this connector&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&quot;a
 partial implementation of a JCA adapter could be easier and faster than
 an attempt to build a comparable solution from scratch&quot; [p195]&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Asynchronous Resource Integrator (Service Activator)&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Invocation
 of a Service from a Message-Driven Bean (invoked by a messaging system 
via JMS), bound to a Topic (1/N:M) or Destination (1:1)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Prior
 to EJB 3.1, Service Activator was a work-around to invoke a business 
method asynchronously by calling it via a MDB, now we&#39;ve the much 
simpler @Asynchronous method/type annotation&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Since EJB 3.1, MDBs are only necessary for integration of front-end or back-end asynchronous clients/resources&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The
 MDB&#39;s task is to extract the &quot;payload&quot; (usually an Object, Text or 
BinaryMessage), convert it into meaningful parameters, forward it to a 
Service and handle errors and &quot;poison messages&quot; (wrong type/content 
leading to an exception and reprocessing of the message) correctly. It 
should contain no business logic.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;A container starts a transaction before onMessage and removes the message when it ends w/o a rollback&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Note:
 Some messaging providers such as openMQ provide REST-ful interface (yet
 not standardized, but watch amqp.org) and can be thus invoked from a 
presentation or client (browser - ajax) tier&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&quot;The importance of integration tests in an environment identical to production cannot be emphasized enough.&quot; [p201]&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;MDB: &quot;... proper error handling is hard and the debug process a real challenge&quot;[p201]&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Strategies&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Front-end Integration - asynch. messages from the presentation or client tier, likely Ajax; the payload is usually XML/JSON&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Back-end Integration - usually a legacy system; usually can&#39;t influence the message&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;h2 dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-size: 19px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Infrastructural Patterns and Utilities&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Patterns that can be used at any layer or are not of architectural significance yet very useful.&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Service Starter&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Initialize an EJB upon server start (e.g. to load a cache)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;EJB 3.1: @Singleton with @Startup. May also @DependsOn another one.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;pre-EJB 3.1: a HttpServlet with init() method and load-on-startup 1&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Singleton&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Standardized in EJB 3.1 with @Singleton (in the scope of a single JVM only)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;By
 default uses @Lock(LockType.WRITE) and thus can only be accessed by a 
single thread at a time; user READ for concurrent access&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Strategies (rather uses)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Gatekeeper
 - limit access to a legacy resource (e.g. due to limited # of licenses 
or its limited scalability) - this could be done in a JCA adapter but 
that&#39;s a lot more work. It can also serialize access to a 
single-threaded resource with LockType.WRITE&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Caching
 Singleton - holds a cache of mostly read-only data, likely initialized 
at startup, and accessed concurrently thanks to LockType.READ&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Bean Locator&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
 - encapsulates JNDI if DI not available (e.g. Stateful EJB can&#39;t be 
injected into a servlet).Use a Fluent GlobalJNDIName Builder to simplify
 the error-prone process of global JNDI name construction.&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Thread Tracker&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
 - name a thread after the bean and business method it&#39;s currently 
executing for easier monitoring/troubleshooting (instead of e.g. 
&quot;http-0.0.0.0-8180-1&quot;) via an interceptor (but beware that the 
interception is several times slower than a direct call)&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Dependency Injection Extender&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Integrate
 another DI fwrk&#39;s managed beans into an EJB via a custom Interceptor, 
which will invoke the DI framework to inject its beans into the EJB upon
 each call (e.g. via Guice&#39;s 
Injector.injectMember(invocationCtx.getTarget());)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The interceptor must ensure proper bean&#39;s lifecycle w.r.t. its scope (request x session x ...)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Strategies:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Stateful Session Bean Injector - can use per-instance injectors and cache the injected components for the EJB&#39;s lifetime&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Stateless
 Session Bean Injector - either all the members must be injected before 
each call or it&#39;s necessary to use smart proxies able to react e.g. to 
transactions for non-idempotent components&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Transactional Integration - &quot;the injected components already participate in a transaction started in the session bean&quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Performance
 - interceptors and DI rely on reflection which is slower than direct 
calls, yet still much faster than an average DB access&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Payload Extractor&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
 - factor out the (reusable) type checking and error handling for a MDB 
message into a reusable interceptor; poison messages moved by the 
interceptor to a &quot;dead letter queue&quot; via a stateless EJB using the JMS 
API&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Resource Binder&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
 - put a custom resource into JNDI using a @Singleton with @Startup and 
the JNDI API (Context.(re)bind()). Notice that your app. server&#39;s 
proprietary JNDI impl. may enforce some restrictions on the resource 
object (such as serializability).&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Context Holder&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
 - you want to pass some context data yet not to add it as a param to 
each method on the call tree (S.Facade &amp;gt; Service &amp;gt; DAO, indirectly
 PDO) =&amp;gt; use the standard @Resource 
TransactionSynchronizationRegistry, with the actual context set perhaps 
by an interceptor. Notice that ThreadLocal may be problematic if a 
S.Facade invokes a Service and each is from a distinct thread pool = 
diff. thread.&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;h2 dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-size: 19px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Pragmatic Java EE Architectures&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;There
 are two opposite approaches, with best practices in one being 
anti-patterns in the other: the SOA architecture and he Domain-driven 
architecture. Which one is better depends in your requirements.&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Lean Service-Oriented Architectures (&lt;/span&gt;&lt;a href=&quot;http://www.javaworld.com/javaworld/jw-04-2009/jw-04-lean-soa-with-javaee6.html?page=1&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #0000ee; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: underline; vertical-align: baseline;&quot;&gt;online article&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/h3&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;JEE
 5/6 can be used to build the leanest SOA impl. possible - (nearly) no 
XML, no external libraries, frameworks, only a JAR with a short 
persistence.xml, even more so in 3.1 where we can drop the @Local 
interfaces (though that makes testing more difficult)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;SOA implies coarse-grained, distributed, stateless, atomic, self-contained, independent services with a procedural nature&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Though in JEE, local access shall be always preferred when possible (performance)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Building blocks:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Service
 Facade - @Stateless EJB with TransactionAttribute=REQUIRES_NEW - acts 
as a remoting and transaction boundary, hides implementation details 
while providing coarser-grained interface&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;(optional)
 Services (with @Local and tx=MANDATORY) - implement the actual logic in
 a procedural way; in simple cases, the Facade may directly use a DAO to
 avoid a dumb Service w/o any added value&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;(optional) DAOs (incl. EntityManager) - as needed&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Anemic persistent data structures - entities only hold data exposed via getters/setters, w/o any behavior&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: square; margin-left: 96px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&quot;Although
 the anemic object model is considered to be an antipattern, it fits 
very well into an SOA. Most of the application is data-driven, with only
 a small amount of object-specific or type-dependent logic.&quot; [p260] 
Plus, for simple apps, they&#39;re easier to develop, can be generated, can 
be detached and sent to a client who won&#39;t get access to any business 
method (but beware the lazy-loading issue).&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Transfer
 Objects - an essential pattern, a SOA service must stay binary 
compatible even if its domain objects change (e.g. a field added, needed
 by a new service) and thus can&#39;t expose directly JPA entities&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The
 contract, represented by the Service Facade&#39;s @Remote interface and the
 TOs and visible to clients, is strictly separated from its realization&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Suitable e.g. if there are multiple different clients (i.e. not only a single web UI)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Essential complexity of SOA&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&quot;SOA
 aims for reuse, which causes more overhead and requires additional 
patterns. Service components are, on average, more complex than 
comparable domain components.&quot; [p264]&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The
 object graph sent to a client is detached (and serialized) =&amp;gt; we 
must merge the changes when receiving it back, this is complex =&amp;gt; 
added methods to update only parts of the obj.graph =&amp;gt; code bloat 
[p101] - &quot;The essential complexity of service-oriented applications is 
the synchronization of the PDO graph with the persistent store.&quot; [p266] 
Both writes (client updates a part of the object graph, which must be 
merged back) and reads (because of unavailability of lazy-loading) are 
difficult.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Lazy
 loading of detached objects (in the present. tier) impossible =&amp;gt; 
must know/request in advance what to load (=&amp;gt; code bloat)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;h3 dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Objects- or Domain-Driven Design (&lt;/span&gt;&lt;a href=&quot;http://www.javaworld.com/javaworld/jw-05-2009/jw-05-domain-driven-design.html&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #0000ee; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: underline; vertical-align: baseline;&quot;&gt;online article&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/h3&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;As opposed to SOA, it relies mainly on well-defined encapsulated (persistent) objects with state &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;and behavior&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; and tends to be stateful.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Building blocks:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Entity
 - the (behavior-rich) Persistent Domain Object pattern. &quot;A real 
domain-driven architecture should actually only be comprised of Entities
 with aspects.&quot; [p256]&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;(optional)
 Control - a Service/DAO - implements cross-cutting aspects 
(Entity-independent, reusable logic and orchestration of multiple PDOs) -
 often for reusable queries, data warehouse jobs, reports etc.; used 
only exceptionally in DDD&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Boundary
 - a Gateway - the border between the UI and the business logic, exposes
 PDOs as directly as possible; usually stateful (to keep PDOs attached);
 &quot;only necessary because of the Java EE 5/6 shortcomings ... In an ideal
 environment, a Gateway could also be implemented as an aspect, or even a
 static method on a PDO.&quot; [p266]&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;(optional) TO - used for optimization purposes when there is a real need&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Contrary to SOA, here is no separation between the specification and the realization (which is pragmatic, requires less effort)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&quot;The
 main advantage of the stateful domain-driven approach is the 
transparent synchronization and lazy loading of dependent entities.&quot; 
[p267] [JH: Also, with direct access to PDOs, it&#39;s much easier to 
implement and evolve the UI - see Seam. We could say this is (much) more
 productive and &quot;agile&quot; than SOA.]&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Essential complexity of DDD&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;DDD
 requires a stateful Gateway holding a reference to an attached root PDO
 - &quot;The statefulness itself isn&#39;t a scalability problem, rather than the
 amount of attached entities during the transaction.&quot; [p266] (every 
entity used will stay cached till the session ends)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&quot;...
 you will have to think about freeing the resources and detaching 
superfluous PDOs. This could become as complex as the synchronization of
 detached entities or loading of lazy relations in a service-oriented 
component.&quot; [p267]&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;=&amp;gt;
 perhaps necessary to tune the cache settings or use proxies (e.g. 
OIDs/References) instead of actual objects and load objects as needed.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&quot;Whether
 the aggressive caching behavior of your provider becomes a problem or 
not depends on many factors, including the number of concurrent 
sessions, the session length, and the number of accessed PDOs per 
session.&quot; [p267]&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;It&#39;s
 necessary to find a good compromise regarding the coupling of different
 (sub)domain PDOs (such as Address, Customer), i.e. between independence
 of components and ease of use. We must also deal with circular 
dependencies (think of bidirectional dependencies) between PDOs and thus
 components. Be pragmatic:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&quot;Few
 bidirectional dependencies between components are harmless.&quot; [p268] - 
especially considering the unnecessary laboriousness and complexity of 
possible workarounds&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;You
 can use a proxy that resolves the object on demand using a service, as 
SOA does, but this is not very transparent; &quot;it actually only obfuscates
 the dependency between two entities&quot; [p268]&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: circle; margin-left: 56px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The
 favourite solution is to refactor/restructure your components to get 
the related PDOs into one, though that breaks the &quot;maximal cohesion&quot; 
principle&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;h2 dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-size: 19px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Notes on Terminology&lt;/span&gt;&lt;/h2&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The term &quot;anemic domain model&quot; originates likely from Martin Fowler&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; margin-left: 16px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The
 term &quot;Domain-Driven Design&quot; has been made popular by Eric Evans via his
 book Domain-Driven Design: Tackling Complexity in the Heart of 
Software, published 2003&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/8553055573582203556/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/08/java-ee-patterns-rethinking-best.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/8553055573582203556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/8553055573582203556'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/08/java-ee-patterns-rethinking-best.html' title=''/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s72-c/jboss-logo.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-6491115386394613284</id><published>2012-08-03T07:22:00.001-07:00</published><updated>2012-08-03T07:22:20.399-07:00</updated><title type='text'>Dependency Injection in EJB3.0</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s1600/jboss-logo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;198&quot; src=&quot;http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s320/jboss-logo.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;To facilitate test driven development(TDD), the EJB 3.0 specification allows 
you to use annotations to inject dependencies through annotations on 
fields or setter methods.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Instead of complicated XML ejb-refs or 
resource refs, you can use the @EJB and @Resource 
annotations to set the value of a field or to call a setter method &lt;u style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;
within your session bean with anything registered within JNDI&lt;/b&gt;&lt;/u&gt;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;You can 
use the &lt;u&gt;&lt;b&gt;@EJB&lt;/b&gt;&lt;/u&gt; annotation to inject &lt;u&gt;&lt;b&gt;EJB references&lt;/b&gt;&lt;/u&gt; and &lt;u&gt;&lt;b&gt;@Resource&lt;/b&gt;&lt;/u&gt; &lt;u&gt;to access datasources&lt;/u&gt;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
The example shows two ways to get access to the Calculator EJB.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
One is:
&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;b&gt;@EJB&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;private&lt;/b&gt;&lt;/span&gt; Calculator calculator;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;u&gt;&lt;b&gt;or&lt;/b&gt;&lt;/u&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;private&lt;/b&gt;&lt;/span&gt; Calculator set;

&lt;span style=&quot;color: grey;&quot;&gt;&lt;b&gt;@EJB&lt;/b&gt;&lt;/span&gt;(beanName=&quot;org.jboss.tutorial.injection.bean.CalculatorBean&quot;)
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;public &lt;/b&gt;&lt;/span&gt;void setCalculator(Calculator c)
{
   set = c;
}&lt;/pre&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
When the &lt;u&gt;&lt;b&gt;ShoppingCartBean &lt;/b&gt;&lt;/u&gt;instance is created, t&lt;b&gt;he &lt;span style=&quot;background-color: yellow;&quot;&gt;EJB container &lt;/span&gt;will 
set the calculator field using the jndiName of that particular 
referenced EJB&lt;/b&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Another example should be the message driven context inside an MDB. &lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;b&gt;@Resource&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;private&lt;/b&gt;&lt;/span&gt;
      MessageDrivenContext mdc;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The &lt;b&gt;@javax.annotation.Resource&lt;/b&gt; annotation allows you to inject resources.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;b&gt;@Resource&lt;/b&gt;&lt;/span&gt;(mappedName=&quot;DefaultDS&quot;)
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;private&lt;/b&gt;&lt;/span&gt; javax.sql.DataSource ds;
&lt;/pre&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
In &lt;b&gt;JBoss&lt;/b&gt;, whenever the mappedName() attribute is specified (&lt;/div&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;b&gt;@Resource&lt;/b&gt;&lt;/span&gt;, &lt;span style=&quot;color: grey;&quot;&gt;&lt;b&gt;@EJB&lt;/b&gt;&lt;/span&gt;), &lt;u style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;jboss will use that as the GLOBAL jndi name to look it up&lt;/b&gt;&lt;/u&gt;.
&lt;/pre&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
The &lt;span style=&quot;color: grey;&quot;&gt;&lt;b&gt;@Resource &lt;/b&gt;&lt;/span&gt;annotation is used to inject these singletons as well.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;   &lt;span style=&quot;color: grey;&quot;&gt;&lt;b&gt;@Resource&lt;/b&gt;&lt;/span&gt;
 javax.ejb.SessionContext ctx;
   &lt;span style=&quot;color: grey;&quot;&gt;&lt;b&gt;@Resource&lt;/b&gt;&lt;/span&gt;
 javax.ejb.TimerService timer;
   &lt;span style=&quot;color: grey;&quot;&gt;&lt;b&gt;@Resource&lt;/b&gt;&lt;/span&gt;
 javax.ejb.UserTransaction ut;
&lt;/pre&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;b&gt;@EJB&lt;/b&gt;&lt;/span&gt; and &lt;span style=&quot;color: grey;&quot;&gt;&lt;b&gt;@Resource &lt;/b&gt;&lt;/span&gt;also create an entry within the 
JNDI ENC of the bean.  So, the above @EJB injection&lt;/pre&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;will create an entryfor the reference calculator beanver is&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;currently being refactored in this area,&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;so an EJB3 specific namespace is being used.
   
&lt;/pre&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/6491115386394613284/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/08/dependency-injection-in-ejb30.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/6491115386394613284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/6491115386394613284'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/08/dependency-injection-in-ejb30.html' title='Dependency Injection in EJB3.0'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s72-c/jboss-logo.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-2190058040980931230</id><published>2012-08-03T03:57:00.005-07:00</published><updated>2012-08-03T03:57:59.871-07:00</updated><title type='text'>J2EE Basic - Message driven bean EJB 3 API</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s1600/jboss-logo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;198&quot; src=&quot;http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s320/jboss-logo.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;b&gt;Session beans allow you to send JMS messages and to receive them synchronously, but not asynchronously.&lt;/b&gt;&lt;br /&gt;

           &lt;/div&gt;
&lt;h1 align=&quot;left&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Message-Driven Bean&lt;/h1&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Session beans allow you to send JMS messages and to
receive them &lt;b&gt;synchronously&lt;/b&gt;, but not &lt;u&gt;&lt;b&gt;asynchronously&lt;/b&gt;&lt;/u&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;u style=&quot;background-color: yellow;&quot;&gt;To receive messages
asynchronously,&amp;nbsp; a Message-driven bean is used&lt;/u&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Message driven beans are the &lt;u&gt;light weight components&lt;/u&gt; used for
communication via messages (e.g., email or IM messages&lt;span style=&quot;font-size: x-small;&quot;&gt;)&lt;/span&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
In
message driven beans, the messaging service is in asynchronous mode because the
user is not intended to get the instant result.&lt;br /&gt;
&lt;b&gt;Message-driven&lt;/b&gt; beans can implement &lt;u&gt;any messaging type&lt;/u&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Most commonly, they
implement the Java Message Service (JMS) technology.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Message-driven beans have the following
characteristics:&lt;/div&gt;
&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;li&gt;
    A message-driven bean&#39;s instances retain no data
    or conversational state for a specific client i.e. &lt;u style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;they are stateless&lt;/b&gt;&lt;/u&gt;.&lt;br /&gt;

  &lt;/li&gt;
&lt;li&gt;
    A single &lt;u&gt;message-driven bean can process messages
    from multiple clients&lt;/u&gt;.&lt;br /&gt;

  &lt;/li&gt;
&lt;li&gt;
    They are &lt;u&gt;&lt;b&gt;invoked asynchronously&lt;/b&gt;&lt;/u&gt;.&lt;br /&gt;

  &lt;/li&gt;
&lt;li&gt;
    They can be transaction-aware.&lt;br /&gt;

  &lt;/li&gt;
&lt;li&gt;
    They do not represent directly shared data in the
    database, but they can access and update this data.&lt;br /&gt;

  &lt;/li&gt;
&lt;li&gt;
    A message-driven bean has only a bean class i.e. unlike
    a session bean, the clients don&#39;t access message-driven beans through
    interfaces.&lt;br /&gt;

  &lt;/li&gt;
&lt;li&gt;
    They don&#39;t have the remote or local interfaces that
    define client access.&lt;br /&gt;

  &lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
The given diagram shows the working process of a
Message driven bean.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;img border=&quot;0&quot; height=&quot;317&quot; src=&quot;http://www.roseindia.net/ejb/exampl2.gif&quot; width=&quot;540&quot; /&gt;&lt;/div&gt;
&lt;h1 align=&quot;left&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/h1&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
In Message driven beans (MDB), the client components
don&#39;t locate message-driven beans and invoke methods directly.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Instead, The JMS clients send messages to message queues
managed by the JMS server (e.g., an email inbox can be a message queue) for which the &lt;b&gt;javax.jms.MessageListener &lt;/b&gt;interface
 is
implemented.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;u&gt;The message queue is monitored by a special kind of EJB(s) -
 Message Driven Beans
(MDBs) That processes the incoming messages and perform the services 
requested by the message&lt;/u&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
The MDBs are the end-point for JMS service 
request messages.
You assign a message-driven bean&#39;s destination during deployment
by using Application Server resources.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;u&gt;&lt;b&gt;JMS:&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
The Java Message Service (JMS) is an API for Java
messaging clients. JMS provides &lt;span style=&quot;background-color: yellow;&quot;&gt;two programming models:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;point-to-point&lt;/b&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;
and&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;publish-and-subscribe&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
In the &lt;u style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;point-to-point&lt;/b&gt;&lt;/u&gt; model, one sender puts a message on a queue that is
delivered to &lt;u style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;only one receiver&lt;/b&gt;&lt;/u&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
The &lt;u style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;publish-and-subscribe&lt;/b&gt;&lt;/u&gt; model adds a broadcast
mode in which &lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;u&gt;any number of senders&lt;/u&gt;&lt;/b&gt; can add messages &lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;u&gt;to a topic&lt;/u&gt;&lt;/b&gt;, and &lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;u&gt;any
number of recievers receive all messages posted to topics&lt;/u&gt;&lt;/b&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;u&gt;JMS &lt;b style=&quot;background-color: yellow;&quot;&gt;queues &lt;/b&gt;and &lt;b&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;topics
&lt;/span&gt;&lt;/b&gt;are bound in the &lt;b&gt;JNDI&lt;/b&gt; environment and made available to J2EE
applications&lt;/u&gt;.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Our application assumes the point-to-point model, and
requires &lt;u&gt;setting up a &lt;b&gt;queue &lt;/b&gt;with a &lt;b&gt;QueueConnectionFactory&lt;/b&gt; in JMS&lt;/u&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
This section shows, how to implement an MDB with EJB
3.0 describing the source code of a simple message-driven bean application.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
In this example, we are going to implement a
Message-driven bean application named &quot;&lt;b&gt;massage&lt;/b&gt;&quot; that has the
following components:&lt;/div&gt;
&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;li&gt;
    &lt;i&gt;&lt;u&gt;&lt;b&gt;A client application&lt;/b&gt;&lt;/u&gt;&lt;/i&gt; that sends several messages to
    a queue: &lt;b&gt;MessageClient&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;

  &lt;/li&gt;
&lt;li&gt;
    &lt;u&gt;&lt;i&gt;&lt;b&gt;A message-driven bean&lt;/b&gt;&lt;/i&gt;&lt;/u&gt; that asynchronously receives
    and processes the messages that are sent to the queue: &lt;b&gt;MessageBean&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Code for the client application:&lt;/b&gt;&lt;br /&gt;


&lt;table bgcolor=&quot;#ffffcc&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;&gt;
   &lt;tbody&gt;
&lt;tr&gt;
  
   &lt;td align=&quot;left&quot; nowrap=&quot;nowrap&quot; valign=&quot;top&quot;&gt;
    &lt;span style=&quot;color: #7f0055; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;&quot;&gt;&lt;b&gt;package&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; mdb;&lt;/span&gt;&amp;nbsp;
    &lt;/span&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
    &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;code&gt;
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;import&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;javax.jms.*;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;import&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;javax.naming.*;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;import&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;java.text.*;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;
    &lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;import&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;
    javax.annotation.*;&lt;/span&gt;&lt;/code&gt;
    &lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #646464;&quot;&gt;&lt;b&gt;@Resource&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;mappedName=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;jms/Queue&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;

&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;class&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;MessageConn&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;private&amp;nbsp;static&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Queue&amp;nbsp;queue&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: yellow; color: black;&quot;&gt;QueueConnectionFactory&amp;nbsp;&lt;b&gt;factory&amp;nbsp;&lt;/b&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: yellow; color: #7f0055;&quot;&gt;&lt;b&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: yellow; color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: yellow; color: black;&quot;&gt;QueueConnection&amp;nbsp;&lt;b&gt;connection&amp;nbsp;&lt;/b&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: yellow; color: #7f0055;&quot;&gt;&lt;b&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: yellow; color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;QueueSender&amp;nbsp;sender&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;QueueSession&amp;nbsp;session&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;public&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;MessageConn&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;try&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f7f5f;&quot;&gt;//client&amp;nbsp;creates&amp;nbsp;the&amp;nbsp;connection,&amp;nbsp;session,&amp;nbsp;and&amp;nbsp;message&amp;nbsp;sender:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;b&gt;connection&amp;nbsp;&lt;/b&gt;=&amp;nbsp;&lt;b style=&quot;background-color: yellow;&quot;&gt;factory.createQueueConnection&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;()&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: yellow; color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;b&gt;session&amp;nbsp;&lt;/b&gt;=&lt;b&gt;&amp;nbsp;connection.createQueueSession&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;false,&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;code&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QueueSession.AUTO_ACKNOWLEDGE&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; sender&amp;nbsp;=&amp;nbsp;session.createSender&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;queue&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #3f7f5f;&quot;&gt;//create&amp;nbsp;and&amp;nbsp;set&amp;nbsp;a&amp;nbsp;message&amp;nbsp;to&amp;nbsp;send&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;TextMessage&amp;nbsp;msg&amp;nbsp;=&amp;nbsp;session.createTextMessage&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;for&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;i&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&amp;nbsp;i&amp;nbsp;&amp;lt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&amp;nbsp;i++&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;msg.setText&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;This&amp;nbsp;is&amp;nbsp;my&amp;nbsp;sent&amp;nbsp;message&amp;nbsp;&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;i&amp;nbsp;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f7f5f;&quot;&gt;//finally&amp;nbsp;client&amp;nbsp;sends&amp;nbsp;messages&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; //asynchronously&amp;nbsp;to&amp;nbsp;the&amp;nbsp;queue&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sender.send&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;msg&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/code&gt;
    
    &lt;/div&gt;
&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;b&gt;System&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt;.out.println(&quot;Sending message&quot;);&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;session.close&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;catch&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Exception&amp;nbsp;e&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;)&amp;nbsp;{&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;e.printStackTrace&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;public&amp;nbsp;class&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;MessageClient&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;public&amp;nbsp;static&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;void&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;args&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;){&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;MessageConn&amp;nbsp;msgcon&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;MessageConn&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;
    
    &lt;br /&gt;

    
   &lt;/td&gt;
  
   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;b&gt;Description of the given code:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;In the given code of &lt;b&gt;MessageClient &lt;/b&gt;application,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;the &lt;b&gt;javax.jms.*&lt;/b&gt; package is
imported for extending the &lt;b&gt;Queue&lt;/b&gt;, &lt;b&gt;QueueConnectionFactory&lt;/b&gt;, &lt;b&gt;QueueConnection&lt;/b&gt;,
&lt;b&gt;QueueSender&lt;/b&gt;, and &lt;b&gt;QueueSession&lt;/b&gt; class.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;After you get the
QueueConnectionFactory object, you use its &lt;b&gt;createQueueConnection&lt;/b&gt; to
construct a QueueConnection object, like this:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: navy; font-size: small;&quot;&gt;&lt;span style=&quot;background-color: #ffffcc;&quot;&gt;&lt;b&gt;connection =
factory.createQueueConnection( );&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Then, you use the createQueueSession
method of the QueueConnection interface to create a QueueSession object, as in
the following code:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: navy; font-size: small;&quot;&gt;&lt;span style=&quot;background-color: #ffffcc;&quot;&gt;&lt;b&gt;session = connection.createQueueSession(false,&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: navy; font-size: small;&quot;&gt;&lt;span style=&quot;background-color: #ffffcc;&quot;&gt;&lt;b&gt;QueueSession.AUTO_ACKNOWLEDGE);&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Note that you pass false as the first
argument to the createQueueSession method to indicate that you are not creating
a transactional session object.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Next, you can call the createSender
method of the QueueSession interface, passing a Queue object. The return value
of this method is a message producer, which is a QueueSender:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: navy; font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #ffffcc;&quot;&gt;sender = session.createSender(queue);&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Then you create a TextMessage object
based on the message received by passing the text for the TextMessage to the
createTextMessage method of the QueueSession object and then set the text to the
object of TextMessage&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: navy; font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #ffffcc;&quot;&gt;TextMessage msg =
session.createTextMessage( );&lt;br /&gt;
msg.setText(&quot;This is my sent message &quot; + (i + 1));&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Now, you are ready to send the new
message. You do this by calling the send method of the QueueSender object, as
you see here:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background-color: #ffffcc;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;&lt;b&gt;sender.send(msg);&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The JMS resource is mapped to the JNDI name of the
destination from which the bean receives messages. 
 The New Message-Driven Bean wizard has already created the JMS resources for
us. The EJB 3.0 API enables us to look up objects in the JNDI namespace from
within the bean class so that we do not need to configure deployment descriptors
to specify the JMS resources. The EJB 3.0 specifications allow us to use
annotations to introduce resources directly into a class.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The MDB&#39;s connection process can
      be seen in the figure shown below:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;docText&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;313&quot; src=&quot;http://www.roseindia.net/ejb/exampl3.gif&quot; width=&quot;500&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;javax.annotation.Resource(@Resource):&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The &lt;b&gt;@Resource&lt;/b&gt; method specifies a
dependence on an external resource, such as a JDBC data source or a JMS &lt;b&gt;
destination&lt;/b&gt; or &lt;b&gt; connection&lt;/b&gt; &lt;b&gt;factory&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white;&quot;&gt;If you specify the annotation on a field or method, the &lt;i&gt;&lt;u&gt;EJB container
injects&lt;/u&gt;&lt;/i&gt; an instance of the requested resource into the bean when the bean is
initialized.&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;If you apply the annotation to a class, the annotation declares a
resource that the bean will look up at runtime.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The &lt;b&gt;mappedName&lt;/b&gt; attribute of the
annotation Resource specifies the global &lt;b&gt;JNDI&lt;/b&gt;
name of the dependent resource. For example:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background-color: #ffffcc;&quot;&gt;
    &lt;code&gt;
&lt;span style=&quot;color: navy;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background-color: #ffffcc;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: navy;&quot;&gt;@Resource(&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: navy;&quot;&gt;mappedName
&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: navy;&quot;&gt;=&quot;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: navy;&quot;&gt;jms/Queue&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: navy;&quot;&gt;&quot;)&lt;/span&gt;&lt;/code&gt;
    
&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Specifies that the JNDI name of the
dependent resources is &lt;b&gt;jms/Queue&lt;/b&gt; and deployed in the JEE Server JNDI
tree.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;For Web-client:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;In a Web-client application &lt;b&gt;&quot;jms/Queue&quot; &lt;/b&gt;and &lt;b&gt;ConnectionFactory&quot; &lt;/b&gt;argument&lt;code&gt;
are&lt;/code&gt; used in the JNDI &lt;b&gt;lookup&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Both are logical JNDI names, and use
the outbound connectivity provided by the JMS resource adapter. &lt;span id=&quot;intelliTxt&quot;&gt;Make
the JNDI lookup to use a Web Service&lt;/span&gt; shown as.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#FFFFCC&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; width=&quot;57%&quot;&gt;
  &lt;tbody&gt;
&lt;tr&gt;
    &lt;td width=&quot;100%&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;
      InitialContext&amp;nbsp;ctx&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;InitialContext();&lt;/span&gt;&lt;br /&gt;
      &amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;queue&amp;nbsp;=&amp;nbsp;(Queue)&amp;nbsp;ctx.lookup(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;jms/Queue&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
      &amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;QueueConnectionFactory&amp;nbsp;factory&amp;nbsp;=&lt;/span&gt;&lt;br /&gt;
      &amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(QueueConnectionFactory)&amp;nbsp;ctx.lookup(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;ConnectionFactory&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
      &amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;connection&amp;nbsp;=&amp;nbsp;factory.createQueueConnection();&lt;/span&gt;&lt;br /&gt;
      &amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;session&amp;nbsp;=&amp;nbsp;cnn.createQueueSession(false,&lt;/span&gt;&lt;br /&gt;
      &lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;
      &amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;QueueSession.AUTO_ACKNOWLEDGE);&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Code for the
message-driven bean:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The &lt;b&gt;MessageBean &lt;/b&gt;class demonstrates
the following requirements to its implementation:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
    &lt;div class=&quot;pBody&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;In EJB 3.0, the MDB bean class is annotated with the
    &lt;b&gt;@MessageDriven&lt;/b&gt; annotation that specifies, which message queue monitors
    the MDB (i.e., &lt;b&gt;jms/Queue&lt;/b&gt;).&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;u&gt;If the queue does not exist, the 
EJB container automatically creates it at deploy time&lt;/u&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;There is no XML 
configuration file needed!&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
    For the Application Server, the &lt;b&gt;@&lt;u&gt;MessageDriven&lt;/u&gt;&lt;/b&gt;&lt;u&gt; &lt;/u&gt;annotation typically
    contains a &lt;u&gt;&lt;b&gt;mappedName&lt;/b&gt; &lt;/u&gt;attribute
    that specifies the JNDI name of the destination from which the bean will
    consume messages.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
    &lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;The class must be defined as public and must contain
    a public constructor with no arguments. It must not define the finalize
    method. &lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
    &lt;div class=&quot;pBody&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;It is recommended, but not required,
    that a message-driven bean class should implement the &lt;b&gt; MessageListener&lt;/b&gt;&amp;nbsp;
    interface for the message type it supports. This interface defines only one method &lt;b&gt;onMessage(
    )&lt;/b&gt;. When the EJB container arrives a message, it calls the &lt;b&gt;onMessage(
)&lt;/b&gt; method of the message-driven bean to process the message. The &lt;b&gt;onMessage(
) &lt;/b&gt;method contains the business logic and handles the processing of the
    message in accordance with the application?s business
logic. It can call helper methods, or invoke a session bean to process the
information in the message or to store it in a database.&lt;br /&gt;
A message is delivered to a message-driven bean within a transaction context, so
all operations within the &lt;b&gt;onMessage &lt;/b&gt;method are part of a single
transaction. If message processing is rolled back, the message will be
redelivered.&lt;br /&gt;&lt;br /&gt;
    In our example, the &lt;/span&gt;
    &lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;MessageBean.onMessage( ) &lt;/b&gt;method retrieves the message body, parses out the
    messages to a TextMessage, perform the necessary business logic, and
    displays the text to the message-client.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
    &lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
    &lt;div class=&quot;pBody&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;A message-driven bean can also inject
    a &lt;u&gt;&lt;b&gt;MessageDrivenContext&lt;/b&gt;&lt;/u&gt;
    resource which is commonly used to call the &lt;b&gt;setRollbackOnly&lt;/b&gt; method to
    handle exceptions for a bean during container-managed transactions.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;table bgcolor=&quot;#FFFFCC&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; width=&quot;64%&quot;&gt;
  &lt;tbody&gt;
&lt;tr&gt;
    &lt;td width=&quot;100%&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: small;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; package&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; mdb;&amp;nbsp;
      &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&amp;nbsp;&amp;nbsp; import &lt;/span&gt;&lt;/b&gt; javax.ejb.*;&lt;b&gt;&lt;br /&gt;
      &amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f0055;&quot;&gt;import&lt;/span&gt; &lt;/b&gt; javax.ejb.MessageDriven;&lt;b&gt;&lt;br /&gt;
      &amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f0055;&quot;&gt;import&lt;/span&gt; &lt;/b&gt; javax.jms.Message;&lt;b&gt;&lt;br /&gt;
      &amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f0055;&quot;&gt;import&lt;/span&gt; &lt;/b&gt; javax.jms.MessageListener;&lt;b&gt;&lt;br /&gt;
      &amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f0055;&quot;&gt;import&lt;/span&gt; &lt;/b&gt; javax.jms.ObjectMessage;&lt;b&gt;&lt;br /&gt;
      &amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f0055;&quot;&gt;import&lt;/span&gt; &lt;/b&gt; java.text.*;&lt;b&gt;&lt;br /&gt;
      &amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f0055;&quot;&gt;import&lt;/span&gt; &lt;/b&gt; javax.naming.*;&lt;br /&gt;
      &amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-size: small;&quot;&gt;&lt;b&gt;import&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
      java.util.logging.Logger;&lt;br /&gt;&lt;/span&gt;
      &lt;span style=&quot;font-size: small;&quot;&gt;
      &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #646464;&quot;&gt;@MessageDriven&lt;/span&gt;&lt;/b&gt;(mappedName=&quot;jms/Queue&quot;)&lt;br /&gt;&lt;/span&gt;
      &lt;span style=&quot;font-size: small;&quot;&gt;
      &amp;nbsp; &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;public
      class&lt;/span&gt;&lt;/b&gt; MessageBean &lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-size: small;&quot;&gt;&lt;b&gt;implements&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
      MessageListener {&lt;br /&gt;
      &amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: grey; font-size: small;&quot;&gt;&lt;b&gt;@Resource&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
      &amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-size: small;&quot;&gt;&lt;b&gt;private&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
      MessageDrivenContext mdc;&lt;/span&gt;&lt;br /&gt;

      &lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-size: small;&quot;&gt;&lt;b&gt;private&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-size: small;&quot;&gt;&lt;b&gt; static&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
      &lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-size: small;&quot;&gt;&lt;b&gt; final&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; Logger logger;&lt;br /&gt;
      &amp;nbsp;&amp;nbsp;
      &lt;br /&gt;
      &amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;
      &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;void&lt;/span&gt;&lt;/b&gt; onMessage(Message msg) {&lt;br /&gt;
      &amp;nbsp;&amp;nbsp; &amp;nbsp; TextMessage tmsg =
      &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;null&lt;/span&gt;&lt;/b&gt;;&lt;br /&gt;&lt;/span&gt;
      &lt;span style=&quot;font-size: small;&quot;&gt;
      &amp;nbsp;&amp;nbsp;
      try {&lt;br /&gt;
      &amp;nbsp;&amp;nbsp;
&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; tmsg = (TextMessage) msg;&lt;br /&gt;
      &amp;nbsp; &amp;nbsp;&amp;nbsp; logger.info(&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: small;&quot;&gt;&quot;MESSAGE BEAN: Message received:
      &quot;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; + tmsg.getText( ));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-size: small;&quot;&gt;&lt;b&gt;System&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.out.println (&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: small;&quot;&gt;&quot;The onMessage() is
      called&quot;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
      &amp;nbsp; } &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;catch&lt;/span&gt;&lt;/b&gt;
      (JMSException e) {&lt;br /&gt;
      &amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;      e.printStackTrace( );&lt;br /&gt;
      &amp;nbsp; &amp;nbsp; &amp;nbsp;
      mdc.setRollbackOnly( );&lt;br /&gt;
      &amp;nbsp; } &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;br /&gt;
      &amp;nbsp;
      catch&lt;/span&gt;&lt;/b&gt; (Throwable th) {&lt;br /&gt;
      &amp;nbsp;&amp;nbsp;
      th.printStackTrace();&lt;br /&gt;
      &amp;nbsp; }&lt;br /&gt;&amp;nbsp;
      }&lt;br /&gt;
      &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-size: small;&quot;&gt;&lt;b&gt;public&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
      &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;void&lt;/span&gt;&lt;/b&gt; ejbRemove( )&lt;/span&gt;&lt;span style=&quot;color: #7f0055; font-size: small;&quot;&gt;&lt;b&gt;throws&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
      EJBException{&lt;br /&gt;
      &amp;nbsp;&amp;nbsp; loger.fine(&quot;ejbRemove()&quot;);&lt;br /&gt;
      &amp;nbsp;&amp;nbsp; }&lt;br /&gt;
      }&lt;/span&gt;
      &lt;br /&gt;

    &lt;/td&gt;
  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pBody&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Logger:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Body&quot; id=&quot;1148443&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;When writing log messages
from EJBs within JRun, you have the following options:&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Nonportable&lt;/b&gt;&amp;nbsp; Use JRun-specific methods
    and services. These methods write to the JRun server&#39;s event log.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Portable&lt;/b&gt;&amp;nbsp; Use one of the
    System.out.println methods. These methods write to the console (if used when
    starting JRun).&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;An EJB can acquire a logger instance from the container
and use the logger&#39;s &lt;b&gt;info( )&lt;/b&gt; method to display the messages for the
client-end, as shown in the following code examples:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background-color: #ffffcc;&quot;&gt;&lt;b&gt;logger.info&lt;/b&gt;(&quot;MESSAGE
BEAN: Message received: &quot; +&amp;nbsp; &lt;b&gt;msg.getText( )&lt;/b&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/2190058040980931230/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/08/j2ee-basic-message-driven-bean-ejb-3-api.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/2190058040980931230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/2190058040980931230'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/08/j2ee-basic-message-driven-bean-ejb-3-api.html' title='J2EE Basic - Message driven bean EJB 3 API'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-y-hpgqHauTw/T3LKK6N1VXI/AAAAAAAAAZY/XC2wHQxXPiw/s72-c/jboss-logo.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-2936117132017807626</id><published>2012-07-26T03:24:00.004-07:00</published><updated>2012-07-26T03:24:59.783-07:00</updated><title type='text'>Increase hard disk size in VirtualBox 4.x</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Increase hard disk size in VirtualBox 4.x&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
0. Shut down virtual machine &amp;amp; quit VirtualBox&lt;/h4&gt;
&lt;h4 style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
1. Locate VDI file&lt;/h4&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ VBoxManage list hdds
UUID:        xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Parent UUID: base
Format:      VDI
Location:    /Users/user/Library/VirtualBox/HardDisks/XP.vdi
State:       created
Type:        normal
Usage:       XP (UUID: yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy)&lt;/pre&gt;
&lt;h4 style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
2. Backup virtual machine&lt;/h4&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
There are two methods:&lt;/div&gt;
&lt;ol style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;li&gt;Simply copy the VDI file to another location. (If you try opening this copy in a new VM later, you may receive a &quot;&lt;i&gt;Cannot register the hard disk ... with UUID ... because a hard disk ... with UUID ... already exists in the media registry ...&lt;/i&gt;&quot; error. This can be resolved by assigning a new UUID: $ VBoxManage internalcommands sethduuid XPcopy.vdi &lt;sup&gt;*&lt;/sup&gt;)&lt;/li&gt;
&lt;li&gt;Or use the clonehd command, which creates a cloned copy with a new UUID automatically:&lt;br /&gt;
&lt;b style=&quot;background-color: yellow;&quot;&gt;$ VBoxManage clonehd XP.vdi XPclone.vdi&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
3. Resize drive&lt;/h4&gt;
Specify the new size in MBs. In this example, we&#39;ll expand a 10GB virtual disk to 40GB:
&lt;br /&gt;
&lt;pre&gt;$ sudo VBoxManage modifyhd XP.vdi --resize 40960&lt;/pre&gt;
The process should complete in a few seconds.&lt;br /&gt;

&lt;h4&gt;
4. Allocate new space&amp;nbsp;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Download &lt;a href=&quot;http://partedmagic.com/&quot;&gt;Parted Magic&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Open VirtualBox and select your VM&lt;/li&gt;
&lt;li&gt;Go to Settings &amp;gt; Storage to select the Parted Magic ISO image:&lt;br /&gt;&lt;img alt=&quot;&quot; height=&quot;141&quot; src=&quot;http://tinyapps.org/screenshots/vbdisk1.png&quot; width=&quot;400&quot; /&gt;&lt;br /&gt; and then to Settings &amp;gt; System &amp;gt; Motherboard to set the boot order.&lt;/li&gt;
&lt;li&gt;Start the virtual machine. Once Parted Magic is booted, double click
 &quot;Partition Editor&quot; on the Desktop. You&#39;ll see something like this:&lt;br /&gt;&lt;img alt=&quot;&quot; height=&quot;270&quot; src=&quot;http://tinyapps.org/screenshots/vbdisk2.png&quot; width=&quot;400&quot; /&gt;&lt;/li&gt;
&lt;li&gt;In this example, you&#39;d resize /dev/sda1 to take up the additional 30GB and click Apply:&lt;br /&gt;&lt;img alt=&quot;&quot; height=&quot;270&quot; src=&quot;http://tinyapps.org/screenshots/vbdisk3.png&quot; width=&quot;400&quot; /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/2936117132017807626/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/07/increase-hard-disk-size-in-virtualbox-4x.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/2936117132017807626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/2936117132017807626'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/07/increase-hard-disk-size-in-virtualbox-4x.html' title='Increase hard disk size in VirtualBox 4.x'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-2424467370485058563</id><published>2012-07-25T03:59:00.001-07:00</published><updated>2012-07-25T04:02:02.993-07:00</updated><title type='text'>The Meaning of 0.0.0.0 In Routing Table</title><content type='html'>&lt;h1 class=&quot;entry-title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;

&lt;span style=&quot;font-size: large;&quot;&gt;The Meaning of 0.0.0.0 In Routing Table.&lt;/span&gt;&lt;/h1&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;

&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Each network host has a default route for each network card.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;

&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;This 
will create a 0.0.0.0 route for such card. The address 0.0.0.0 generally
 means &quot;any address&quot;.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;

&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;If a packet destination doesn&#39;t match an 
individual address in the table, it must match a 0.0.0.0 gateway 
address.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;

&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;In other words, default gateway is always pointed by 0.0.0.0:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;code&gt;&lt;/code&gt;&lt;/h1&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;

&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code&gt;route -n&lt;/code&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;

&lt;code&gt;&lt;/code&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Sample outputs:&lt;/span&gt;&lt;/h1&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Kernel IP routing table&lt;/pre&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.31.18      &lt;span style=&quot;background-color: #f9cb9c;&quot;&gt;0.0.0.0&lt;/span&gt;         255.255.255.255 UH    0      0        0 ppp0
38.96.196.94    &lt;u&gt;192.168.1.2&lt;/u&gt;     255.255.255.255 UGH   0      0        0 wlan0
192.168.84.0    &lt;span style=&quot;background-color: #f9cb9c;&quot;&gt;0.0.0.0&lt;/span&gt;         255.255.255.0   U     0      0        0 vmnet8
&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;192.168.1.0     &lt;span style=&quot;background-color: #f9cb9c;&quot;&gt;0.0.0.0&lt;/span&gt;         255.255.255.0   U     2      0 &lt;/span&gt;       0 wlan0
192.168.110.0   &lt;span style=&quot;background-color: #f9cb9c;&quot;&gt;0.0.0.0&lt;/span&gt;         255.255.255.0   U     0      0        0 vmnet1
192.168.122.0   &lt;span style=&quot;background-color: #f9cb9c;&quot;&gt;0.0.0.0&lt;/span&gt;         255.255.255.0   U     0      0        0 virbr0
169.254.0.0     &lt;span style=&quot;background-color: #f9cb9c;&quot;&gt;0.0.0.0&lt;/span&gt;         255.255.0.0     U     1000   0        0 wlan0
10.0.0.0        &lt;span style=&quot;background-color: #f9cb9c;&quot;&gt;0.0.0.0&lt;/span&gt;         255.0.0.0       U     0      0        0 ppp0
&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span style=&quot;background-color: #f9cb9c;&quot;&gt;0.0.0.0&lt;/span&gt;         &lt;u&gt;192.168.1.2&lt;/u&gt;     0.0.0.0         U&lt;u&gt;&lt;b&gt;G&lt;/b&gt;&lt;/u&gt;    0      0 &lt;/span&gt;       0 wlan0
&lt;/pre&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;u&gt;192.168.1.2&lt;/u&gt; is my ISP router i.e.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
default gateway indicated by 
&lt;span style=&quot;background-color: #f6b26b;&quot;&gt;0.0.0.0&lt;/span&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Other destination such as &lt;u&gt;10.0.0.0/8&lt;/u&gt; network use ppp0 interface
 as gateway.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
If you are MS-Windows user use &lt;u&gt;&lt;b&gt;route print&lt;/b&gt;&lt;/u&gt; command.&lt;/div&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-weight: normal;&quot;&gt;

&lt;span style=&quot;font-size: small;&quot;&gt;Flag G indicates path to route  packets  via a gateway.&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-weight: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;If you would 
like to visit yahoo.com from your computer you need to go via 
192.168.1.1 gateway.&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-weight: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;This usually means that you have to set up a static
  route  to  the  gateway  beforehand.  If you specify the address of 
one of your local interfaces,  it  will  be  used  to decide about the 
interface to which the packets should be routed to. metric field used by
 routing daemons. This is required on large LAN and wan setups. The 
output of the kernel routing table is organized  in  the  following 
columns:&lt;/span&gt;&lt;/h1&gt;
&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;Destination&lt;/strong&gt; : The destination network or destination host.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;Gateway&lt;/strong&gt; : The gateway address or ’*’ if none set.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;Genmask&lt;/strong&gt; : The  netmask  for  the  destination net; 255.255.255.255 for a  host destination and 0.0.0.0 for the default route.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;Flags&lt;/strong&gt; :  Possible flags include&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt; U (route is up)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt; H (target is a host)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt; G (use gateway)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt; R (reinstate route for dynamic routing)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt; D (dynamically installed by daemon or redirect)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt; M (modified from routing daemon or redirect)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt; A (installed by addrconf)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt; C (cache entry)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt; !  (reject route)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;Metric&lt;/strong&gt;
 : The distance to the target (usually counted in  hops).  It  is   not 
 used  by  recent kernels, but may be needed by routing daemons.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;Ref&lt;/strong&gt; :     Number of references to this route. (Not used in the Linux  kernel.)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt; Use&lt;/strong&gt;
 :  Count  of lookups for the route.  Depending on the use of -F and  -C
 this will be either route cache misses (-F) or hits (-C).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;Iface&lt;/strong&gt; :   Interface to which packets for this route will be sent.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt; MSS&lt;/strong&gt; :    Default maximum segment  size  for  TCP  connections  over  this  route.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;Window&lt;/strong&gt; : Default window size for TCP connections over this route.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;irtt&lt;/strong&gt;
 :   Initial  RTT  (Round  Trip  Time). The kernel uses this to guess 
about the best TCP protocol parameters without waiting on  (possibly 
slow) answers.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;HH (cached only)&lt;/strong&gt; :  The  number 
 of  ARP entries and cached routes that refer to the  hardware header 
cache for the cached route. This will be -1 if a hardware  address  is 
not needed for the interface of the cached route (e.g. lo).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;Arp (cached only)&lt;/strong&gt; : Whether or not the hardware address for the cached route  is  up to date.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Your
 routing table is created automatically, based on the current TCP/IP 
configuration of your Linux / UNIX computer. You can manually add / 
modify / edit routing table using route and ip command. The types of 
entries in a routing table:&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;li&gt; &lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;Network Route&lt;/strong&gt;: A route (path) to a specific Network ID in the internetwork.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt; &lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;Host Route&lt;/strong&gt;
 : A route to a specific internetwork address (Network ID and Host ID). 
Host routes allow intelligent routing decisions to be made for each 
network address. Host routes are used to create custom routes to control
 or optimize specific types of network traffic.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;Default Route&lt;/strong&gt;:
 A route that is used when no other routes for the destination are found
 in the routing table. If a router or end system (such as a PC running 
Microsoft Windows or Linux), cannot find a route for a destination, the 
default route is used. The default route is used if no other host or 
network route matches the destination address. Please see related FAQs 
below for more examples of route and ip command.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;

&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/2424467370485058563/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/07/the-meaning-of-0000-in-routing-table.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/2424467370485058563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/2424467370485058563'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/07/the-meaning-of-0000-in-routing-table.html' title='The Meaning of 0.0.0.0 In Routing Table'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-4721430209710298742</id><published>2012-05-18T01:34:00.002-07:00</published><updated>2012-05-18T01:34:38.037-07:00</updated><title type='text'>WebHarvest: Easy Java Web Scraping</title><content type='html'>&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-nW01M4Q9oNo/T5gqvsuyzgI/AAAAAAAAAaY/1AHwNn6mDxs/s1600/webharvest.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-nW01M4Q9oNo/T5gqvsuyzgI/AAAAAAAAAaY/1AHwNn6mDxs/s1600/webharvest.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Process of extracting data from Web pages is also referred as&lt;br /&gt;
&lt;b&gt;&lt;i&gt;Web Scraping&lt;/i&gt; 
    or &lt;i&gt;Web Data Mining&lt;/i&gt;&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
World Wide Web, &lt;b&gt;as the largest database&lt;/b&gt;, often contains various data that we would 
    like t&lt;b&gt;o consume for our needs&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
The problem is that this data is in most cases mixed together with 
    formatting code -&lt;u&gt; that way making human-friendly&lt;/u&gt;,&lt;u&gt; but not machine-friendly content&lt;/u&gt;.&lt;br /&gt;
&lt;br /&gt;
Doing &lt;u&gt;&lt;b&gt;manual copy-paste is error prone&lt;/b&gt;&lt;/u&gt;, tedious and sometimes even impossible.&lt;br /&gt;
Web software designers usually &lt;u&gt;discuss how to make clean separation&lt;/u&gt; between content and style, 
    &lt;u&gt;using various frameworks and design patterns in order to achieve that&lt;/u&gt;.&lt;br /&gt;
&lt;br /&gt;
Anyway, some kind of merge 
    occurs usually at the server side, so that the bunch of HTML is delivered to the web client.
&lt;br /&gt;
Every Web site and every Web page is composed using some logic.&lt;br /&gt;
&lt;br /&gt;
It is therefore &lt;u style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;needed 
    to describe reverse process&lt;/b&gt;&lt;/u&gt; - &lt;u style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;how to fetch desired data from the mixed content&lt;/b&gt;&lt;/u&gt;.&lt;br /&gt;
&lt;br /&gt;
Every extraction procedure in Web-Harvest is user-defined through XML-based 
    &lt;i&gt;configuration files&lt;/i&gt;.&lt;br /&gt;
Each configuration file describes sequence of 
    &lt;u&gt;&lt;i&gt;processors&lt;/i&gt; executing some common task in order to accomplish the final goal&lt;/u&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Processors&lt;/b&gt; 
    execute in the form of &lt;i&gt;pipeline&lt;/i&gt;&lt;/u&gt;.&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Thus, the output of one processor execution is input 
    to another one.&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
This can be best explained using the simple configuration fragment:
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;div class=&quot;hl-main&quot;&gt;
&lt;pre&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;i&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;xpath&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;expression&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot;&gt;//a[@shape=&#39;rect&#39;]/@href&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;html-to-xml&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;http&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;url&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-string&quot;&gt;http://www.somesite.com/&lt;/span&gt;&lt;span class=&quot;hl-quotes&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;html-to-xml&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;xpath&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
When Web-Harvest executes &lt;u&gt;this part of configuration&lt;/u&gt;, the following steps occur:
    &lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;u&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;i&gt;http&lt;/i&gt; processor&lt;/b&gt; downloads content from the specified URL&lt;/u&gt;.&lt;/li&gt;
&lt;li&gt;&lt;u&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;i&gt;html-to-xml&lt;/i&gt; processor&lt;/b&gt; cleans up that HTML producing &lt;b&gt;XHTML&lt;/b&gt; content&lt;/u&gt;.&lt;/li&gt;
&lt;li&gt;
            &lt;u&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;i&gt;xpath&lt;/i&gt; processor&lt;/b&gt; searches specific links in XHTML from previous step giving
            URL sequence as a result&lt;/u&gt;.  
        &lt;/li&gt;
&lt;/ol&gt;
Web-Harvest supports a set of useful processors for variable manipulation,
    conditional branching, looping, functions, file operations, HTML and XML processing,
    exception handling. See &lt;a href=&quot;http://web-harvest.sourceforge.net/manual.php&quot;&gt;User manual&lt;/a&gt; for technical description of 
    provided processors.
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note inspired from the good article :&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;a href=&quot;http://masochismtango.com/2010/02/15/webharvest-web-scraping-from-java/&quot;&gt;http://masochismtango.com/2010/02/15/webharvest-web-scraping-from-java/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
On web harvesting activity and the possible java direct interaction.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
I often have a need to quickly scrape some data out of a web page (or
 list of web pages), which can then be fed into Excel and on to 
specialist data visualisation tools.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
To this end I have turned to &lt;a href=&quot;http://web-harvest.sourceforge.net/&quot;&gt;WebHarvest&lt;/a&gt;,
 an excellent scriptable open source API for web scraping in Java.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
I 
really really like it, but there are some quirks and setup issues that 
have cost me hours so I thought I’d roll together a tutorial with the 
fixes.&lt;/div&gt;
&lt;h3 style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;



WebHarvest Config for Maven&lt;/h3&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
When it works &lt;a href=&quot;http://maven.apache.org/&quot;&gt;Maven&lt;/a&gt; is a 
lovely tool to hide dependency management for Java projects, but 
WebHarvest is not configured quite right out of the box to work 
transparently with it.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
(Describing Maven is beyond the scope of this 
post, but if you don’t know it, it’s easy to setup with the &lt;a href=&quot;http://m2eclipse.sonatype.org/&quot;&gt;M2 plugin for Eclipse&lt;/a&gt;.)&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
This is the Maven POM I ended up with to use WebHarvest in a new JavaSE project:&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;br /&gt;&amp;nbsp;xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;groupId&amp;gt;WebScraping&amp;lt;/groupId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;artifactId&amp;gt;WebScraping&amp;lt;/artifactId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;packaging&amp;gt;jar&amp;lt;/packaging&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;version&amp;gt;0.00.01&amp;lt;/version&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;properties&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;project.build.sourceEncoding&amp;gt;UTF-8&amp;lt;/project.build.sourceEncoding&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/properties&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;build&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;plugins&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;plugin&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;maven-compiler-plugin&amp;lt;/artifactId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;configuration&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;source&amp;gt;1.6&amp;lt;/source&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;target&amp;gt;1.6&amp;lt;/target&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/configuration&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/plugin&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/plugins&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/build&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;repositories&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;repository&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;id&amp;gt;wso2&amp;lt;/id&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url&amp;gt;http://dist.wso2.org/maven2/&amp;lt;/url&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/repository&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;repository&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;id&amp;gt;maven-repository-1&amp;lt;/id&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url&amp;gt;http://repo1.maven.org/maven2/&amp;lt;/url&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/repository&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/repositories&amp;gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;dependencies&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;dependency&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;commons-logging&amp;lt;/groupId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;commons-logging&amp;lt;/artifactId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;1.1&amp;lt;/version&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;jar&amp;lt;/type&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scope&amp;gt;compile&amp;lt;/scope&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/dependency&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;dependency&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;log4j&amp;lt;/groupId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;log4j&amp;lt;/artifactId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;1.2.12&amp;lt;/version&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;jar&amp;lt;/type&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scope&amp;gt;compile&amp;lt;/scope&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/dependency&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;dependency&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;org.webharvest.wso2&amp;lt;/groupId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;webharvest-core&amp;lt;/artifactId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;1.0.0.wso2v1&amp;lt;/version&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;jar&amp;lt;/type&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scope&amp;gt;compile&amp;lt;/scope&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/dependency&amp;gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;!-- web harvest pom doesn&#39;t track dependencies well --&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;dependency&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;net.sf.saxon&amp;lt;/groupId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;saxon-xom&amp;lt;/artifactId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;8.7&amp;lt;/version&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/dependency&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;dependency&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;org.htmlcleaner&amp;lt;/groupId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;htmlcleaner&amp;lt;/artifactId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;1.55&amp;lt;/version&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/dependency&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;dependency&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;bsh&amp;lt;/groupId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;bsh&amp;lt;/artifactId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;1.3.0&amp;lt;/version&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/dependency&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;dependency&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;commons-httpclient&amp;lt;/groupId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;commons-httpclient&amp;lt;/artifactId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;3.1&amp;lt;/version&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/dependency&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/dependencies&amp;gt;&lt;br /&gt;&amp;lt;/project&amp;gt; &lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
You’ll note that the WebHarvest dependencies had to be added 
explicitly, because the jar does not come with a working pom listing 
them.&lt;/div&gt;
&lt;h3 style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;



Writing A Scraping Script&lt;/h3&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
WebHarvest uses XML configuration files to describe how to scrape a 
site – and with a few lines of Java code you can run any XML 
configuration and have access to any properties that the script 
identified from the page.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
This is definitely &lt;u&gt;the safest way to scrape 
data&lt;/u&gt;, as it decouples the code from the &lt;u&gt;web page markup&lt;/u&gt; – so if the site
 you are scraping goes through a redesign, &lt;u&gt;you can quickly adjust the 
config files without recompiling the code they pass data to&lt;/u&gt;.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
The site  some good &lt;a href=&quot;http://web-harvest.sourceforge.net/samples.php&quot;&gt;example scripts&lt;/a&gt;
 to show you how to get started, so I won’t repeat them here.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
The 
easiest way to create your own is to run the &lt;u&gt;&lt;b&gt;WebHarvest GUI&lt;/b&gt;&lt;/u&gt; from the 
command line,(ie: &lt;b&gt;java -jar webharvest_all_2.jar&lt;/b&gt;) start with a sample script, &lt;b&gt;&lt;u&gt;and then hack it around to get
 what you want – it’s an easy iterative process with good feedback in 
the UI.&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FOR INSTANCE: let&#39;s have a look at the second example to start working on the Canon products at Yahoo Shopping sample.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-vUahn_Hf16A/T5Zn3boGlzI/AAAAAAAAAaI/_UBrzn9tiYw/s1600/wh1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;337&quot; src=&quot;http://3.bp.blogspot.com/-vUahn_Hf16A/T5Zn3boGlzI/AAAAAAAAAaI/_UBrzn9tiYw/s640/wh1.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As we can see we want to harvest around the following url:&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;a href=&quot;http://shopping.yahoo.com/s:Digital%20Cameras:4168-Brand=Canon:browsename=Canon%20Digital%20Cameras:refspaceid=96303108;_ylt=AnHw0Qy0K6smBU.hHvYhlUO8cDMB;_ylu=X3oDMTBrcDE0a28wBF9zAzk2MzAzMTA4BHNlYwNibmF2&quot;&gt;http://shopping.yahoo.com/s:Digital%20Cameras:4168-Brand=Canon:browsename=Canon%20Digital%20Cameras:refspaceid=96303108;_ylt=AnHw0Qy0K6smBU.hHvYhlUO8cDMB;_ylu=X3oDMTBrcDE0a28wBF9zAzk2MzAzMTA4BHNlYwNibmF2&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
the simple script is :&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;config charset=&quot;ISO-8859-1&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;include path=&quot;functions.xml&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- collects all tables for individual products --&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;var-def name=&quot;products&quot;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;call name=&quot;download-multipage-list&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;call-param name=&quot;pageUrl&quot;&amp;gt;http://shopping.yahoo.com/s:Digital%20Cameras:4168-Brand=Canon:browsename=Canon%20Digital%20Cameras:refspaceid=96303108;_ylt=AnHw0Qy0K6smBU.hHvYhlUO8cDMB;_ylu=X3oDMTBrcDE0a28wBF9zAzk2MzAzMTA4BHNlYwNibmF2&amp;lt;/call-param&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;call-param name=&quot;nextXPath&quot;&amp;gt;//a[starts-with(., &#39;Next&#39;)]/@href&amp;lt;/call-param&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;call-param name=&quot;itemXPath&quot;&amp;gt;//li[@class=&quot;hproduct&quot; or @class=&quot;hproduct first&quot; or @class=&quot;hproduct last&quot;]&amp;lt;/call-param&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;call-param name=&quot;maxloops&quot;&amp;gt;10&amp;lt;/call-param&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/call&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/var-def&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- iterates over all collected products and extract desired data --&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;file action=&quot;write&quot; path=&quot;D:/tmp/canon/catalog.xml&quot; charset=&quot;UTF-8&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;![CDATA[ &amp;lt;catalog&amp;gt; ]]&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;loop item=&quot;item&quot; index=&quot;i&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;list&amp;gt;&amp;lt;var name=&quot;products&quot;/&amp;gt;&amp;lt;/list&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xquery&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xq-param name=&quot;item&quot; type=&quot;node()&quot;&amp;gt;&amp;lt;var name=&quot;item&quot;/&amp;gt;&amp;lt;/xq-param&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xq-expression&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; declare variable $item as node() external;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let $name := data($item//*[@class=&#39;title&#39;])&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let $desc := data($item//*[@class=&#39;desc&#39;])&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let $price := data($item//*[@class=&#39;price&#39;])&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;product&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;{normalize-space($name)}&amp;lt;/name&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;desc&amp;gt;{normalize-space($desc)}&amp;lt;/desc&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;price&amp;gt;{normalize-space($price)}&amp;lt;/price&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/product&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]]&amp;gt;&amp;lt;/xq-expression&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/xquery&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/loop&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;![CDATA[ &amp;lt;/catalog&amp;gt; ]]&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/file&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/config&amp;gt; &lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As a simple example, this is a script to go to the Sony-Ericsson developer site’s handset gallery at &lt;code&gt;http://developer.sonyericsson.com/device/searchDevice.do?restart=true&lt;/code&gt;, and rip each handset’s individual spec page URI:&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;br /&gt;&amp;lt;config&amp;gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!-- indicates we want a loop, through the list defined in &amp;lt;list&amp;gt;, doing &amp;lt;body&amp;gt; for each item where the variables uri and i are defined as the index and value of the relevant item --&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;loop item=&quot;uid&quot; index=&quot;i&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- the list section defines what we will loop over - here, it pulls out the value attribute of all option tags --&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;list&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xpath expression=&quot;//option/@value&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;html-to-xml&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;http url=&quot;http://developer.sonyericsson.com/device/searchDevice.do?restart=true&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/html-to-xml&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/xpath&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/list&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- the body section lists instructions which are run for every iteration of the loop --&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- we define a new variable for every iteration, using the iteration count as a suffix&amp;nbsp; --&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;var-def name=&quot;uri.${i}&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- template tag is important, else the $ var syntax will be ignored and won&#39;t do any value substitutions --&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;template&amp;gt;device/loadDevice.do?id=${uid}&amp;lt;/template&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/var-def&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/loop&amp;gt;&lt;br /&gt;&amp;lt;/config&amp;gt; &lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/4721430209710298742/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/05/webharvest-easy-java-web-scraping.html#comment-form' title='1 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/4721430209710298742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/4721430209710298742'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/05/webharvest-easy-java-web-scraping.html' title='WebHarvest: Easy Java Web Scraping'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-nW01M4Q9oNo/T5gqvsuyzgI/AAAAAAAAAaY/1AHwNn6mDxs/s72-c/webharvest.gif" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-4795981355705802836</id><published>2012-05-16T15:40:00.001-07:00</published><updated>2012-05-16T15:40:42.965-07:00</updated><title type='text'>Core Spring and IOC concept in a nut. 1</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-pYkWHhgQTVY/T6ErOI9XZvI/AAAAAAAAAdI/uPHStOyq4NE/s1600/placeholder_video_spring_projects.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-pYkWHhgQTVY/T6ErOI9XZvI/AAAAAAAAAdI/uPHStOyq4NE/s1600/placeholder_video_spring_projects.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Core Spring API Components&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Spring is a container and component model. Everything else, including AOP, transactions, database&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;access, web applications, and the like is &lt;b style=&quot;background-color: yellow;&quot;&gt;built on top of this container&lt;/b&gt; &lt;span style=&quot;background-color: yellow;&quot;&gt;and component model&lt;/span&gt;. Objects &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;managed in the container &lt;u&gt;&lt;b&gt;do not have to know about Spring&lt;/b&gt;&lt;/u&gt; or the container because of &lt;b&gt;Inversion of&lt;/b&gt;&lt;/span&gt;&lt;b&gt; &lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;Control (IoC)&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;This pattern specifies the involvement of the Spring container (&lt;u&gt;&lt;b&gt;which manages lifecycle&lt;/b&gt;&lt;/u&gt;),&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;your object, and any other dependant objects – known as beans in Spring parlance.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The container &lt;b&gt;is able&lt;/b&gt;&lt;/span&gt;&lt;b&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;to inject any number or type of dependant beans together while specifying the relationship through&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;configuration&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Dependency injection is enabled by creating properties and matching setter methods of &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;your target object for the types of objects that you expect to inject. Alternatively, objects may be injected&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;during instantiation by providing a constructor with a signature that matches types you expect to inject.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The core of Spring framework’s functionality lies within this IoC container, which is discussed next.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The Inversion of Control Container&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The Inversion of Control (IoC) container provides the dependency injection support to your applications&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;that enables you to configure and integrate application and infrastructure components together&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;. &lt;u&gt;&lt;b&gt;Through IoC, your applications may achieve a low-level of coupling&lt;/b&gt;&lt;/u&gt;, because all of the bean&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;configuration can be specified in terms of IoC idioms (such as property collaborators and constructors). &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Meanwhile, most if not all of your application’s bean lifecycle (construction to destruction) may be &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;managed from within the container.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;This enables you to declare &lt;u&gt;&lt;b&gt;scope &lt;/b&gt;&lt;/u&gt;– how and when a new object&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;instance gets created, and when it gets destroyed.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;For example, the container may be instructed that a&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;u style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;specific bean instance be created only once per thread&lt;/b&gt;&lt;/u&gt;, or that, upon destruction, a database bean may&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;disconnect from any active connections.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Through requests to the Spring IoC container, a new bean may&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;either get constructed or a singleton bean may get passed back to the requesting bean. Either way, this is&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;a transparent event that is configured along with the bean declaration.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;u&gt;&lt;b&gt;Spring Container Metadata Configuration&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;
Spring provides several implementations of the ApplicationContext interface out of the box. In standalone applications using XML metadata (still commonplace today), it is common to create an&lt;br /&gt;
instance of&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;i style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;org.springframework.context.support.ClassPathXmlApplicationContext&lt;/b&gt;&lt;/i&gt; or &lt;br /&gt;
&lt;i style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;org.springframework.context.support.FileSystemXmlApplicationContext&lt;/b&gt;&lt;/i&gt;.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;u&gt;&lt;b&gt;Configuration metadata&lt;/b&gt;&lt;/u&gt; consisting of bean definitions represented with XML or Java configuration is preferred for third-party APIs for which you do not have access to source code.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
In most other cases, &lt;span style=&quot;background-color: yellow;&quot;&gt;configuration metadata&lt;/span&gt; – &lt;u&gt;&lt;b&gt;in addition to, or in place of XML&lt;/b&gt;&lt;/u&gt; – may be applied through Java annotations.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
ioc_basics.xml –&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
A Basic Spring Application Configuration File&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;br /&gt;&amp;lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;&lt;br /&gt;xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;br /&gt;xsi:schemaLocation=&quot;&lt;b&gt;http://www.springframework.org/schema/beans&lt;/b&gt;&lt;br /&gt;http://www.springframework.org/schema/beans/spring-beans-3.0.xsd&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;bean class=&quot;com.iocbasics.&lt;b&gt;BasicPOJO&lt;/b&gt;&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;/beans&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
This is a simple XML document that makes use of the Spring beans namespace – the basis for resolving your POJO within the Spring container.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Instantiating the IoC Container&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;To instantiate the IoC container and resolve a functional &lt;b&gt;ApplicationContext &lt;/b&gt;instance, the relevant&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;ApplicationContext&lt;/b&gt; implementation must be invoked with a specified configuration.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;With a standard &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Java application with XML metadata configuration, the &lt;u&gt;&lt;b&gt;ClassPathXmlApplicationContext &lt;/b&gt;&lt;/u&gt;will resolve any&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;number of Spring XML configuration resources given a path relative to the base Java classpath. This &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;constructor is overloaded with a variety of argument arrangements that provide ways to specify the&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;resource locations.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Spring also provides a number of other applicationContext implementations. For example, &lt;u&gt;&lt;b&gt;FileSystemXmlApplicationContext &lt;/b&gt;&lt;/u&gt;is used to load XML configuration &lt;b style=&quot;background-color: yellow;&quot;&gt;from the file system&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt; &lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;(outside of the classpath)&lt;/b&gt;, and &lt;u&gt;&lt;b&gt;AnnotationConfigApplicationContext &lt;/b&gt;&lt;/u&gt;supports loading annotated Java classes.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;In the next part of code, the context constructor is given a single resolvable path of the Spring configuration&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;XML file. If the XML resource were located outside of classpath, the absolute file system path would be provided to the FileSystemApplicationContext factory class to obtain the ApplicationContext.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;i&gt;BasicIoCMain.java&lt;/i&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;– Single Line of Code to Startup you Application Context&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;&quot;&gt;ApplicationContext ctx = new ClassPathXmlApplicationContext(&quot;ioc_basics.xml&quot;);&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The next step is to obtain your configured beans.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Simply calling ApplicationContext.getBean method (by passing it the class of the instance you want returned) will provide, &lt;b&gt;by default&lt;/b&gt;, the &lt;u style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;singleton&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;u style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/u&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;u style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;instance of the bean&lt;/b&gt;&lt;/u&gt;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;u&gt;That is, every bean will be the same instance&lt;/u&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;BasicIocMain.java - Obtaining a Bean Reference by Class.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;BasicPOJO basicPojo = ctx.getBean(BasicPOJO.class);&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Alternatively, Spring can infer which bean definition your looking for by passing it the ID (or qualifier) of the bean instance instead of the bean class. This helps when dealing with multiple bean definitions of the same type.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;For instance, given a bean definition of the same BasicPojo class, The next sample illustrates the&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;combined code effort in setting up and obtaining this bean resource.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;BasicIocMain.java – Obtaining a Bean Reference by Name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;BasicPOJO basicPojo = (BasicPOJO)ctx.getBean(&quot;basic-pojo&quot;);&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: yellow;&quot;&gt;
&lt;u&gt;&lt;b&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;u style=&quot;background-color: yellow;&quot;&gt;&lt;b&gt;Bean Instantiation from the IoC Container&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
A basic operation in a Spring context &lt;b&gt;is instantiating beans&lt;/b&gt;. This is done in a variety of ways; however, we will focus on the most common use cases.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
In this example, the &lt;b&gt;BasicPojo &lt;/b&gt;bean provides &lt;b&gt;both a noarg and arguments-based constructor&lt;/b&gt;. In addition, we have a POJO property named &lt;u&gt;&lt;b&gt;color &lt;/b&gt;&lt;/u&gt;with type &lt;u&gt;&lt;b&gt;ColorEnum &lt;/b&gt;&lt;/u&gt;(see later).&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
We will use both BasicPOJO and ColorEnum objects to illustrate how you can define and populate your beans within Spring XML configuration.&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;package &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;com.sample.iocbasic&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;public class BasicPOJO {&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&lt;br /&gt;public String name;&lt;br /&gt;public ColorEnum color;&lt;br /&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;public ColorRandomizer colorRandomizer;&lt;br /&gt;// empty constructor &lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;public BasicPOJO() {&lt;br /&gt;}&lt;br /&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;public BasicPOJO(&lt;span style=&quot;background-color: orange;&quot;&gt;String name, ColorEnum color&lt;/span&gt;) {&lt;br /&gt;&amp;nbsp;this.name = name;&lt;br /&gt;&amp;nbsp;this.color = color;&lt;br /&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&lt;br /&gt;public String getName() {&lt;br /&gt;&amp;nbsp;return name;&lt;br /&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&lt;br /&gt;public void setName(String name) {&lt;br /&gt;&amp;nbsp;this.name = name;&lt;br /&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&lt;br /&gt;public ColorEnum getColor() {&lt;br /&gt;&amp;nbsp;return color;&lt;br /&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&lt;br /&gt;public void setColor(ColorEnum color) {&lt;br /&gt;&amp;nbsp;this.color = color;&lt;br /&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&lt;br /&gt;public ColorRandomizer getColorRandomizer() {&lt;br /&gt;&amp;nbsp;return colorRandomizer;&lt;br /&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&lt;br /&gt;public void setColorRandomizer(ColorRandomizer colorRandomizer) {&lt;br /&gt;&amp;nbsp;this.colorRandomizer = colorRandomizer;&lt;br /&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&lt;br /&gt;}&lt;/i&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;package com.sample.iocbasic;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;public enum &lt;span style=&quot;background-color: red;&quot;&gt;ColorEnum &lt;/span&gt;{&lt;br /&gt;&amp;nbsp; violet, blue, red, green, purple, orange, yellow&lt;br /&gt;} &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;u&gt;&lt;b&gt;Constructor Injection&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;Constructor arguments may be set through XML configuration. This will enable you to inject dependencies through the constructor arguments.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;To do this, use the constructor-arg element within&lt;br /&gt;the bean definition, as shown in next sample.&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;ioc_basics.xml – XML Bean Construction using Parameterized Arguments&lt;br /&gt;…&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;bean id=&quot;constructor-setup&quot;&lt;br /&gt;class=&quot;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;com.sample.iocbasic&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.&lt;span style=&quot;background-color: yellow;&quot;&gt;BasicPOJO&lt;/span&gt;&quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;&lt;span style=&quot;background-color: orange;&quot;&gt;constructor-arg&lt;/span&gt; name=”name” value=&quot;red&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;&lt;span style=&quot;background-color: orange;&quot;&gt;constructor-arg&lt;/span&gt; name=”color” value=&quot;violet&quot; /&amp;gt;&lt;br /&gt;&amp;lt;/bean&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;…&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Bean References and Setter Injection&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;Bean properties may be injected into your target beans through references to other beans within the scope of your application context.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;This is known as &lt;b style=&quot;background-color: yellow;&quot;&gt;bean collaboration&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;This requires defining the additional bean that you wish to refer to, also known as the collaborator. Using the ref attribute in the&lt;br /&gt;property tag enables us to tell Spring which bean we want to collaborate with, and thus have injected&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;b&gt;ioc_basics.xml&lt;/b&gt; – XML Configuration for Bean Collaboration by Setting Injection&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;bean id=&quot;no-args&quot;&lt;br /&gt;class=&quot;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;com.sample.iocbasic&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.BasicPOJO&quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;property name=&quot;color&quot; ref=&quot;&lt;span style=&quot;background-color: cyan;&quot;&gt;defaultColor&lt;/span&gt;&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;property name=&quot;name&quot; value=&quot;Mario&quot;/&amp;gt;&lt;br /&gt;&amp;lt;/bean&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&amp;lt;bean id=&quot;&lt;span style=&quot;background-color: cyan;&quot;&gt;defaultColor&lt;/span&gt;&quot;&lt;br /&gt;class=&quot;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;com.sample.iocbasic&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.&lt;span style=&quot;background-color: red;&quot;&gt;ColorEnum&lt;/span&gt;&quot;&lt;br /&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;factory-method=&quot;valueOf&quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;constructor-arg value=&quot;blue&quot;/&amp;gt;&lt;br /&gt;&amp;lt;/bean&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Static and Instance Factory Injection&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;Note the &lt;span style=&quot;background-color: lime;&quot;&gt;factory-method&lt;/span&gt; attribute on the defaultColor element.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;In this case the &lt;u&gt;&lt;b&gt;static factory method instantiation mechanism was used&lt;/b&gt;&lt;/u&gt;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;Note also that the class attribute does not specify the type of object returned by a factory method, as it specifies only the type containing that factory method.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;For this simple example, &lt;b&gt;a string was fed to the enum &lt;u&gt;static factory method valueOf&lt;/u&gt;&lt;/b&gt;, which is the common approach to resolving enum constants from strings.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;When static factory methods are not practical, &lt;b&gt;use instance factory methods instead&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;These are methods that get invoked from existing beans on the container to provide new bean instances.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;The class in the next sample demonstrates instance factory methods to provide random ColorEnum instances.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;ColorRandomizer.java – Class Definition for the ColorRandomizer Factory Bean&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;package &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;com.sample.iocbasic&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;;&lt;br /&gt;import java.util.Random;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;public class ColorRandomizer {&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;ColorEnum colorException;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;public ColorEnum &lt;span style=&quot;background-color: cyan;&quot;&gt;randomColor&lt;/span&gt;() {&lt;br /&gt;&amp;nbsp; ColorEnum[] allColors = ColorEnum.values();&lt;br /&gt;&amp;nbsp; ColorEnum ret = null;&lt;br /&gt;&amp;nbsp; do {&lt;br /&gt;&amp;nbsp;&amp;nbsp; ret = allColors[new Random().nextInt(allColors.length - 1)];&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; while (colorException != null &amp;amp;&amp;amp; colorException == ret);&lt;br /&gt;&amp;nbsp; return ret;&lt;br /&gt;&amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;public ColorEnum &lt;span style=&quot;background-color: orange;&quot;&gt;exceptColor&lt;/span&gt;(ColorEnum ex) {&lt;br /&gt;&amp;nbsp;ColorEnum ret = null;&lt;br /&gt;&amp;nbsp;do {&lt;br /&gt;&amp;nbsp; ret = randomColor();&lt;br /&gt;&amp;nbsp;} while (ex != null &amp;amp;&amp;amp; ex == ret);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;return ret;&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;public void setColorException(ColorEnum colorExceptions) {&lt;br /&gt;&amp;nbsp;this.colorException = colorExceptions;&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;To invoke the factory within our Spring context, ColorRandomizer will be defined as a bean, then one of its methods will be invoked in another bean definition as a way to vend an instance of ColorEnum.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;We obtain two separate instances of ColorEnum using both ColorRandomizer factory methods to illustrate variances in factory method invocations.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;u&gt;&lt;b&gt;Obtaining Bean Instances from Factory Methods in Spring&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;!-- Factory bean for colors --&amp;gt;&lt;br /&gt;&amp;lt;bean id=&quot;&lt;span style=&quot;background-color: #b4a7d6;&quot;&gt;colorRandomizer&lt;/span&gt;&quot; class=&quot;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;com.sample.iocbasic&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;.ColorRandomizer&quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;!-- gets a random color --&amp;gt;&lt;br /&gt;&amp;lt;bean id=&quot;&lt;span style=&quot;background-color: red;&quot;&gt;randomColor&lt;/span&gt;&quot; factory-bean=&quot;&lt;span style=&quot;background-color: #b4a7d6;&quot;&gt;colorRandomizer&lt;/span&gt;&quot; &lt;span style=&quot;background-color: white;&quot;&gt;factory-method&lt;/span&gt;=&quot;&lt;span style=&quot;background-color: cyan;&quot;&gt;randomColor&lt;/span&gt;&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;!-- gets any color, except the random color defined above --&amp;gt;&lt;br /&gt;&amp;lt;bean id=&quot;&lt;span style=&quot;background-color: white;&quot;&gt;exclusiveColor&lt;/span&gt;&quot; factory-bean=&quot;colorRandomizer&quot; &lt;span style=&quot;background-color: white;&quot;&gt;factory-method&lt;/span&gt;=&quot;&lt;span style=&quot;background-color: orange;&quot;&gt;exceptColor&lt;/span&gt;&quot;&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;constructor-arg ref=&quot;&lt;span style=&quot;background-color: red;&quot;&gt;randomColor&lt;/span&gt;&quot;/&amp;gt;&lt;br /&gt;&amp;lt;/bean&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;u&gt;&lt;b&gt;Bean Scopes&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;Spring uses the notion of &lt;u&gt;bean scopes to determine how beans defined in the IoC container get issued &lt;/u&gt;to the application upon request with &lt;b&gt;getBean &lt;/b&gt;methods, or through bean references.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;A bean’s scope is set with the scope attribute in the bean element, &lt;u&gt;or by using the&lt;/u&gt; &lt;b&gt;@Bean&lt;/b&gt; annotation in the class file.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;Spring defaults to the singleton scope, where a single instance of the bean gets shared throughout the entire container. Spring provides a total of six bean scopes out of the box for use in specific context implementations, although only singleton, prototype, and thread are available through all context&lt;br /&gt;implementation.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;The other scopes – &lt;b style=&quot;background-color: yellow;&quot;&gt;request&lt;/b&gt;, &lt;b style=&quot;background-color: yellow;&quot;&gt;session&lt;/b&gt;, and &lt;b&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;globalSession &lt;/span&gt;&lt;/b&gt;– are a&lt;u&gt;vailable only to application contexts that are web-friendly&lt;/u&gt;, such as &lt;u&gt;&lt;b&gt;WebApplicationContext&lt;/b&gt;&lt;/u&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;&lt;u&gt;Bean scopes available in Spring:&lt;/u&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;b style=&quot;background-color: orange;&quot;&gt;Singleton&lt;/b&gt; Single bean instance per container, shared throughout the IoC container.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;b style=&quot;background-color: orange;&quot;&gt;Prototype &lt;/b&gt;New bean instance created per request.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;b style=&quot;background-color: orange;&quot;&gt;Request&lt;/b&gt; &lt;u&gt;Web application contexts only&lt;/u&gt;: Creates a bean instance per HTTP request.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;b style=&quot;background-color: orange;&quot;&gt;Session&lt;/b&gt; Web application contexts only: Creates a bean instance per HTTP session.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;b style=&quot;background-color: orange;&quot;&gt;GlobalSession&lt;/b&gt; Web portlet only: Creates a bean instance per Global HTTP session.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;b style=&quot;background-color: orange;&quot;&gt;Thread*&lt;/b&gt; Creates a bean instance per thread. Similar to request scope.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;* Thread scope is not registered by default, and requires registration with the CustomScopeConfigurer bean.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;To illustrate the behavior of prototype- and singleton-scoped beans, next sample declares two beans of the same type, which differ only in scope.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;The value from the singleton-scoped bean should always&lt;br /&gt;return the same value, whereas the prototype-scoped bean will always return different values (since the&lt;br /&gt;factory returns random numbers).&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;This shows the Spring configuration file and the next one&lt;br /&gt;shows the main class.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;b&gt;ioc_basics.xml&lt;/b&gt; – Overriding Default Scope for Beans with XML Metadata&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;beans…&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;bean id=&quot;&lt;span style=&quot;background-color: lime;&quot;&gt;randomeverytime&lt;/span&gt;&quot; factory-bean=&quot;colorRandomizer&quot; factory-&amp;nbsp; method=&quot;randomColor&quot;&lt;br /&gt;scope=&quot;&lt;span style=&quot;background-color: yellow;&quot;&gt;prototype&lt;/span&gt;&quot;/&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;lt;bean id=&quot;&lt;span style=&quot;background-color: orange;&quot;&gt;alwaysthesame&lt;/span&gt;&quot; factory-bean=&quot;colorRandomizer factory-method=&quot;randomColor&quot;&lt;br /&gt;scope=&quot;&lt;span style=&quot;background-color: yellow;&quot;&gt;singleton&lt;/span&gt;&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;&quot;&gt;&amp;lt;/beans&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;BasicIocMain.java –Simple For-Loop&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;public static void demonstrateScopes(ApplicationContext ctx) {&lt;br /&gt;&amp;nbsp;for (int i = 0; i &amp;lt; 5; i++) {&lt;br /&gt;&amp;nbsp; System.out.println(&quot;randomeverytime: &quot; +&lt;br /&gt;&amp;nbsp; &amp;nbsp; ctx.getBean(&quot;&lt;span style=&quot;background-color: lime;&quot;&gt;randomeverytime&lt;/span&gt;&quot;, ColorEnum.class));&lt;br /&gt;&amp;nbsp; System.out.println(&quot;alwaysthesame: &quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ctx.getBean(&quot;&lt;span style=&quot;background-color: orange;&quot;&gt;alwaysthesame&lt;/span&gt;&quot;, ColorEnum.class));&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;The output of this loop will emit text similar to this: &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;Output of Bean Scope Induced Behavior&lt;br /&gt;randomeverytime: &lt;span style=&quot;background-color: #b6d7a8;&quot;&gt;green&lt;/span&gt;&lt;br /&gt;alwaysthesame: &lt;span style=&quot;background-color: #f9cb9c;&quot;&gt;orange&lt;/span&gt;&lt;br /&gt;randomeverytime: &lt;span style=&quot;background-color: #b4a7d6;&quot;&gt;purple&lt;/span&gt;&lt;br /&gt;alwaysthesame: &lt;span style=&quot;background-color: #f9cb9c;&quot;&gt;orange&lt;/span&gt;&lt;br /&gt;randomeverytime: &lt;span style=&quot;background-color: #d5a6bd;&quot;&gt;violet&lt;/span&gt;&lt;br /&gt;alwaysthesame: &lt;span style=&quot;background-color: #f9cb9c;&quot;&gt;orange&lt;/span&gt;&lt;br /&gt;randomeverytime: &lt;span style=&quot;background-color: #d5a6bd;&quot;&gt;violet&lt;/span&gt;&lt;br /&gt;alwaysthesame: &lt;span style=&quot;background-color: #f9cb9c;&quot;&gt;orange&lt;/span&gt;&lt;br /&gt;randomeverytime: &lt;span style=&quot;background-color: #b6d7a8;&quot;&gt;green&lt;/span&gt;&lt;br /&gt;alwaysthesame: &lt;span style=&quot;background-color: #f9cb9c;&quot;&gt;orange&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;background-color: #f9cb9c;&quot;&gt;&lt;/span&gt;&lt;br /&gt;You register the thread scope, or any other custom scope, in XML by defining a org.springframework.beans.factory.config.CustomScopeConfigurer bean.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;Pass the scope implementation class to the map property scopes. The map property is evaluated with the key providing the scope name,&lt;br /&gt;and value having the scope’s implementation class. Registering in this fashion is always compatible to @Bean annotated properties with the @Scope annotation. That is, a scope definition once enabled for any given scope is activated throughout the container and for all manners of configuration (see next).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;Ioc_basics.xml – Registering Custom Scopes in XML&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;beans…&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;bean class=&quot;org.springframework.beans.factory.config.CustomScopeConfigurer&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;property name=&quot;scopes&quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;map&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;entry key=&quot;thread&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean class=&quot;org.springframework.context.support.SimpleThreadScope&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/entry&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/map&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;&amp;lt;bean id=&quot;threadColor&quot; factory-bean=&quot;colorRandomizer&quot; factory-method=&quot;randomColor&quot;&lt;br /&gt;scope=&quot;thread&quot;/&amp;gt;&lt;br /&gt;&amp;lt;/beans…&amp;gt;&lt;/span&gt;&lt;/b&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/4795981355705802836/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/05/core-spring-and-ioc-concept-in-nut-1.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/4795981355705802836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/4795981355705802836'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/05/core-spring-and-ioc-concept-in-nut-1.html' title='Core Spring and IOC concept in a nut. 1'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-pYkWHhgQTVY/T6ErOI9XZvI/AAAAAAAAAdI/uPHStOyq4NE/s72-c/placeholder_video_spring_projects.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-6012102998404287081</id><published>2012-05-16T05:49:00.003-07:00</published><updated>2015-03-26T03:01:02.211-07:00</updated><title type='text'>Umlet</title><content type='html'>&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-kk3ntILTtBo/T7OiSd5cOyI/AAAAAAAAAdw/w_TTlAHFlb0/s1600/e27232c8-9239-df11-b12b-0022190f5762_3_full.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-kk3ntILTtBo/T7OiSd5cOyI/AAAAAAAAAdw/w_TTlAHFlb0/s640/e27232c8-9239-df11-b12b-0022190f5762_3_full.png&quot; height=&quot;489&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://www.umlet.com/&quot;&gt;http://www.umlet.com/&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Finally a cool customizable and free uml tools, that I really really appreciate for it&#39;s immediate and simple approach.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Good projecting to everyone !!&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/6012102998404287081/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/05/httpwww.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/6012102998404287081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/6012102998404287081'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/05/httpwww.html' title='Umlet'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-kk3ntILTtBo/T7OiSd5cOyI/AAAAAAAAAdw/w_TTlAHFlb0/s72-c/e27232c8-9239-df11-b12b-0022190f5762_3_full.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-3592785263410935175</id><published>2012-05-16T05:03:00.002-07:00</published><updated>2012-05-16T05:03:42.215-07:00</updated><title type='text'>ETL Pattern</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-_XX02PQ3GSc/T4vp686VWOI/AAAAAAAAAZ4/zJaxZm8ToEU/s1600/ETL_Architecture_Pattern.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;http://3.bp.blogspot.com/-_XX02PQ3GSc/T4vp686VWOI/AAAAAAAAAZ4/zJaxZm8ToEU/s640/ETL_Architecture_Pattern.jpg&quot; width=&quot;417&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/3592785263410935175/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/05/etl-pattern.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/3592785263410935175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/3592785263410935175'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/05/etl-pattern.html' title='ETL Pattern'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-_XX02PQ3GSc/T4vp686VWOI/AAAAAAAAAZ4/zJaxZm8ToEU/s72-c/ETL_Architecture_Pattern.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-8440199469789654978</id><published>2012-05-10T02:59:00.005-07:00</published><updated>2012-05-10T02:59:46.287-07:00</updated><title type='text'>jQuery notes</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-rmSeIpJIM1E/T6JWWwFvImI/AAAAAAAAAdc/_Flg0mEx2cA/s1600/jquery1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-rmSeIpJIM1E/T6JWWwFvImI/AAAAAAAAAdc/_Flg0mEx2cA/s1600/jquery1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
Some notes finally helps me to properly integrate this powerful traversing/navigation/managing tool but I can&#39;t find specifically in any documentation I&#39;ve read.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
These lines were added from a java class that load a javascript on rendering components. This should be useful because it&#39;s not so obvious the sigle or double quote integration.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
So let&#39;s start retrieving the main dom object to work on.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
We know the id of the document:&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;var strCH=&#39;\\&#39;[id*=columnHeader]\\&#39;&#39;;&lt;/b&gt;&quot;+&lt;br /&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
// using the jQuery wrapper retrieve the children list (jquery function http://api.jquery.com/children/)&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
// then retrieve the first array dom object&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;var tableCols=$(strCH).children().get(0);&lt;/b&gt;&quot; +&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
// pay attention that this object is a standard dom object and not a jQuery wrapper instead. So every jquery api function give us an error.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
// TO START AGAIN WITH A JQUERY WRAPPER LET&#39;S CALL AGAIN $&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;var trc = $(tableCols).find(&#39;tr&#39;);&lt;/b&gt;&quot;+&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;var tdsCol = $(trc).children();&lt;/b&gt;&quot; +&lt;br /&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
// for each colum&amp;nbsp; &lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;tdsCol.each(function(j){&lt;/b&gt;&quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (this._logger==null){&quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this._logger = new Log(Log.DEBUG, Log.popupLogger);&quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot; +&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;var tdc = $(this).get(0);&lt;/b&gt;&quot; +&lt;br /&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;tdc.style.borderBottomWidth&lt;/b&gt;=&#39;0px&#39;;&quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; tdc.style.borderBottomStyle=&#39;&#39;;&quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; tdc.style.borderRightWidth=&#39;0px&#39;;&quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; tdc.style.borderRigthStyle=&#39;&#39;;&quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; tdc.style.borderTopWidth=&#39;0px&#39;;&quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; tdc.style.borderTopStyle=&#39;&#39;;&quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; });&quot; +&lt;br /&gt;&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/8440199469789654978/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/05/jquery-notes.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/8440199469789654978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/8440199469789654978'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/05/jquery-notes.html' title='jQuery notes'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-rmSeIpJIM1E/T6JWWwFvImI/AAAAAAAAAdc/_Flg0mEx2cA/s72-c/jquery1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981261623134351535.post-5894625636128732758</id><published>2012-05-03T02:57:00.002-07:00</published><updated>2012-05-03T02:57:46.861-07:00</updated><title type='text'>jQuery Selectors</title><content type='html'>&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-rmSeIpJIM1E/T6JWWwFvImI/AAAAAAAAAdc/_Flg0mEx2cA/s1600/jquery1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-rmSeIpJIM1E/T6JWWwFvImI/AAAAAAAAAdc/_Flg0mEx2cA/s1600/jquery1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h2 style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;jQuery Selectors&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Use w3c excellent &lt;a href=&quot;http://www.w3schools.com/jquery/trysel.asp?filename=trysel_basic&amp;amp;jqsel=p.intro,%23choose&quot; target=&quot;_blank&quot;&gt;jQuery Selector Tester&lt;/a&gt; to experiment with the different selectors.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table class=&quot;reference&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;th align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Selector&lt;/span&gt;&lt;/th&gt;
&lt;th align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Example&lt;/span&gt;&lt;/th&gt;
&lt;th align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Selects&lt;/span&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_all.asp&quot;&gt;*&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;*&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All elements&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_id.asp&quot;&gt;#&lt;em&gt;id&lt;/em&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;#lastname&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;The element with id=lastname&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_class.asp&quot;&gt;.&lt;em&gt;class&lt;/em&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;.intro&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All elements with class=&quot;intro&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_element.asp&quot;&gt;&lt;em&gt;element&lt;/em&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;p&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All p elements&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;.&lt;em&gt;class&lt;/em&gt;.&lt;em&gt;class&lt;/em&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;.intro.demo&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All elements with the classes &quot;intro&quot; and &quot;demo&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_first.asp&quot;&gt;:first&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;p:first&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;The first p element&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_last.asp&quot;&gt;:last&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;p:last&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;The last p element&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_even.asp&quot;&gt;:even&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;tr:even&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All even tr elements&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_odd.asp&quot;&gt;:odd&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;tr:odd&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All odd tr elements&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_eq.asp&quot;&gt;:eq(&lt;em&gt;index&lt;/em&gt;)&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;ul li:eq(3)&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;The fourth element in a list (index starts at 0)&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_gt.asp&quot;&gt;:gt(&lt;em&gt;no&lt;/em&gt;)&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;ul li:gt(3)&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;List elements with an index greater than 3&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_lt.asp&quot;&gt;:lt(&lt;em&gt;no&lt;/em&gt;)&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;ul li:lt(3)&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;List elements with an index less than 3&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_not.asp&quot;&gt;:not(&lt;em&gt;selector&lt;/em&gt;)&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;input:not(:empty)&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All input elements that are not empty&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_header.asp&quot;&gt;:header&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:header&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All header elements h1, h2 ...&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_animated.asp&quot;&gt;:animated&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:animated&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All animated elements&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_contains.asp&quot;&gt;:contains(&lt;em&gt;text&lt;/em&gt;)&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:contains(&#39;W3Schools&#39;)&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All elements which contains the text&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_empty.asp&quot;&gt;:empty&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:empty&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All elements with no child (elements) nodes&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;:hidden&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;p:hidden&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All hidden p elements&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_visible.asp&quot;&gt;:visible&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;table:visible&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All visible tables&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;em&gt;s1&lt;/em&gt;,&lt;em&gt;s2&lt;/em&gt;,&lt;em&gt;s3&lt;/em&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;th,td,.intro&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All elements with matching selectors&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_attribute.asp&quot;&gt;[&lt;em&gt;attribute&lt;/em&gt;]&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;[href]&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All elements with a href attribute&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_attribute_equal_value.asp&quot;&gt;[&lt;em&gt;attribute&lt;/em&gt;=&lt;em&gt;value&lt;/em&gt;]&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;[href=&#39;default.htm&#39;]&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All elements with a href attribute value equal to &quot;default.htm&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_attribute_notequal_value.asp&quot;&gt;[&lt;em&gt;attribute&lt;/em&gt;!=&lt;em&gt;value&lt;/em&gt;]&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;[href!=&#39;default.htm&#39;]&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All elements with a href attribute value not equal to &quot;default.htm&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_attribute_end_value.asp&quot;&gt;[&lt;em&gt;attribute&lt;/em&gt;$=&lt;em&gt;value&lt;/em&gt;]&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;[href$=&#39;.jpg&#39;]&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All elements with a href attribute value ending with &quot;.jpg&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;[&lt;i&gt;attribute&lt;/i&gt;^=&lt;i&gt;value&lt;/i&gt;]&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;[href^=&#39;jquery_&#39;]&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All elements with a href attribute value starting with &quot;jquery_&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_input.asp&quot;&gt;:input&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:input&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All input elements&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_input_text.asp&quot;&gt;:text&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:text&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All input elements with type=&quot;text&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_input_password.asp&quot;&gt;:password&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:password&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All input elements with type=&quot;password&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_input_radio.asp&quot;&gt;:radio&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:radio&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All input elements with type=&quot;radio&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_input_checkbox.asp&quot;&gt;:checkbox&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:checkbox&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All input elements with type=&quot;checkbox&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_input_submit.asp&quot;&gt;:submit&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:submit&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All input elements with type=&quot;submit&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_input_reset.asp&quot;&gt;:reset&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:reset&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All input elements with type=&quot;reset&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_input_button.asp&quot;&gt;:button&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:button&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All input elements with type=&quot;button&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_input_image.asp&quot;&gt;:image&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:image&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All input elements with type=&quot;image&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_input_file.asp&quot;&gt;:file&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:file&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All input elements with type=&quot;file&quot;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_input_enabled.asp&quot;&gt;:enabled&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:enabled&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All enabled input elements&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_input_disabled.asp&quot;&gt;:disabled&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:disabled&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All disabled input elements&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_input_selected.asp&quot;&gt;:selected&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:selected&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All selected input elements&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/jquery/sel_input_checked.asp&quot;&gt;:checked&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;$(&quot;:checked&quot;)&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;All checked input elements&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://tryckydroid.blogspot.com/feeds/5894625636128732758/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://tryckydroid.blogspot.com/2012/05/jquery-selectors.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/5894625636128732758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981261623134351535/posts/default/5894625636128732758'/><link rel='alternate' type='text/html' href='http://tryckydroid.blogspot.com/2012/05/jquery-selectors.html' title='jQuery Selectors'/><author><name>Trick</name><uri>http://www.blogger.com/profile/09419846904528330310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-rmSeIpJIM1E/T6JWWwFvImI/AAAAAAAAAdc/_Flg0mEx2cA/s72-c/jquery1.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>