<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="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" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4844845394374641519</atom:id><lastBuildDate>Fri, 25 Oct 2024 11:49:05 +0000</lastBuildDate><category>google</category><category>spring</category><category>IVY jayasoft dependency management</category><category>LINUX</category><category>SOA</category><category>mysql</category><category>EIP</category><category>Fedora</category><category>Software Architecture</category><category>open source</category><category>web services</category><category>AOP</category><category>Android</category><category>Architecture Style</category><category>Books</category><category>Carnegie Mellon</category><category>ESB</category><category>GWT</category><category>J2EE pattern</category><category>JMX</category><category>Java</category><category>Memory Management</category><category>RAD</category><category>REST</category><category>Symbian</category><category>Time Management</category><category>Toastmasters</category><category>Web2.0</category><category>apache</category><category>apache CXF</category><category>code review</category><category>commons-logging</category><category>communication skills</category><category>conference</category><category>database</category><category>domain driven design</category><category>ftpclient</category><category>google gears</category><category>google reader</category><category>hsenid</category><category>log4j</category><category>m1</category><category>mobicents</category><category>mobile application</category><category>mvc</category><category>observer</category><category>outsourcing</category><category>process</category><category>random thoughts</category><category>saas</category><category>screenshots</category><category>spring integration</category><category>subversion</category><category>svk</category><category>svn</category><category>version control</category><category>video</category><category>vodafone 3g</category><category>web browsers</category><title>Make it happen</title><description></description><link>http://hsenidians.blogspot.com/</link><managingEditor>noreply@blogger.com (hsenidians)</managingEditor><generator>Blogger</generator><openSearch:totalResults>40</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-2898749604946629172</guid><pubDate>Sun, 07 Sep 2008 00:34:00 +0000</pubDate><atom:updated>2008-09-07T08:40:31.082+08:00</atom:updated><title>Not having aggregator is a real struggle !</title><description>I am pushing for a &lt;a href=&quot;http://www.planetplanet.org/&quot;&gt;planet  &lt;/a&gt;like aggregator for us quite a some time. But still not happening. But sooner than later it will come. I even forgot to update this blog as it is a real headache posting the same stuff from my one and here.&lt;br /&gt;&lt;br /&gt;Planned to make this blog as a set of feed reader gadgets. But it isn&#39;t fair for everybody as first blog will always be displayed first.&lt;br /&gt;&lt;br /&gt;And since my last post from here, I had blogged number of posts in mine. Please do visit here :)&lt;br /&gt;&lt;br /&gt;http://jk-blogging.blogspot.com/</description><link>http://hsenidians.blogspot.com/2008/09/not-having-aggregator-is-real-struggle.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-8273368483315003404</guid><pubDate>Fri, 30 May 2008 05:53:00 +0000</pubDate><atom:updated>2008-05-30T13:58:24.237+08:00</atom:updated><title>0&#xa;How To Run Ant FTP / Telnet / Rexec Task</title><description>&lt;p&gt;Included in Ant are optional tasks like &lt;a href=&quot;http://ant.apache.org/manual/OptionalTasks/ftp.html&quot;&gt;FTP&lt;/a&gt; &amp;amp; Telnet. For example the FTP Task allows you to communicate with FTP servers (get / put / list etc.). &lt;/p&gt; &lt;p&gt;Unfortunately they don’t work out of box and not well documented. In this article we will explain the whole procedure in six simple steps.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;To use them follow the steps below:&lt;/p&gt; &lt;ol&gt;&lt;li&gt;Download &lt;a href=&quot;http://apache.mirrors.pair.com/jakarta/oro/binaries/jakarta-oro-2.0.8.tar.gz&quot;&gt;jakarta-oro&lt;/a&gt; and &lt;a href=&quot;http://mirrors.isc.org/pub/apache/jakarta/commons/net/binaries/commons-net-1.4.0.tar.gz&quot;&gt;commons-net&lt;/a&gt; library.&lt;br /&gt;Note: The links above allow you to download the version I tested them with.&lt;/li&gt;&lt;li&gt;Create a lib directory for your project if you have not already done so.&lt;/li&gt;&lt;li&gt;Extract the jar file jakarta-oro*.jar from &lt;a href=&quot;http://jakarta.apache.org/oro/&quot;&gt;jakarta-oro&lt;/a&gt; library you have downloaded and copy it to the lib directory you created.&lt;br /&gt;Note: &lt;ul&gt;&lt;li&gt;If you have downloaded from the links in step 1 then the exact file name is &lt;em&gt;jakarta-oro-2.0.8.jar&lt;/em&gt; &lt;/li&gt;&lt;li&gt;Ensure that the file is copied to the lib directory and not to any of its sub-directories&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;Extract the jar file commons-net*.jar file from &lt;a href=&quot;http://jakarta.apache.org/commons/net/&quot;&gt;commons-net&lt;/a&gt; library you have downloaded and copy it to the lib directory.&lt;br /&gt;Note: &lt;ul&gt;&lt;li&gt;If you have downloaded from the links in step 1 then the exact file name is &lt;em&gt;commons-net-1.4.0.jar&lt;/em&gt; &lt;/li&gt;&lt;li&gt;Ensure that the file is copied to the lib directory and not to any of its sub-directories&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;Add the ftp taskdef at the top:&lt;br /&gt;&lt;taskdef name=&quot;”ftp”&quot; classname=&quot;”org.apache.tools.ant.taskdefs.optional.net.FTP”/&quot;&gt;&lt;/li&gt;&lt;li&gt; Add the appropriate task to your build.xml file. An example task to upload a directory is as follows: &lt;pre&gt;&lt;target name=&quot;upload&quot;&lt;br /&gt;   description=&quot;Upload the files to WordPress Installation&quot; &gt;&lt;br /&gt;   &lt;ftp verbose=&quot;yes&quot; passive=&quot;yes&quot; depends=&quot;yes&quot;&lt;br /&gt;       remotedir=&quot;/test&quot; server=&quot;taragana.com&quot;&lt;br /&gt;       userid=&quot;ftp_login&quot; password=&quot;ftp_password&quot;&gt;&lt;br /&gt;       &lt;fileset dir=&quot;src&quot;&gt;&lt;br /&gt;   &lt;/ftp&gt;&lt;br /&gt;&lt;/target&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;li&gt;Run Ant by including the lib directory in classpath. An example would be: &lt;pre&gt;ant -lib lib upload&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;Note: I just had to include the lib directory to ensure all its jar files are automatically included. &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Note: &lt;/p&gt; &lt;ul&gt;&lt;li&gt;The same procedure can be used to run Ant Telnet and RExec Tasks. Only the task name and parameters in build.xml file will change. Check the corresponding manuals for details.&lt;/li&gt;&lt;li&gt;I have promoted the use of lib directory (within project) to keep your jar files. This makes your jar files available only to your project. There are two other alternatives. First you can keep them in &lt;em&gt;%ANT_HOME%\lib&lt;/em&gt; directory. This makes them available to all projects for all users in that machine.&lt;br /&gt;You can also keep them in &lt;em&gt;${user.home}/.ant/lib&lt;/em&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description><link>http://hsenidians.blogspot.com/2008/05/0-how-to-run-ant-ftp-telnet-rexec-task.html</link><author>noreply@blogger.com (Janesh Chandika)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-5056944631351099597</guid><pubDate>Tue, 04 Mar 2008 09:47:00 +0000</pubDate><atom:updated>2008-03-04T17:48:21.134+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">apache</category><category domain="http://www.blogger.com/atom/ns#">ftpclient</category><title>Feb 29, A bad day for apache ftpclient users</title><description>The below post was written on February 29 and I forgot to post this after writing it ! hence posting little late.&lt;br /&gt;&lt;br /&gt;I am writing this blog after being severely hit by apache ftpclient bug on February 29.&lt;br /&gt;Unsurprisingly the bug has hit the whole world of apache ftpclient users and there were number blogs immediately started popping up.&lt;br /&gt;&lt;br /&gt;By abstract this is the bug all about. When the ftpclient parses the files one by one, it validates the file timestamp. In Unix system it gets the file properties and the date will have the MMM HH:mm if the file is less than 6 months old. Since there is no year in the time stamp string, ftpclient parses it with year 1970 (Well done !) which of course is not a leap year. So Feb 29 is not a valid date in 1970 hence this code segment in class UnixFTPEntryParser returns null.&lt;br /&gt;&lt;br /&gt;                 try{&lt;br /&gt;           file.setTimestamp(super.parseTimestamp(datestr));&lt;br /&gt;       }catch (ParseException e){&lt;br /&gt;           return null;  // this is a parsing failure too.          &lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;There are many temporary ugly fixes based on your requirements ;) For me , I just needed the files to be downloaded, so I catch the exception and if the date string has &quot;Feb 29&quot; and the current year is leap, I just set a Feb 29 time and return the File instead of NULL.&lt;br /&gt;&lt;br /&gt;But people who needs correct time stamp will have to a bit of extra work. This &lt;a href=&quot;https://issues.apache.org/jira/browse/NET-188;jsessionid=4E7628A856C819421669F3B65A75A230&quot;&gt;link&lt;/a&gt; discusses about possible fixes and implications.&lt;br /&gt;&lt;br /&gt;The good thing is we have another four year time to fix this problem !!!</description><link>http://hsenidians.blogspot.com/2008/03/feb-29-bad-day-for-apache-ftpclient.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-4123487738966732816</guid><pubDate>Fri, 29 Feb 2008 03:11:00 +0000</pubDate><atom:updated>2008-02-29T11:14:45.649+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">EIP</category><category domain="http://www.blogger.com/atom/ns#">ESB</category><category domain="http://www.blogger.com/atom/ns#">SOA</category><category domain="http://www.blogger.com/atom/ns#">spring integration</category><title>More on spring integration</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://www.springframework.org/files/logo.jpg&quot;&gt;&lt;img style=&quot;margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 200px;&quot; src=&quot;http://www.springframework.org/files/logo.jpg&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Like I mentioned in my previous post, I in fact had a shot at spring integration. And I asked my buddy Lahiru to have a work on it. And unsurprisingly he found no time to get familiar with the model.&lt;br /&gt;&lt;br /&gt;This is a one major reason why I favor spring integration even though it is far away from being matured.&lt;br /&gt;I don&#39;t find any other proper open source &lt;a href=&quot;http://www.enterpriseintegrationpatterns.com/toc.html&quot;&gt;EIP&lt;/a&gt; solutions alive. Two possible solutions which come across are &lt;a href=&quot;http://activemq.apache.org/&quot;&gt;ActiveMQ&lt;/a&gt; and &lt;a href=&quot;http://activemq.apache.org/&quot;&gt;Apache Camel&lt;/a&gt;. &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://tbn0.google.com/images?q=tbn:UoId-AMeaGMlBM:http://upload.wikimedia.org/wikipedia/en/thumb/9/9c/Apache-camel-logo.png/150px-Apache-camel-logo.png&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px;&quot; src=&quot;http://tbn0.google.com/images?q=tbn:UoId-AMeaGMlBM:http://upload.wikimedia.org/wikipedia/en/thumb/9/9c/Apache-camel-logo.png/150px-Apache-camel-logo.png&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;The former is nothing more than a messaging solution(Wonder how many use its EIP ) and later is something we can make use of (Its again from activemq!). But I don&#39;t need a reseller when you are selling directly to me !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So why I prefer &lt;a href=&quot;http://www.springframework.org/spring-integration&quot;&gt;spring integration&lt;/a&gt; over these solutions ? Here are my points.&lt;br /&gt;1) The AOP support.&lt;br /&gt;Just imagine the beauty of designing the AOP based integration solution. It will be a treat to do and follow.&lt;br /&gt;2) What most of us are doing with Mule (or other opensource ESB) now ? We just use spring every where in it. 9 out of 10 times this is spring on Mule. So being persisted with one framework (which is of course spring! ) will be much more easier for the developers.&lt;br /&gt;3) Spring documentation.&lt;br /&gt;Many times I have mentioned this in my blog. Spring documentation and examples give us no time to understand the solutions easily. I haven&#39;t see any other documentations which can get closer to this. Spring addresses its documentation is a user&#39;s point of view where most of other open source documentations are done on the developer&#39;s(I mean the developers involved in the particular open source product) point of view.&lt;br /&gt;&lt;br /&gt;4) The IOC model.&lt;br /&gt;The same I mention again. It will be easy to plug in the third party adapters with less fuss. I think it is pretty obvious advantage.&lt;br /&gt;&lt;br /&gt;So what I am looking for in the near future on this.&lt;br /&gt;&lt;br /&gt;1) WS support&lt;br /&gt;Desperately need this. I think they will have it before the 1.0 release. SOA is becoming a marketing term these days and it is vital for the designers to have the WS support. So it is so important that spring integration must be released with WS support. But even now it will not be difficult to have a such adapter anyway.&lt;br /&gt;&lt;br /&gt;2) Facility to make hot configuration.&lt;br /&gt;When it comes to production environment, application providers will see easy way of plugging their applications. So a kind of JMX based admin console would be handy. Then again exposing a bean MBean is very easy in spring and you can still self cook.&lt;br /&gt;&lt;br /&gt;Now few hiccups on using Mule which is a tested ESB solution and you can still use it for EIP. To be honest, I had a bit of confused wrong view on ESB against EIP and tried Mule for the purpose of EIP. Surely you can do. But its like using hammer to smash a mosquito. Mule is intended to be used for ESB. Though it pretty tough call to use it for typical SDP solutions, you can still use it. But I differ for using it solely for EIP. Because you will put unnecessary efforts to make it working (Actually I did) and its documentation will never be helping that much.&lt;br /&gt;&lt;br /&gt;But I am pretty confident that a good EIP framework can turn out be a good ESB solution. When you do that, you will have your own flavor and you will have nothing more than what you need. Spring integration has its potential. I wish they have a spring integration (EIP framework) and separate ESB framework so&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://tbn0.google.com/images?q=tbn:2GjyPiqQt-G2JM:http://www.cm.iparenting.com/fc/editor_files/images/1042/Articles/Head_Shoot_BW-Randy_Jackson.jpg&quot;&gt;&lt;img style=&quot;margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 104px; height: 139px;&quot; src=&quot;http://tbn0.google.com/images?q=tbn:2GjyPiqQt-G2JM:http://www.cm.iparenting.com/fc/editor_files/images/1042/Articles/Head_Shoot_BW-Randy_Jackson.jpg&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; people will be able to make use of them according to their needs.&lt;br /&gt;&lt;br /&gt;So the morale of the post having two points.&lt;br /&gt;1)  Like Americal Idol judge Rendy says &quot;Spring integration, Check it out baby, check it out ! &quot;&lt;br /&gt;2) If you have any butterflies regarding to EIP, ESB and SOA, work on it. Read hell lot of documents and get the clear picture of them. I still am working on !!!</description><link>http://hsenidians.blogspot.com/2008/02/more-on-spring-integration.html</link><author>noreply@blogger.com (JK)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-1748173946389814306</guid><pubDate>Mon, 28 Jan 2008 03:02:00 +0000</pubDate><atom:updated>2008-01-28T11:03:41.755+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">EIP</category><category domain="http://www.blogger.com/atom/ns#">SOA</category><category domain="http://www.blogger.com/atom/ns#">spring</category><title>Hang on ! Spring integration is due</title><description>One on the most expecting even happened on 25th January. Spring integration &lt;a href=&quot;http://www.springframework.org/node/583&quot;&gt;1.0 M1 is released&lt;/a&gt;. This is something I have been looking for our integration framework design. People will have their options for these in different varieties. &lt;a href=&quot;http://activemq.apache.org/&quot;&gt;ActiveMQ&lt;/a&gt; is a well known option for &lt;a href=&quot;http://www.enterpriseintegrationpatterns.com/toc.html&quot;&gt;EIP (Enterprise Integration Pattern)&lt;/a&gt;. But it is used as MQ server more often than a platform for EIP. Then we have &lt;a href=&quot;http://mule.mulesource.org/display/REG/Home&quot;&gt;Mule&lt;/a&gt; which is an ESB solution, but Mule has its own flavor for EIP and it really works.&lt;br /&gt;&lt;br /&gt;But spring integration framework must be much better option with time. Not just because it is spring, but it is because of its IOC. Even before you dig in to this &lt;a href=&quot;http://static.springframework.org/spring-integration/reference/htmlsingle/spring-integration-reference.html&quot;&gt;Reference Manual&lt;/a&gt; you can think of how easy the applications could be wired using spring. And with spring web services and Spring integration , you can model a good SOA architecture in your applications.&lt;br /&gt;&lt;br /&gt;I am going to have a try on this.  Will update you with progress.</description><link>http://hsenidians.blogspot.com/2008/01/hang-on-spring-integration-is-due.html</link><author>noreply@blogger.com (JK)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-351198766106615180</guid><pubDate>Mon, 21 Jan 2008 03:18:00 +0000</pubDate><atom:updated>2008-01-21T11:18:48.189+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">IVY jayasoft dependency management</category><title>IVY 2.0 is released as apache project</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://ant.apache.org/ivy/images/ivy-lierre.png&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 111px; height: 64px;&quot; src=&quot;http://ant.apache.org/ivy/images/ivy-lierre.png&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Delighted to see Apache &lt;a href=&quot;http://ant.apache.org/ivy/index.html&quot;&gt;IVY&lt;/a&gt; released its 2.0 version under apache. IVY is a long time sitter under incubator and I surprised about it &lt;a href=&quot;http://hsenidians.blogspot.com/2007/05/ivy-dependency-manager-part1.html&quot;&gt;in this post&lt;/a&gt;. Good to see IVY is under apache label now. Even better I see it under ant which will definitely help promoting IVY. I always feel that ivy + ant will always a better option over maven for small and medium proprietary projects. We at hsenid use ivy heavily and it is our major dependency management setup.&lt;br /&gt;&lt;br /&gt;Click here to see the &lt;a href=&quot;http://ant.apache.org/ivy/history/2.0.0-beta1/release-notes.html&quot;&gt;release notes&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Congratulations IVY.</description><link>http://hsenidians.blogspot.com/2008/01/ivy-20-is-released-as-apache-project.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-8203625307073875449</guid><pubDate>Mon, 14 Jan 2008 09:44:00 +0000</pubDate><atom:updated>2008-01-14T17:47:30.849+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">web browsers</category><title>Is Your HTML Good Enough?</title><description>I found an article that have few links for browser testing services. Here are copy paste part of that article. You can access the original one from &lt;a href=&quot;http://webworkerdaily.com/2008/01/07/is-your-html-good-enough-7-browser-testing-services/&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href=&quot;http://ipinfo.info/netrenderer/index.php&quot;&gt;IE NetRenderer&lt;/a&gt;&lt;/b&gt; will show your page in IE 5.5, 6, or 7, to give Mac and Linux-based designers a quick sanity check. It’s free and quick. &lt;p&gt;&lt;b&gt;&lt;a href=&quot;http://www.browsrcamp.com/&quot;&gt;BrowsrCamp&lt;/a&gt;&lt;/b&gt; is designed to show off how your page looks under the various Mac browser out there. You can view Safari screenshots for free, or take VNC control of a live Mac loaded with 11 different browser for prices starting at $3 for 2 days.&lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href=&quot;http://browsershots.org/&quot;&gt;Browsershots&lt;/a&gt;&lt;/b&gt; is the most comprehensive of the free services, offering screen captures of your site under dozens of different Linux, Mac, and Windows browsers. It’s also popular, and it can take quite a while for requests to work to the head of the queue to be rendered. They’ve recently introduced a $15 per month &lt;a href=&quot;http://browsershots.org/priority/&quot;&gt;priority processing&lt;/a&gt; program to jump requests to the head of the queue.&lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href=&quot;http://www.browsercam.com/default2.aspx&quot;&gt;BrowserCam&lt;/a&gt;&lt;/b&gt; offers an online interface for managing screenshots across a variety of recent browsers and operating systems including Linux, Mac, and Windows; their coverage is excellent. You can get a 24-hour free trial; after that, plans range from $19.95 for one-day access to $399.95 for a full year. Their separate Device Capture service is the only one I know that will do screenshots of your site on Blackberry and Windows Mobile devices.&lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href=&quot;http://litmusapp.com/&quot;&gt;Litmus&lt;/a&gt;&lt;/b&gt; covers a variety of Windows browser, from IE 5.0 up to the alpha of Firefox 3, and say they’re adding Mac browsers soon. Results are returned via screenshots. They also integrate bug tracking, version management, and private URLs you can use to share compatibility results with clients. These features come at a price after the initial 30-day trial: 39 euros monthly for an individual account, or 129 euros monthly for a team account.&lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href=&quot;http://www.netmechanic.com/products/browser-index.shtml&quot;&gt;Browser Photo&lt;/a&gt;&lt;/b&gt; comes from Keynote NetMechanic. They promise screenshots from Windows, Mac and Linux systems for a $15 one-time fee or $150 per year, but don’t offer any details on which browsers or versions they cover in advance of sign-up, or any trial program.&lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href=&quot;http://www.browserpool.com/kc/wob/portal.jsp&quot;&gt;BrowserPool&lt;/a&gt;&lt;/b&gt; takes the VNC approach to provide access to Mac, Windows, and Linux systems. Their pricing starts at 29.99 euros for one month, but unfortunately their software versions are a bit out of date.&lt;/p&gt;</description><link>http://hsenidians.blogspot.com/2008/01/is-your-html-good-enough.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-1014529709271356993</guid><pubDate>Mon, 24 Dec 2007 04:28:00 +0000</pubDate><atom:updated>2007-12-24T12:29:20.180+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">mobicents</category><title>Deploying mobicents services on startup</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://static.flickr.com/16/22030208_e766d7962f_o.gif&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px;&quot; src=&quot;http://static.flickr.com/16/22030208_e766d7962f_o.gif&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;    &lt;style type=&quot;text/css&quot;&gt;  &lt;!--   @page { size: 8.5in 11in; margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;&lt;/style&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;I had spent about 20 minutes to search in the &lt;a href=&quot;https://mobicents.dev.java.net/&quot;&gt;mobicents&lt;/a&gt; documentation to find out the way to make the mobicents deployments permanent. But unfortunately I could not find in the documents which I thought should be a important documentation for any such servers. It might be my mistake to look out the wrong documents or I am afraid, it might have missed in their documents.&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;But fortunately I didn&#39;t spend too much of time to find the way. It is of course an easy and straightforward task. but I wonder how this good procedure made unnoticed and not documented properly. My apologizes to mobicents community if I didn&#39;t really look into the correct documentations.&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;You just have to use a template &lt;a href=&quot;http://en.wikipedia.org/wiki/BeanShell&quot;&gt;BSH&lt;/a&gt; script to make it working .. thats it.&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;For example I  need my http-servlet-ra to be deployed on server startup and make it permanent.&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;Here are the steps I followed.&lt;/p&gt;  &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/p&gt;&lt;ol style=&quot;color: rgb(51, 0, 51);&quot;&gt;&lt;blockquote&gt;&lt;li&gt;Copy the  &lt;mobicents-home&gt;/resources/http-servlet-ra/*.jars into  &lt;mobicents-home&gt;server/server/all/deploy-mobicents/  &lt;/mobicents-home&gt;&lt;/mobicents-home&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;Copy the  &lt;mobicents-home&gt;/resources/http-servlet-ra/deploy-http-servlet-ra.bsh  into &lt;mobicents-home&gt;server/server/all/deploy-mobicents/scripts/&lt;/mobicents-home&gt;&lt;/mobicents-home&gt;&lt;/p&gt;&lt;/li&gt;&lt;/blockquote&gt;&lt;/ol&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/p&gt;  &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;Thats it. Your resource adapter will be installed on server startup. You don&#39;t have to do ant ra-deploy from ra folder anymore !&lt;/p&gt;  &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;Now how about installing and activating our own sbb jars on startup? Simple .. I have a http connector sbb to be deployed and activated upon startup. These are the steps I followed to do so.&lt;/p&gt;  &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/p&gt;&lt;ol&gt;&lt;blockquote style=&quot;color: rgb(51, 0, 51);&quot;&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;Copy the httpconnectorsbb-DU.jar  into &lt;mobicents-home&gt;server/server/all/deploy-mobicents/&lt;/mobicents-home&gt;&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;Now you have to write a  httpconnectorsbb-DU.bsh file and copy in to  &lt;mobicents-home&gt;server/server/all/deploy-mobicents/scripts/&lt;/mobicents-home&gt;&lt;/p&gt;&lt;/li&gt;&lt;/blockquote&gt;&lt;/ol&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/p&gt;  &lt;p style=&quot;margin-bottom: 0in;&quot;&gt; &lt;/p&gt;        Use the following &lt;a href=&quot;https://mobicents-examples.dev.java.net/source/browse/mobicents-examples/3pcc/3pcc_sip_slee/scripts/thirdPCCTrigger-deploy.bsh?hideattic=0&amp;amp;rev=1.1&amp;amp;only_with_tag=HEAD&amp;amp;view=markup&quot;&gt;sample bsh&lt;/a&gt; file and modify it for your service. Make sure you have the same name as your DU jar file name.&lt;br /&gt;&lt;br /&gt;You may just have to modify these two variables. Add your  sbb name, sbb vendor and the version mentioned in your sbb jar xml.&lt;br /&gt;&lt;br /&gt;     &lt;blockquote&gt;  String thirdPCCTriggerURL = &quot;${jboss.server.home.url}deploy-mobicents/ThirdPCCTrigger-DU.jar&quot;;&lt;br /&gt;ServiceIDImpl serviceId = new ServiceIDImpl(&quot;se.jayway.sip.slee.service.ThirdPCCTrigger-service&quot;, &quot;Jayway&quot;, &quot;0.1&quot;);&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Now start your mobicnets server and you will see your RAs and SBBs installed and activated there.&lt;br /&gt;&lt;br /&gt;Coool !!!</description><link>http://hsenidians.blogspot.com/2007/12/deploying-mobicents-services-on-startup.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-499920688687834662</guid><pubDate>Wed, 28 Nov 2007 03:34:00 +0000</pubDate><atom:updated>2007-11-28T11:35:20.150+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">AOP</category><category domain="http://www.blogger.com/atom/ns#">observer</category><category domain="http://www.blogger.com/atom/ns#">spring</category><title>Observer pattern using spring AOP</title><description>I published an article on how to implement the observer pattern using spring AOP.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://jkumaranc.googlepages.com/implementingtheobserverpatternusingsprin&quot;&gt;Visit here to have a look !&lt;/a&gt;</description><link>http://hsenidians.blogspot.com/2007/11/observer-pattern-using-spring-aop.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-9154960122265027019</guid><pubDate>Fri, 16 Nov 2007 03:09:00 +0000</pubDate><atom:updated>2007-11-16T11:10:38.460+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">J2EE pattern</category><category domain="http://www.blogger.com/atom/ns#">RAD</category><title>Pattern Oriented Frameworks - Need for the hour</title><description>Got to know about the project in java.net called&lt;a href=&quot;https://jt.dev.java.net/&quot;&gt; J2EE pattern Oriented framework&lt;/a&gt; Which has built it patterns like DAOs, Service Locators, Adaptors, MVC etc. This is something interesting and I have been dreaming for this for long long time.&lt;br /&gt;&lt;br /&gt;What I really wanted is little different approach.  The architect should do more than the design. Every chief architect of any company should bring a pattern oriented framework for their company. I doubt we can use the above mentioned java.net project or &lt;a href=&quot;https://x-rad.dev.java.net/&quot;&gt;x-rad&lt;/a&gt; . Because if we use a common framework for this kind of things it will often bring confusions by the garbage stuffs in there.  But you can use it as a reference and build your own model for your company. That will really help the &lt;a href=&quot;http://en.wikipedia.org/wiki/Rapid_application_development&quot;&gt;RAD&lt;/a&gt; approach.  How many times we have seen dev teams stuck in getting the basic things right ? Plenty. The main reason is that every engineer is reinventing the wheel all the time which would affect the team efficient heavily.&lt;br /&gt;&lt;br /&gt;Think about Ruby. It has gone to it&#39;s hype (Yes hype ! ) after the arrival of Rails. See Grails for how easy to do a project there. You will spend no time to get the basic setup done, your designs done etc.&lt;br /&gt;So you need a Grails like model for J2EE. You have a build.xml or maven to create the project. Create what  ever model you want.  I want a MVC setup with spring MVC, DAOs with hibernate, Mysql back end .. woof .. the build will do the rest. It will create the model with basic stuffs. So you only need to consider on your business domain, not the technical domain. Because you will have the reference implementations for your companies flavor already.&lt;br /&gt;&lt;br /&gt;Yes it is pretty hard for a service provider, every time you need to changes your technologies, designs, models etc etc. But thats what the industry is all about. Like the maven &lt;a href=&quot;http://www.ibiblio.org/&quot;&gt;ibiblio&lt;/a&gt;, have a framework &lt;a href=&quot;http://www.ibiblio.org/&quot;&gt;ibiblio repository&lt;/a&gt; And every time you have a model in place, just do the prototype work and commit to your framework &lt;a href=&quot;http://www.ibiblio.org/&quot;&gt;ibiblio repository&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So the need for the hour is an architect (framework architect or infrastructure architect) who should design the prototypes with every patters a company use and maintain a &lt;a href=&quot;http://www.ibiblio.org/&quot;&gt;ibibilio&lt;/a&gt; like repository in the company.&lt;br /&gt;&lt;br /&gt;RAD will be RRRRAD then I am sure !</description><link>http://hsenidians.blogspot.com/2007/11/pattern-oriented-frameworks-need-for.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-5637783891142265273</guid><pubDate>Wed, 14 Nov 2007 03:10:00 +0000</pubDate><atom:updated>2007-11-14T11:17:39.345+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Android</category><category domain="http://www.blogger.com/atom/ns#">google</category><title>Mixed reviews on Google&#39;s Android</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://code.google.com/android/images/logo_android.gif&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px;&quot; src=&quot;http://code.google.com/android/images/logo_android.gif&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://hsenidians.blogspot.com/2007/11/google-enters-into-mobile.html&quot;&gt;Recently Ruchith posted about Google phone&lt;/a&gt; and it&#39;s new SDK. Eventually the released happened and here is a little post on it.&lt;br /&gt;After the initial delightment of the announcement on &lt;a href=&quot;http://code.google.com/android/&quot;&gt;Android&lt;/a&gt; release, people seemed giving mixed reviews on it&#39;s Dalvik virtual machine. Impressed with the linux2.8 kernel , libraries and the application stack. But the eyebrows are raised when it comes to the runtime engine Dalvik.&lt;br /&gt;&lt;br /&gt;When I saw that the Dalvik&#39;s limited support to standard java ( Ok Sun java !) , suddenly GWT came to my mind where GWT supports core java like java.lang , still it is a different JRE and compiler. But it is understandable for GWT as end of the day you create java scripts out of it.&lt;br /&gt;&lt;br /&gt;But here Dalvik&#39;s attempts to become a standard for mobile devices. Of course we often have enough troubles and limitations with J2ME. So Google would want to have its own standard. But it will take a bit long while to be available and compatible in the market phones.&lt;br /&gt;&lt;br /&gt;But IPhone is yet to arrive in Asian market and Google is planning to release its own model, it won&#39;t be too long Android dominating the arena.&lt;br /&gt;&lt;br /&gt;And since Google&#39;s lack of intention to go along with Open JDK on this, I think slowly Google is moving to its own Google JDK. So be ready !!!&lt;br /&gt;&lt;br /&gt;Good articles found on &lt;a href=&quot;http://www.infoq.com/news/2007/11/android-java&quot;&gt;Info Q&lt;/a&gt; and &lt;a href=&quot;http://www.oreillynet.com/onjava/blog/2007/11/dalvik_googles_tweaked_nonstan.html&quot;&gt;oreillynet&lt;/a&gt; .</description><link>http://hsenidians.blogspot.com/2007/11/recently-ruchith-posted-about-google.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-2487060491073487979</guid><pubDate>Tue, 06 Nov 2007 10:58:00 +0000</pubDate><atom:updated>2008-11-19T04:56:36.953+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">google</category><category domain="http://www.blogger.com/atom/ns#">Java</category><category domain="http://www.blogger.com/atom/ns#">LINUX</category><category domain="http://www.blogger.com/atom/ns#">mobile application</category><category domain="http://www.blogger.com/atom/ns#">open source</category><title>Google enters into mobile</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU25zQdWkAPy_JHnmubPp8QRFKcAUBEtgSFzgUVgl-uMm_cw9lwjLXx9TPu7bVwVZR-WfAaGy8nno93nna9Yh3MCuw6-yXRUGfUHTc0-rYl8r_qQWaYaHOMvaHBMCABwk9yl9_vRO-Vjw/s1600-h/gphone.jpg&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU25zQdWkAPy_JHnmubPp8QRFKcAUBEtgSFzgUVgl-uMm_cw9lwjLXx9TPu7bVwVZR-WfAaGy8nno93nna9Yh3MCuw6-yXRUGfUHTc0-rYl8r_qQWaYaHOMvaHBMCABwk9yl9_vRO-Vjw/s200/gphone.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5129690064228476866&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Google takes a big step forward by moving into mobile and introducing Open Hanset Alliance(&lt;span style=&quot;font-weight: bold;&quot;&gt;OHA&lt;/span&gt;) which includes 34 powerful companies such as Qualcomm, Motorola, Samsung, T-Mobile, Sprint, Skype, LG, HTC, KDDI, DoCoMo and China Mobile,etc.  Goal of this alliance is to develop an &lt;span style=&quot;font-style: italic;&quot;&gt;open source operating system&lt;/span&gt; for mobile phones, in other words &quot;&lt;span style=&quot;font-weight: bold;&quot;&gt;an alternative to Symbian OS, Windows mobile and iPhone&lt;/span&gt;&quot;. (I&#39;m sure Apple will think about opening their OS and Symbian too).&lt;br /&gt;&lt;br /&gt;Google&#39;s mobile  OS will be called &lt;span style=&quot;font-size:130%;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Android&lt;/span&gt;&lt;/span&gt;&quot; (No &quot;Google&quot; word/logo attached at all .... how humble they are  ....  ) which is an open source OS built on &lt;span style=&quot;font-weight: bold;&quot;&gt;Linux&lt;/span&gt; &lt;span style=&quot;font-weight: bold;&quot;&gt;and Java&lt;/span&gt;.&lt;br /&gt;Since this mobile OS is available for free of charge for OEM vendors, this will be a major hit for proprietary mobile OS vendors.&lt;br /&gt;Further it will give more flexible environment for mobile application developers.&lt;br /&gt;And I&#39;m sure ......... this will lead to come up with some more mobile OS  distro like in linux desktop.&lt;br /&gt;&lt;br /&gt;Surprise ........... this &lt;span style=&quot;font-weight: bold;&quot;&gt;Android SDK&lt;/span&gt;  will be available from Nov 12th, and mobile  phones will be available from mid of 2008 [Not sure how fast it going to come here  ,  since it will be launched initially USA, Europe, Japan   and China ].&lt;br /&gt;&lt;br /&gt;I think this is a great news to mobile application development companies like us, it will eliminate some of the barrier currently we have because of the closeness of the mobile operating systems.&lt;br /&gt;&lt;br /&gt;Finally.........mobile application developers are getting more flexibility and more open environment.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Sources &lt;/span&gt;:&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;image from http://www.dailytechrag.com&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;info from &lt;a href=&quot;http://www.nytimes.com/2007/11/05/technology/05cnd-gphone.html?_r=3&amp;amp;ref=technology&amp;amp;oref=slogin&amp;amp;oref=slogin&amp;amp;oref=slogin&quot;&gt;here&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://hsenidians.blogspot.com/2007/11/google-enters-into-mobile.html</link><author>noreply@blogger.com (Ruchith)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU25zQdWkAPy_JHnmubPp8QRFKcAUBEtgSFzgUVgl-uMm_cw9lwjLXx9TPu7bVwVZR-WfAaGy8nno93nna9Yh3MCuw6-yXRUGfUHTc0-rYl8r_qQWaYaHOMvaHBMCABwk9yl9_vRO-Vjw/s72-c/gphone.jpg" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-7708348237783809994</guid><pubDate>Mon, 05 Nov 2007 01:44:00 +0000</pubDate><atom:updated>2007-11-05T09:45:04.335+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">commons-logging</category><category domain="http://www.blogger.com/atom/ns#">log4j</category><title>commons logging and log4j</title><description>Few weeks before there was a &lt;a href=&quot;http://www.nabble.com/Why-use-Commons-Logging--t4471789.html&quot;&gt;mail discussion &lt;/a&gt;on getting rid of commons-logging from ws projects and the answers from people were all +1 . I wanted to have a look but I couldn&#39;t manage better time to look it.&lt;br /&gt;&lt;br /&gt;Yesterday my friend Thayapavan was asking a related question on what&#39;s the different between &lt;a href=&quot;http://logging.apache.org/log4j/&quot;&gt;log4j&lt;/a&gt; and &lt;a href=&quot;http://commons.apache.org/logging/&quot;&gt;commons-logging&lt;/a&gt;. Interestingly it was asked by a an interviewer which is clear now that people start thinking on why we use these two jars just because they are there !&lt;br /&gt;&lt;br /&gt;First question is why we need commons logging? The idea of commons logging must have come from the concept that logging implementation is an integration feature, not a development feature. Developers use commons logging in their code without worrying of what the implementation is. It is the integration people to decide whether to use log4j, or jdk logger or any other proprietary ones.&lt;br /&gt;&lt;br /&gt;So I think it is a development choice. You would not like to tie log4j in to your source in case you want to change it in future (example jdk one) . But I think 8 out of 10 times people wouldn&#39;t do it. And people who have tasted writing the Appenders and the other fancies what log4j has (specially after log4j 1.2) wouldn&#39;t even think of it ! So if you are comfortable using it then go for it instead wrap it with commons-logging. Or want be too smart and depend on integrators to decide then go for commons-logging !</description><link>http://hsenidians.blogspot.com/2007/11/commons-logging-and-log4j.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-8340474157612299969</guid><pubDate>Sun, 23 Sep 2007 03:39:00 +0000</pubDate><atom:updated>2007-09-23T11:40:58.301+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">code review</category><category domain="http://www.blogger.com/atom/ns#">google</category><title>Google&#39;s code review</title><description>Just happened to find out on how Google is keen on the code review.  Very finite long process. It tells you the value they give to their code reviews. &quot;Review first before commit&quot; is something similar to &quot;Test first code&quot; model . The bottom line is , you got to pay attention to code review a lot thought you may not be using the &lt;a href=&quot;http://www.perforce.com/&quot;&gt;Perforce&lt;/a&gt; or any special tool.&lt;br /&gt;&lt;br /&gt;&lt;embed style=&quot;width:400px; height:326px;&quot; id=&quot;VideoPlayback&quot; type=&quot;application/x-shockwave-flash&quot; src=&quot;http://video.google.com/googleplayer.swf?docId=-8502904076440714866&amp;hl=en&quot; flashvars=&quot;&quot;&gt; &lt;/embed&gt;</description><link>http://hsenidians.blogspot.com/2007/09/googles-code-review.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-7837635511995533789</guid><pubDate>Fri, 21 Sep 2007 02:55:00 +0000</pubDate><atom:updated>2007-09-21T10:55:47.837+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">mvc</category><category domain="http://www.blogger.com/atom/ns#">process</category><title>Robert Hanson on my million dollar Q</title><description>&lt;a href=&quot;http://roberthanson.blogspot.com/2007/09/tail-chasing.html&quot;&gt;Robert Hanson writes about the million dollar question&lt;/a&gt; I have been asking to myself for long time. Whats the standard practice to learn/adapt new technologies. It is good to learn new technologies. But there are toooooo many new THINGS ! . Like he mentions on MVC, how many MVC I have gone through last year or so ? From simple JSP to Struts, JSF , spring MVC and take GWT if you wish. Sure, I learned these THINGS and that helped me to improve my skills. Every models have their own pros and cons. But will this be effective ? Can we make full use of these technologies if do continue like this ? It is true that these things are evolving and there is always a superior THING on the corner. But my questions is (Or rather lots of people&#39;s Q is), when should we do this ?&lt;br /&gt;&lt;br /&gt;I think it is the question of how the existing technology meet our expectations and how good the new technology would help to improve our solutions. I think our temptation to learn new technology (Or on our thrill on use new technologies) often beats and we skip to answer those questions and just do it.&lt;br /&gt;&lt;br /&gt;Any comments ?</description><link>http://hsenidians.blogspot.com/2007/09/robert-hanson-on-my-million-dollar-q.html</link><author>noreply@blogger.com (JK)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-4572392443491300024</guid><pubDate>Wed, 19 Sep 2007 03:35:00 +0000</pubDate><atom:updated>2007-09-19T11:36:02.371+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">domain driven design</category><title>Eric Evans&#39; interview on InfoQ</title><description>Eric Evans talks on domain driven design in this  &lt;a href=&quot;http://www.infoq.com/interviews/domain-driven-design-eric-evans&quot;&gt;interview&lt;/a&gt;. he is briefing on the basics of DDD and particularly on how you should focus on the domain targeted design and not on any underlying technologies. I think it is a common mistake that when we do the domain driven design we tempt to have a particular technology in the back of the mind, which will always disturb our focus.&lt;br /&gt;&lt;br /&gt;He talks about the ubiquitous languages which have been used in such designs. The concern I have is, who is the right person to do such domain driven design. Is he the domain driven architect , project leader, tech lead or the pre sales person? And at which point this phase will fall in the process cycle? because we often have the communication gap on the domain driven design when it comes to the development life cycle. So we need to make sure the model and the ubiquitous language are properly conveyed through out the software life cycle.&lt;br /&gt;&lt;br /&gt;Another important aspect I found is about on which areas of domain you have to model. Evans says, you should not model everything in the domain. It is very important to isolate the models and only focus on the complicated areas. Obviously overuse of DDD will probably affect the design as well as the business value.&lt;br /&gt;&lt;br /&gt;Want to find more .. visit &lt;a href=&quot;http://domaindrivendesign.org/&quot;&gt;this interesting site&lt;/a&gt; on DDD</description><link>http://hsenidians.blogspot.com/2007/09/eric-evans-interview-on-infoq.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-4686285710128448474</guid><pubDate>Thu, 13 Sep 2007 00:09:00 +0000</pubDate><atom:updated>2007-09-13T08:10:35.750+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">apache CXF</category><category domain="http://www.blogger.com/atom/ns#">spring</category><category domain="http://www.blogger.com/atom/ns#">web services</category><title>Spring web services</title><description>&lt;span class=&quot;greenBlurb&quot;&gt;Arjen Poutsma, project lead for the Spring Web Services framework, talks about the contract first approach &lt;a href=&quot;http://www.ddj.com/web-development/201802027&quot;&gt;in this interview&lt;/a&gt; , which we have discussed in my last post.  Spring web services released very recently and &lt;a href=&quot;http://www.springframework.org/node/507&quot;&gt;looks impressive&lt;/a&gt;. I think it doesn&#39;t offer any client side support. Also we need to wait and see on &lt;a href=&quot;http://incubator.apache.org/cxf/&quot;&gt;Apache CXF&lt;/a&gt; &#39;s response on this. &lt;a href=&quot;http://incubator.apache.org/cxf/&quot;&gt;Apache CXF&lt;/a&gt; is considered to be a good model to use with spring.&lt;br /&gt;&lt;/span&gt;</description><link>http://hsenidians.blogspot.com/2007/09/spring-web-services.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-6007225200753149253</guid><pubDate>Mon, 10 Sep 2007 15:31:00 +0000</pubDate><atom:updated>2007-09-10T23:31:40.395+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">REST</category><category domain="http://www.blogger.com/atom/ns#">SOA</category><category domain="http://www.blogger.com/atom/ns#">web services</category><title>Interview on SOA and Web services</title><description>WS-* vs REST arguments are getting very popular these days. Knowing WS-* for some extent and read through the REST concept a bit, I don&#39;t understand the real fuss behind these arguments at all. Since all the big industrial giants are competing on this each other, I don&#39;t want to dig my little head in to it. But I just wanted to clarify something to myself. So this post is just to make my self clear on these technologies. I think by asking my own questions to me, I will be able find some answers or at least my friends will jump in to me and explain it. Let me try to make this post more interesting. I would like to invite Lasantha (The busy journalist in Sri Lanka) to interview me on this !!! &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha : Hi JK, would you spend some time on a interview with me.&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : Me ? With you, oh no, you are a very dangerous guy !&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha : That&#39;s all past JK, Now I moved in to interview about these more safer WS vs REST arguments !&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : Oh god, You will find it more difficult than your political interviews man. Anyway go ahead.&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha : People are arguing on WS-* vs REST , SOA vs ROA etc etc. What&#39;s your opinion on this.&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : First of all Lasantha, I do not belong SOA republican party or ROA conservative party. I am non-aligned guy or rather I know neither of these technologies very much. &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha : Thats ok, what do you think about the SOA and ROA?&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : Well, SOA is an attempt to approach a design on a service oriented way. You define the services independently first and then provide a way to the designer on how these services can talk each other. Basically it is an evolution of traditional modular programming. But different is , you embed the service call inside the codes in the traditional distributed programming, where in SOA you treat them as services and provide the meta data about a service to another service instead calling it from source code.&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha :  What&#39;s the point doing it ?&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : There is a point. First of all you see a business driven design (Is it a new term or an obvious one ? ). Designers will start looking the system in a services oriented way. So reusability will become easy and sensible I suppose. Atomic level of modularity becomes larger and the a service it self will become an application you can see.&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha : Yes I see a point.&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : There is another important point as well. Remember I told you, a service will offer a meta data of it, where another service can use the meta data to know how to talk with that service. So just think like if that meta data becomes a standard one then every body will start using it. The so called interoperability will become easy then.&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha : Isn&#39;t it the CORBA or DCOM trying to archive ?&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : You started asking your political questions now. Well I didn&#39;t tell you that CORBA is different from SOA. You see, SOA is a concept. CORBA or DCOM or web services are technologies which can be used to implement a SOA application.&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha : So SOA is not web service then ?&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : Correct, no way both can be same. In your terms, SOA is like communism and web service is like Marxism . But you know there are Leninism or Maoism where all these are trying to archive communism in different ways. &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha : oh Ok .. So SOA is more of a methodology while web service is a kind of representation or rather implementation right ?&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : Yes great.&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha :  Then why people confuse on web service and SOA are same.&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : It is like how REST people forgot about the origin of REST. REST was there even before, but now only it becomes a buzz word. Like wise the SOA concept is there even before these CORBA and DCOM came, but now only it shapes up well with web services. And full credit to the companies who successfully faltered people for make them believing SOA and web service are same !&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha :  That means web service is not the sole representation of SOA ?&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : It cannot be sole ... but it is the best option available for now. Something like &#39;Dravid is the best currently available option for Indian captaincy !, but of course not the best &#39;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha :  Why do you think so ?&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : Because Ganguly has just come back in ! Just kidding. Ok get back to the point. This is one thing I am also looking for. I think web services adopt SOA really well. Probably when web service was introduced there must be a good understanding on SOA. So web services concept or rather specs might have developed with SOA in mind. &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha : Can you describe more please ...&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : The key success for the SOA is on how you define the contract. That is very important since here machines talks each other without any manual intervention. The contract specified in web services is more clear , understandable which is in XML. More over CORBA is a an object oriented model. The client server coupling is very tight opposed to the web service&#39;s loose coupling. The wire protocol is SOAP which is much easier to work with than the binary format in CORBA. And I see CORBA as an underlying technology as it doesn&#39;t address the SOA approach in a broad way. But web service is giving is a big picture and it is very easy to design a SOA flavored application using web service than the CORBA. I think these days these kind arguments are not raising much after WS-I drops the RPC concept in web services. &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha : Why is that ... RPC is a good model though.&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : Thats the thing. You need to come out from the object oriented model which CORBA posts. SOA is more to do with services not operations. Traditional web services used to create the web service methods and functions at the source code level and the transform them is WSDL. For example you write method called foo in a class and create the WSDL from that java class.&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;Lasantha :  What&#39;s wrong with it ?&lt;/span&gt;  &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : Every thing is wrong. You have to focus on the contract first, Otherwise you will often change your contract when ever you change the server classes. The RPC feature in WS had this impact. People often looked at the RPC web service as a replacement of CORBA. And they forgot to think about the “service” orientation there. Otherwise you would fall in to the reverse engineering I suppose. &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;Lasantha : So you think the contract first is very important ?&lt;/span&gt;  &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : I think thats entry point for SOA. It&#39;s like you have to design first without worrying about the underlying implementation. And when it comes to interoperability, it is even more important. You have to define the contract of your service properly. You got to implement the WSDL. This is all about messaging and services not operations.&lt;/p&gt;&lt;br /&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : Beside that web services adopts the www very well as how it&#39;s name suggests. I think thats where it stands tall. Its focus on security and trust like features go beyond what http provides. It tries to standardize these features very well. For example, you can sign a SOAP message and send in a much secure way than what standard HTTP promises. Most of the times http can be safe enough but there are situations when you need more that what http addresses.&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in; color: rgb(102, 0, 204);&quot;&gt;Lasantha : I think, we need to discuss this in details and should bring ROA or rather REST in this conversation. We will continue soon&lt;br /&gt;&lt;/p&gt;  &lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;JK : Yes true. It would be better if we continue this with REST later. See u then bye.&lt;br /&gt;&lt;/p&gt;</description><link>http://hsenidians.blogspot.com/2007/09/interview-on-soa-and-web-services.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-6204166505629085767</guid><pubDate>Fri, 07 Sep 2007 09:48:00 +0000</pubDate><atom:updated>2007-09-07T17:52:44.261+08:00</atom:updated><title>My blog on Spring</title><description>I set me a challenge to explain Spring J2EE framework to my 5 years old nephew and ended up messing everything. But still I blog this to open up a discussion on frameworks and Spring. &lt;br /&gt;Some of real life metaphors can be confusing or argued other way. But I just tried to use it.&lt;br /&gt;&lt;br /&gt;Your comments are welcome.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://jk-blogging.blogspot.com/2007/09/spring-and-my-nephew.html&quot;&gt;Click here &lt;/a&gt;to read and discuss it.</description><link>http://hsenidians.blogspot.com/2007/09/my-blog-on-spring.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-1191240627544905239</guid><pubDate>Tue, 28 Aug 2007 08:35:00 +0000</pubDate><atom:updated>2008-11-19T04:56:37.249+08:00</atom:updated><title></title><description>&lt;h1&gt;&lt;span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;TIOBE Programming Community Index for August 2007...&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;Seems Java is still leading.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://1.bp.blogspot.com/_AJ8A7UU74dU/RtPfBZlymlI/AAAAAAAAASE/AP8YvE0XkiU/s1600-h/languages_aug_2007.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;http://1.bp.blogspot.com/_AJ8A7UU74dU/RtPfBZlymlI/AAAAAAAAASE/AP8YvE0XkiU/s400/languages_aug_2007.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5103668017883159122&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Source :  &lt;a style=&quot;color: rgb(0, 0, 0);&quot; class=&quot;moz-txt-link-freetext&quot; href=&quot;http://www.tiobe.com/tpci.htm&quot;&gt;http://www.tiobe.com&lt;/a&gt;</description><link>http://hsenidians.blogspot.com/2007/08/tiobe-programming-community-index-for.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_AJ8A7UU74dU/RtPfBZlymlI/AAAAAAAAASE/AP8YvE0XkiU/s72-c/languages_aug_2007.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-890592771049799076</guid><pubDate>Thu, 09 Aug 2007 12:32:00 +0000</pubDate><atom:updated>2007-08-09T20:33:27.470+08:00</atom:updated><title>Web apps scalability</title><description>Along with web 2.0, web traffic is getting increased day by day. Individual users as well as enterprises are getting into the the web eyeing on the SAAS type of application and moving away form the desktop apps.&lt;br /&gt;The amount of traffic generated by these apps are tremendous, Just to name few&lt;br /&gt;&lt;ul&gt;&lt;li&gt; Over 100 million video downloads per day from &lt;a href=&quot;http://www.youtube.com/&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;YouTube&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;More than 4 billion queries per day on &lt;a href=&quot;http://www.flickr.com/&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;FlickR&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Do I need to mention &lt;a href=&quot;http://www.google.com/&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Google&lt;/span&gt;&lt;/a&gt;, .........&lt;/li&gt;&lt;/ul&gt;How these apps handle the traffic, whats the architecture behind, what are the technologies empower them ..... are some of the questions come to our mind,&lt;br /&gt;&lt;br /&gt;I came across a good &lt;a href=&quot;http://highscalability.com/&quot;&gt;web site&lt;/a&gt; with some of the very good informations about these apps, answering above questions. It talks about how much scalable they are , and how it has been achieved and the technologies are being used.&lt;br /&gt;&lt;br /&gt;Google Architecture info - &lt;a href=&quot;http://highscalability.com/google-architecture&quot;&gt;here &lt;/a&gt;&lt;br /&gt;YouTube Architecture - &lt;a href=&quot;http://highscalability.com/youtube-architecture&quot;&gt;here&lt;/a&gt;&lt;br /&gt;FlickR Architecture - &lt;a href=&quot;http://highscalability.com/flickr-architecture&quot;&gt;here&lt;/a&gt;</description><link>http://hsenidians.blogspot.com/2007/08/web-apps-scalability.html</link><author>noreply@blogger.com (Ruchith)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-2883847883172038673</guid><pubDate>Sat, 21 Jul 2007 15:31:00 +0000</pubDate><atom:updated>2007-07-22T00:22:11.259+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">subversion</category><category domain="http://www.blogger.com/atom/ns#">svk</category><category domain="http://www.blogger.com/atom/ns#">svn</category><category domain="http://www.blogger.com/atom/ns#">version control</category><title>Using SVK for offline access to subversion</title><description>&lt;a href=&quot;http://svk.bestpractical.com/&quot;&gt;SVK&lt;/a&gt; is a distributed version control system. Since I&#39;ve been working through a dial up connection to the internet, I was looking for a way to have offline access to source control. That way I will be able to view logs, diffs and even commit changes while offline. I&#39;ve only used SVK for a small time, but it looks ideal for this task.&lt;br /&gt;&lt;br /&gt;SVK commands mirror subversion commands so it&#39;s very easy to use if you are familiar with subversion. It has better support for branching and merging and doesn&#39;t keep any extra files inside your working copy (like CVS or .svn directories). SVK is built on top of the subversion and is written in Perl.&lt;br /&gt;&lt;br /&gt;I particularly like being able to filter logs and edit the files being checked in while editing the log message:&lt;code&gt;  svk log --filter &#39;HEAD 15 | grep employer&#39;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The easiest way to install SVK is to use your distribution&#39;s package manager. In Fedora, I could just use &lt;code&gt;yum install perl-SVK&lt;/code&gt; (you need to have the Fedora extra repositories configured). This downloaded about 3MB of rpms so was quite ok on a dialup connection. For alternative methods look in the &lt;a href=&quot;http://svkbook.elixus.org/&quot;&gt;SVK book&lt;/a&gt; or &lt;a href=&quot;http://svk.elixus.org/?InstallingSVK&quot;&gt;Installing SVK&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Once you have SVK installed, initialize your local repository (depot) with&lt;br /&gt;&lt;code&gt;&lt;br /&gt;svk depotmap --init&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Initialise and sync a mirror for the remote repository with:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;svk mirror https://orangehrm.svn.sourceforge.net/svnroot/orangehrm/trunk //orangehrm/trunk&lt;br /&gt;svk sync //orangehrm/trunk&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;The sync command can take a while to complete, but you can interrupt in the middle and the next time you run it, it will start from where you stopped earlier.&lt;br /&gt;&lt;br /&gt;Here &lt;code&gt;//orangehrm/trunk&lt;/code&gt; is the mirror of the remote repository. While we can checkout &lt;code&gt;//orangehrm/trunk&lt;/code&gt; and work on it, any commit will propagate to the remote server. That will not do if we are offline.&lt;br /&gt;&lt;br /&gt;So we create a local branch.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;svk copy //orangehrm/trunk //local/orangehrm&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Now we can checkout the branch.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;svk co //local/orangehrm&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;This will create a orangehrm directory and you can do all your work here. Check-ins go to the local branch so you don&#39;t need network access.&lt;br /&gt;&lt;br /&gt;When you are online again, sync the mirror again, merge the changes to the local branch and update your working copy.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;svk sync //orangehrm/trunk&lt;br /&gt;svk smerge -Il //orangehrm/trunk //local/orangehrm&lt;br /&gt;svk update (from your working copy)&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;You can also use &lt;code&gt;svk pull&lt;/code&gt; instead of the last 3 commands. I prefer doing it this way because I can use the &lt;code&gt;-Il&lt;/code&gt; options which apply each change from the remote server individually and uses the original log messages as commit messages.&lt;br /&gt;&lt;br /&gt;Now if you have any changes in your working copy, check them in to the local branch.&lt;br /&gt;&lt;br /&gt;Push the local changes to the remote server (first doing a dry run to check for conflicts):&lt;br /&gt;&lt;code&gt;&lt;br /&gt;svk smerge -C //local/orangehrm //oranghrm/trunk&lt;br /&gt;svk smerge -Il //local/orangehrm //orangehrm/trunk&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Again I prefer using &lt;code&gt;-Il&lt;/code&gt; to get one commit to the remote server per one local commit but you can also have one single commit containing all the local changes. Using a single commit is faster and you may prefer it if using a slow connection to the internet. You might prefer the &lt;code&gt;svk push&lt;/code&gt; command, which does the above two steps in one go.&lt;br /&gt;&lt;br /&gt;SVK also supports mirroring CVS, Perforce and some other repositories.&lt;br /&gt;I recommend you go through these &lt;a href=&quot;http://www.bieberlabs.com/wordpress/archives/2004/11/30/using-svk&quot;&gt;tutorials&lt;/a&gt; and glance through the &lt;a href=&quot;http://svkbook.elixus.org/&quot;&gt;SVK book&lt;/a&gt; before using it.</description><link>http://hsenidians.blogspot.com/2007/07/using-svk-for-offline-access-to.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-3224117446428050152</guid><pubDate>Sat, 14 Jul 2007 05:33:00 +0000</pubDate><atom:updated>2007-07-16T10:24:40.090+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">JMX</category><category domain="http://www.blogger.com/atom/ns#">spring</category><title>Reloading the spring context dynamically</title><description>For those who have used &lt;a href=&quot;http://www.springframework.org/&quot;&gt;spring framework&lt;/a&gt; as a standalone application, might encountered a difficulty in reloading the application context. It is easier for its web application context but not for the standalone.&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;What are the limitations in standalone spring server for reloading the context?&lt;/span&gt;&lt;br /&gt;1) You do not have an built in API for doing it.&lt;br /&gt;2) Since this is standalone, you need a RMI like stub to talk with the standalone application context.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;So what are the solutions we have for dynamically reload the context.&lt;/span&gt;&lt;br /&gt;1) You can frequently reload the context (Using trigger or quartz scheduler whatever), But this is not good since you may only need to reload on demand most of the times.&lt;br /&gt;2) Then of course you have to implement a RMI based client to tell the server to reload it&#39;s context.&lt;br /&gt;&lt;br /&gt;Since the item 1 is more straight forward, we will discuss the solution 2 today.&lt;br /&gt;&lt;br /&gt;The easiest way to reload the context remotely on demand is &lt;a href=&quot;http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/&quot;&gt;JMX.&lt;/a&gt; The flexibility and simplicity of using JMX in spring make this very simple.&lt;br /&gt;The idea is the, you have the &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/guide/management/mxbeans.html&quot;&gt;platform mbean server&lt;/a&gt; for jdk1.5 , so you can simply export a bean as MBean. So it is just a matter of having a MonitorMBean for reloading the context and call that bean for reloading the server context.&lt;br /&gt;&lt;br /&gt;This is my Monitor MBean interface&lt;br /&gt;&lt;br /&gt;&lt;blockquote style=&quot;color: rgb(51, 102, 255);&quot;&gt;public interface MonitorMBean extends Serializable {&lt;br /&gt;   String reload();&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;This is the implementation for the interface&lt;br /&gt;&lt;br /&gt;&lt;blockquote style=&quot;color: rgb(51, 102, 255);&quot;&gt;public class MonitorMBeanImpl implements MonitorMBean {&lt;br /&gt;&lt;br /&gt;  /**&lt;br /&gt;  * The MBean implementation for reloading method&lt;br /&gt;  *&lt;br /&gt;  * */&lt;br /&gt;  public String reload() {&lt;br /&gt;      //StandaloneSever is the class whic has the spring application context&lt;br /&gt;      StandaloneServer.reload();&lt;br /&gt;      return &quot;Successfully reloaded the etl context&quot;;&lt;br /&gt;  }&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;Here come my context.xml for the server (I explain bean by bean, the complete source code is attached anyway)&lt;br /&gt;&lt;br /&gt;First we will have the mbean server&lt;br /&gt;&lt;blockquote style=&quot;color: rgb(51, 0, 0);&quot;&gt;&lt;p&gt;&amp;lt;!-- Starting mbean server --&amp;gt;&lt;br /&gt; &amp;lt;bean id=&quot;mbeanServer&quot; class=&quot;java.lang.management.ManagementFactory&quot; factory-method=&quot;getPlatformMBeanServer&quot;/&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;We have a POJO based bean called monitorBeanLocal.&lt;br /&gt;&lt;blockquote style=&quot;color: rgb(51, 0, 0);&quot;&gt;&lt;p&gt;&amp;lt;!-- monitor jmx mbean for the standalone server --&amp;gt;&lt;br /&gt; &amp;lt;bean id=&quot;monitorBeanLocal&quot; class=&quot;hsenidmobile.control.impl.MonitorMBeanImpl&quot; depends-on=&quot;mbeanServer&quot;/&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;Now we expose our POJO to be a MBean&lt;br /&gt;&lt;br /&gt;&lt;blockquote style=&quot;color: rgb(51, 0, 0);&quot;&gt;&lt;p&gt;    &amp;lt;!--Expose out monitor bean as jmx managed bean--&amp;gt;&lt;br /&gt; &amp;lt;bean id=&quot;monitorMBean&quot; class=&quot;org.springframework.jmx.export.MBeanExporter&quot;&amp;gt;&lt;br /&gt;     &amp;lt;property name=&quot;beans&quot;&amp;gt;&lt;br /&gt;         &amp;lt;map&amp;gt;&lt;br /&gt;             &amp;lt;entry key=&quot;bean:name=monitorBean&quot; value-ref=&quot;monitorBeanLocal&quot;/&amp;gt;&lt;br /&gt;         &amp;lt;/map&amp;gt;&lt;br /&gt;     &amp;lt;/property&amp;gt;&lt;br /&gt;     &amp;lt;property name=&quot;server&quot; ref=&quot;mbeanServer&quot;/&amp;gt;&lt;br /&gt; &amp;lt;/bean&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;Now lets have a RMI server connector&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 0, 0);&quot;&gt;&lt;blockquote&gt;&lt;p&gt;        &amp;lt;bean id=&quot;registry&quot; class=&quot;org.springframework.remoting.rmi.RmiRegistryFactoryBean&quot;&amp;gt;&lt;br /&gt;     &amp;lt;property name=&quot;port&quot; value=&quot;1098&quot;/&amp;gt;&lt;br /&gt; &amp;lt;/bean&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/span&gt;Of course we need the RMI registry also.&lt;br /&gt;&lt;blockquote style=&quot;color: rgb(51, 0, 0);&quot;&gt;&lt;p&gt;&amp;lt;bean id=&quot;serverConnector&quot; class=&quot;org.springframework.jmx.support.ConnectorServerFactoryBean&quot; depends-on=&quot;registry&quot;&amp;gt;&lt;br /&gt;     &amp;lt;property name=&quot;objectName&quot; value=&quot;connector:name=rmi&quot;/&amp;gt;&lt;br /&gt;     &amp;lt;property name=&quot;serviceUrl&quot;&lt;br /&gt;               value=&quot;service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.01:1098/server&quot;/&amp;gt;&lt;br /&gt;     &amp;lt;property name=&quot;environment&quot;&amp;gt;&lt;br /&gt;         &amp;lt;props&amp;gt;&lt;br /&gt;             &amp;lt;prop key=&quot;jmx.remote.jndi.rebind&quot;&amp;gt;true&amp;lt;/prop&amp;gt;&lt;br /&gt;         &amp;lt;/props&amp;gt;&lt;br /&gt;     &amp;lt;/property&amp;gt;&lt;br /&gt; &amp;lt;/bean&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;Thats all about the JMX part. But for our testing purpose I have a bean called WhoAmI&lt;br /&gt;&lt;blockquote style=&quot;color: rgb(51, 0, 0);&quot;&gt;&lt;p&gt;&amp;lt;!-- Sample bean to see how this is reloaded --&amp;gt;&lt;br /&gt; &amp;lt;bean id=&quot;whoAmI&quot; class=&quot;hsenidmobile.control.domain.WhoAmI&quot;&amp;gt;&lt;br /&gt;     &amp;lt;property name=&quot;myName&quot; value=&quot;JK&quot;/&amp;gt;&lt;br /&gt; &amp;lt;/bean&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;This bean is just a simple java bean additionally having a print method.&lt;br /&gt;&lt;blockquote style=&quot;color: rgb(51, 51, 255);&quot;&gt;public class WhoAmI {&lt;br /&gt;  private String myName;&lt;br /&gt;&lt;br /&gt;  public void setMyName(String myName) {&lt;br /&gt;      this.myName = myName;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public void printMyName(){&lt;br /&gt;      System.out.println(&quot;My Name is now &quot; + myName);&lt;br /&gt;  }&lt;br /&gt;}&lt;/blockquote&gt;Cool, now lets go through our main server class.&lt;br /&gt;&lt;br /&gt;&lt;blockquote style=&quot;color: rgb(51, 51, 255);&quot;&gt;public class StandaloneServer {&lt;br /&gt;  private static AbstractApplicationContext context;&lt;br /&gt;&lt;br /&gt;  public static void main(String[] args) {&lt;br /&gt;      if (args.length &lt;&gt;&quot;);&lt;br /&gt;      return;&lt;br /&gt;      } &lt;br /&gt;      String contextXml = args[0];&lt;br /&gt;      context = new FileSystemXmlApplicationContext(new String[]{contextXml},     true);&lt;br /&gt;      context.registerShutdownHook();//This will be useful incase if you want     control the grace shutdown.&lt;br /&gt;&lt;br /&gt;      printMyName();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Method for reloading the context&lt;br /&gt;* */&lt;br /&gt;public static void reload() {&lt;br /&gt;  if (context == null) {&lt;br /&gt;  throw new RuntimeException(&quot;Context is not available&quot;);&lt;br /&gt;  }&lt;br /&gt;  System.out.println(&quot;Reloading the context&quot;);&lt;br /&gt;  context.refresh();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;*Test method for context reloading&lt;br /&gt;* */&lt;br /&gt;private static void printMyName() {&lt;br /&gt;    new Thread() {&lt;br /&gt;          public void run() {&lt;br /&gt;              while(true){&lt;br /&gt;                  ((WhoAmI) context.getBean(&quot;whoAmI&quot;)).printMyName();&lt;br /&gt;                  try {&lt;br /&gt;                      Thread.sleep(1000);&lt;br /&gt;                  } catch (InterruptedException e) {&lt;br /&gt;                      //do nothing&lt;br /&gt;                  }&lt;br /&gt;              }&lt;br /&gt;          }&lt;br /&gt;      }.start();&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;/blockquote&gt;So we simply start the spring application there. Of course you can also see the simple method reload which is called by our monitor bean. The only different you would have noticed it, I use AbstractApplicationContext instead of ApplicationContext since it has the additional methods for our requirements.&lt;br /&gt;&lt;br /&gt;Right we are done, Oh yes  we need to test this, So how should we do. I give you a simple JMX client class to test this.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;public class AdminClient {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;    public static void main(String[] args) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        String mbeanName = &quot;bean:name=monitorBean&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        MonitorMBean monitorMBean;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        String serviceUrl =     &quot;service:jmx:rmi://localhost/jndi/rmi://localhost:1098/server&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        try {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;            monitorMBean = createMbeanStub(mbeanName, serviceUrl);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;            monitorMBean.reload();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        } catch (IOException e) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;            System.out.println(&quot;IO Error occured while relading &quot; + e); // Should  use logger instead&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        } catch (MalformedObjectNameException e) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;            System.out.println(&quot;Malformed error &quot; + e); // Should  use logger instead&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;            System.out.println(&quot;The application context is reloaded successfully.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        }&lt;br /&gt;  }&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt; private static MonitorMBean createMbeanStub(String mbeanName, String serviceUrl) throws MalformedObjectNameException,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;            IOException {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        ObjectName mbeanObjectName = new ObjectName(mbeanName);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        MBeanServerConnection serverConnection = connect(serviceUrl);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        MonitorMBean monitorMBean;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt; monitorMBean = (MonitorMBean)MBeanServerInvocationHandler.newProxyInstance(serverConnection, mbeanObjectName,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        MonitorMBean.class, false);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        return monitorMBean;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        private static MBeanServerConnection connect(String serviceUrl) throws         IOException {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        JMXServiceURL url = new JMXServiceURL(serviceUrl);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        JMXConnector jmxc = JMXConnectorFactory.connect(url, null);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        return jmxc.getMBeanServerConnection();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;        }&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;So here what we do is, we just invoke the monitor mbean&#39;s reload method to refresh the context.&lt;br /&gt;Then So first you run the standalone&lt;br /&gt;&lt;blockquote style=&quot;color: rgb(51, 51, 0);&quot;&gt;java hsenidmobile.control.StandaloneServer &lt;server.xml-path&gt;&lt;/server.xml-path&gt;&lt;/blockquote&gt;You can see the output&lt;br /&gt;&lt;blockquote&gt;&lt;span style=&quot;color: rgb(102, 102, 0);&quot;&gt;My Name is now JK&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 102, 0);&quot;&gt;My Name is now JK&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 102, 0);&quot;&gt;My Name is now JK&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;Now you go and change the server.xml. Edit the whoAmI bean&#39;s name parameter from JK to CK. Then run our JMX client&lt;br /&gt;&lt;br /&gt;&lt;blockquote style=&quot;color: rgb(102, 102, 0);&quot;&gt;java hsenidmobile.control.AdminClient&lt;/blockquote&gt;Now you can find the messages in the server console regarding to the reloading of the context. And also not the output message is changed to this&lt;br /&gt;&lt;br /&gt;&lt;blockquote style=&quot;color: rgb(102, 102, 0);&quot;&gt;My Name is now CK&lt;br /&gt;My Name is now CK&lt;br /&gt;My Name is now CK&lt;/blockquote&gt;Cooool. Its simple as this.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;So what we have done so far?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1) We are able to reload the spring standalone context remotely on demand. This enable us to change the server properties without restarting the server.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;What we can do more?&lt;/span&gt;&lt;br /&gt;1) If we have the properties in a database, or if you are willing to persist the properties in a file on the fly, then you can reload the context remotely by giving the arguments. You don&#39;t need to go and modify the server xml. (Thanks to JMX)&lt;br /&gt;&lt;br /&gt;2) You have to be carefull about the singleton beans, since these beans will be destroyed and recreated for every reloading. So you may need to do the pre arrangement in the server before do the actual relaoding. But you will not need to worry about the non singleton beans. (There can be exceptional cases anyway).&lt;br /&gt;&lt;br /&gt;3) You have to apply the AOP if possible. How about notifying the client application on reloading? You can do using spring AOP. I may put another blog on AOP soon. So stay tuned.&lt;br /&gt;&lt;br /&gt;Ok we are done for today. Please find the attached codes for your reference.&lt;br /&gt;&lt;br /&gt;BTW I used&lt;br /&gt;jdk 1.5.0_11-b03 and&lt;br /&gt;spring2.0.&lt;br /&gt;The only dependencies are spring-2.0.jar and commons-logging-1.1.jar.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://people.apache.org/%7Ejkumaran/downloads/jmx-sample-byJK.zip&quot;&gt;Click here to get the source codes for this sample.&lt;/a&gt;</description><link>http://hsenidians.blogspot.com/2007/07/reloading-spring-context-dynamically.html</link><author>noreply@blogger.com (JK)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-7841470708121843642</guid><pubDate>Wed, 27 Jun 2007 04:14:00 +0000</pubDate><atom:updated>2007-06-27T12:27:41.359+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">hsenid</category><category domain="http://www.blogger.com/atom/ns#">mysql</category><title>hsenid becomes mysql enterprise gold partner</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://solutions.mysql.com/solutions/partner.php?partner=1625&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px;&quot; src=&quot;http://solutions.mysql.com/common/logos/mysql_100x52-64.gif&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Nice to see &lt;a href=&quot;http://solutions.mysql.com/solutions/partner.php?partner=1625&quot;&gt;hsenid becomes mysql enterprise gold partner&lt;/a&gt;. I feel we should have become this mush earlier than now since we have been using mysql heavily in our applications for long time. I think we have a good bunch of people in both our development and support teams who have experience in mysql.&lt;br /&gt;I hope this move will give extra boost on our engineers and they will focus more and more on mysql expertises further.</description><link>http://hsenidians.blogspot.com/2007/06/hsenid-becoms-mysql-enterprise-gold.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4844845394374641519.post-8129124516463426791</guid><pubDate>Sun, 24 Jun 2007 03:25:00 +0000</pubDate><atom:updated>2007-06-24T11:32:54.476+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fedora</category><category domain="http://www.blogger.com/atom/ns#">LINUX</category><category domain="http://www.blogger.com/atom/ns#">m1</category><category domain="http://www.blogger.com/atom/ns#">vodafone 3g</category><title>Eureka !!! Connecting to m1 3g vodafone modem in fedora7</title><description>Finally I managed to get my m1 3gsm modem working with my vaio fedora 7. This is the procedure I used for got it working.&lt;br /&gt;My system is: Linux 2.6.21-1.3194.fc7 (fedora 7)&lt;br /&gt;Wvdial version : WvDial 1.54.0&lt;br /&gt;&lt;br /&gt;1) Create the following wvdial.conf&lt;br /&gt;&lt;blockquote&gt;[Dialer Defaults]&lt;br /&gt;Phone = *99#&lt;br /&gt;Username = ppp@aplus.at&lt;br /&gt;Password = ppp&lt;br /&gt;Stupid Mode = 1&lt;br /&gt;Dial Command = ATDT&lt;br /&gt;&lt;br /&gt;[Dialer pin]&lt;br /&gt;&lt;br /&gt;Init2 = AT+CPIN=5623&lt;br /&gt;&lt;br /&gt;[Dialer A1]&lt;br /&gt;Modem = /dev/ttyUSB0&lt;br /&gt;Baud = 460800&lt;br /&gt;Init3 = at+cgdcont=1,&quot;ip&quot;,&quot;sunsurf&quot;&lt;br /&gt;ISDN = 0&lt;br /&gt;Modem Type = Analog Modem&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;2) Then connect your vodafone mobile usb modem. (HUAWEI)&lt;br /&gt;3) Wait till it is detected properly. (You can see logs from /var/log/messages)&lt;br /&gt;4) Try to connect using wvdial.&lt;br /&gt;&lt;blockquote&gt; wvdial --config wvdial.conf A1&lt;/blockquote&gt;&lt;br /&gt;For me it fails always like this&lt;br /&gt;&lt;blockquote&gt;--&gt; WvDial: Internet dialer version 1.54.0&lt;br /&gt;--&gt; Cannot get information for serial port.&lt;br /&gt;--&gt; Initializing modem.&lt;br /&gt;--&gt; Sending: ATZ&lt;br /&gt;--&gt; Sending: ATQ0&lt;br /&gt;--&gt; Re-Sending: ATZ&lt;br /&gt;--&gt; Modem not responding.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;4) Don&#39;t worry about that. Apply the following commands&lt;br /&gt;&lt;blockquote&gt;modprobe uhci_hcd ehci_hcd ppp&lt;br /&gt;modprobe usbserial vendor=0x12d1 product=0x1003&lt;br /&gt;rmmod usb-storage&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;5) Now remove the usb modem again and plug in back.&lt;br /&gt;6) Wait till it is detected and try the following command again.&lt;br /&gt;&lt;blockquote&gt; wvdial --config wvdial.conf A1&lt;/blockquote&gt;&lt;br /&gt;This time you should be able to shout &quot;Eureka!!&quot;.&lt;br /&gt;You should get the following message&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;[root@localhost linux-scripts]# wvdial --config wvdial.conf A1&lt;br /&gt;--&gt; WvDial: Internet dialer version 1.54.0&lt;br /&gt;--&gt; Cannot get information for serial port.&lt;br /&gt;--&gt; Initializing modem.&lt;br /&gt;--&gt; Sending: ATZ&lt;br /&gt;ATZ&lt;br /&gt;OK&lt;br /&gt;--&gt; Sending: at+cgdcont=1,&quot;ip&quot;,&quot;sunsurf&quot;&lt;br /&gt;at+cgdcont=1,&quot;ip&quot;,&quot;sunsurf&quot;&lt;br /&gt;OK&lt;br /&gt;--&gt; Modem initialized.&lt;br /&gt;--&gt; Sending: ATDT*99#&lt;br /&gt;--&gt; Waiting for carrier.&lt;br /&gt;ATDT*99#&lt;br /&gt;CONNECT&lt;br /&gt;--&gt; Carrier detected.  Starting PPP immediately.&lt;br /&gt;--&gt; Starting pppd at Sun Jun 24 11:03:33 2007&lt;br /&gt;--&gt; pid of pppd: 5255&lt;br /&gt;--&gt; Using interface ppp0&lt;br /&gt;--&gt; local  IP address 172.22.33.177&lt;br /&gt;--&gt; remote IP address 10.64.64.64&lt;br /&gt;--&gt; primary   DNS address 10.11.12.13&lt;br /&gt;--&gt; secondary DNS address 10.11.12.14&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Sorry I forgot one thing, You have to be a super user for doing this.&lt;br /&gt;&lt;br /&gt;Hope you succeed on this. Else try plug it in back. It will work for sure.&lt;br /&gt;&lt;br /&gt;Cheers!&lt;br /&gt;References&lt;br /&gt;&lt;a href=&quot;http://www.quirxi.net/mediawiki/index.php/Linux_HSDPA_Modem_Huawai_E220_with_Gentoo_%28Provider:_Ausrian_A1%29&quot;&gt;1) Linux HSDPA Modem Huawai E220 with Gentoo (Provider: Ausrian A1) - QuirxiPedia&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.pharscape.org/content/view/28/#_Toc83808164&quot;&gt;2)     Vodafone 3G (UMTS) Howto &lt;/a&gt;</description><link>http://hsenidians.blogspot.com/2007/06/eureka-connecting-to-m1-3g-vodafone.html</link><author>noreply@blogger.com (JK)</author><thr:total>0</thr:total></item></channel></rss>