<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Alvin &#34;Jay&#34; Reyes Blog</title>
	<atom:link href="http://alvinjayreyes.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://alvinjayreyes.com</link>
	<description>Software Development Technologies, Ideas and Innovations</description>
	<lastBuildDate>Sun, 09 Jun 2013 02:30:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='alvinjayreyes.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Alvin &#34;Jay&#34; Reyes Blog</title>
		<link>http://alvinjayreyes.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://alvinjayreyes.com/osd.xml" title="Alvin &#34;Jay&#34; Reyes Blog" />
	<atom:link rel='hub' href='http://alvinjayreyes.com/?pushpress=hub'/>
		<item>
		<title>Apache CXF &#8211; JAX-WS &#8211; Simple Tutorial</title>
		<link>http://alvinjayreyes.com/2013/05/05/apache-cxf-jax-ws-simple-tutorial/</link>
		<comments>http://alvinjayreyes.com/2013/05/05/apache-cxf-jax-ws-simple-tutorial/#comments</comments>
		<pubDate>Sun, 05 May 2013 05:03:42 +0000</pubDate>
		<dc:creator>Alvin P. Reyes</dc:creator>
				<category><![CDATA[Programming / Technology and Research]]></category>
		<category><![CDATA[Web Service]]></category>
		<category><![CDATA[cdi]]></category>
		<category><![CDATA[cxf]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://alvinjayreyes.com/?p=1246</guid>
		<description><![CDATA[A lot of Java Developers out there sees task with Web Service implementation daunting &#8211; well, nobody can blame them really, especially that it brings a lot of  complexity in development and design over the years of enterprise application development. For some though, learning it is somehow the next step in building a full blown enterprise &#8230; <a href="http://alvinjayreyes.com/2013/05/05/apache-cxf-jax-ws-simple-tutorial/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alvinjayreyes.com&#038;blog=22042448&#038;post=1246&#038;subd=alvinjayreyes&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>A lot of Java Developers out there sees task with Web Service implementation daunting &#8211; well, nobody can blame them really, especially that it brings a lot of  complexity in development and design over the years of enterprise application development. For some though, learning it is somehow the next step in building a full blown enterprise application &#8211; Web Services &#8211; is one of the key schemes for implementing service oriented design &#8211; almost every platform available has support to the scheme, and that of course includes Java/J2EE.</p>
<p>In this tutorial, I will show how you will using Apache CXF to create  Web Servies using JAX-WS and the Apache CXF API to call specific service from a remote application.</p>
<ol>
<li>Building the Web Service Application : Server Side  - We need to build the application as well as the Web Services implementation code. This will be a generic WAR (Web Archive) that will house the actual implementation</li>
<li>Building the Web Service Application: Client Side &#8211; Of course, we need to provide external clients a way for them to access the services &#8211; we will create a stub and give them out to clients for them to use the services.</li>
</ol>
<p>FYI: I&#8217;m using Maven to simplify library definitions.</p>
<h2>1st we create the Stub</h2>
<p>this houses the interface and entities (Pojos) used to access the service. When you design your service &#8211; you usually create the class interfaces (reference) first and put it on another JAR file for re-distribution.</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/05/stub_1.jpeg"><img class="aligncenter size-full wp-image-1261" alt="stub_1" src="http://alvinjayreyes.files.wordpress.com/2013/05/stub_1.jpeg?w=600&#038;h=187" width="600" height="187" /></a></p>
<h2>2nd lets build the service.</h2>
<p>We will be hosting the service from a Web Archive deployed to an application server.</p>
<p><span style="text-decoration:underline;"><strong>POM. xml</strong> </span>- We will be using Spring CDI and CXF &#8211; Might as well load up all the libraries needed.</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/05/server_1.jpeg"><img class="aligncenter size-full wp-image-1262" alt="server_1" src="http://alvinjayreyes.files.wordpress.com/2013/05/server_1.jpeg?w=600"   /></a></p>
<p>We include the stub on the server as this will act as the reference of our implementation:</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/05/server_2.jpeg"><img class="aligncenter size-full wp-image-1263" alt="server_2" src="http://alvinjayreyes.files.wordpress.com/2013/05/server_2.jpeg?w=600"   /></a></p>
<p>We now create the Service Implementation:</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/05/server_3.jpeg"><img class="aligncenter size-full wp-image-1264" alt="server_3" src="http://alvinjayreyes.files.wordpress.com/2013/05/server_3.jpeg?w=600&#038;h=165" width="600" height="165" /></a></p>
<p>cxf-servlet (or beans.xml) &#8211; this is where we will call the factory that will publish the WSDL upon loading the context.</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/05/server_4.jpeg"><img class="aligncenter size-full wp-image-1265" alt="server_4" src="http://alvinjayreyes.files.wordpress.com/2013/05/server_4.jpeg?w=600&#038;h=186" width="600" height="186" /></a></p>
<p>web.xml &#8211; we need to make sure that web service request will go thru CXF &#8211; since we are using its framework. Good thing about CXF is it does all the necessary binding, marshalling, unmarshalling as well as injecting the in / out interceptors.</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/05/server_5.jpeg"><img class="aligncenter size-full wp-image-1266" alt="server_5" src="http://alvinjayreyes.files.wordpress.com/2013/05/server_5.jpeg?w=600&#038;h=218" width="600" height="218" /></a></p>
<p>Build and Deploy the WAR! &#8211; After deploying the war, view the context page. You should be seeing something like this:</p>
<p style="text-align:center;"><a href="http://alvinjayreyes.files.wordpress.com/2013/05/server_61.jpeg"><img class="aligncenter size-full wp-image-1273" alt="server_6" src="http://alvinjayreyes.files.wordpress.com/2013/05/server_61.jpeg?w=600&#038;h=115" width="600" height="115" /></a></p>
<p>If you manage to view the above URL &#8211; then you have successfully expose your service and can now be called by external clients</p>
<h2>3rd we create the client app.</h2>
<p>Now we create a standalone Java app to call the service &#8211; we will be using Spring again to context load client beans and we need include the stub so that we can have reference to the implementation.</p>
<p>beans.xml &#8211; create the xml and call the proxy factory bean to create the instance on runtime</p>
<p style="text-align:center;"><a href="http://alvinjayreyes.files.wordpress.com/2013/05/client_1.jpeg"><img class="aligncenter size-full wp-image-1268" alt="client_1" src="http://alvinjayreyes.files.wordpress.com/2013/05/client_1.jpeg?w=600&#038;h=293" width="600" height="293" /></a></p>
<p>Create the Client &#8211; We will now call the bean and use the reference to call the method.</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/05/client_2.jpeg"><img class="aligncenter size-full wp-image-1269" alt="client_2" src="http://alvinjayreyes.files.wordpress.com/2013/05/client_2.jpeg?w=600&#038;h=235" width="600" height="235" /></a></p>
<h2>4th Test! &#8211; Test your service!</h2>
<p>You should now be able call the Service implementation!</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/05/client_3.jpeg"><img class="aligncenter size-full wp-image-1270" alt="client_3" src="http://alvinjayreyes.files.wordpress.com/2013/05/client_3.jpeg?w=600&#038;h=138" width="600" height="138" /></a></p>
<p>Download the example <a href="https://dl.dropboxusercontent.com/u/1737239/SampleWSCxf.zip">here</a></p>
<p>With this simple example, its really a conclusive proof that creating Web Service now is just a breeze &#8211; We took advantage of Apache CXF as a service framework to simplify the development and Springs powerful CDI that almost took care the rest.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alvinjayreyes.wordpress.com/1246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alvinjayreyes.wordpress.com/1246/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alvinjayreyes.com&#038;blog=22042448&#038;post=1246&#038;subd=alvinjayreyes&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alvinjayreyes.com/2013/05/05/apache-cxf-jax-ws-simple-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2a5dc877c529ade3aa0d0bfd7221888d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alvinjayreyes</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/05/stub_1.jpeg" medium="image">
			<media:title type="html">stub_1</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/05/server_1.jpeg" medium="image">
			<media:title type="html">server_1</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/05/server_2.jpeg" medium="image">
			<media:title type="html">server_2</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/05/server_3.jpeg" medium="image">
			<media:title type="html">server_3</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/05/server_4.jpeg" medium="image">
			<media:title type="html">server_4</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/05/server_5.jpeg" medium="image">
			<media:title type="html">server_5</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/05/server_61.jpeg" medium="image">
			<media:title type="html">server_6</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/05/client_1.jpeg" medium="image">
			<media:title type="html">client_1</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/05/client_2.jpeg" medium="image">
			<media:title type="html">client_2</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/05/client_3.jpeg" medium="image">
			<media:title type="html">client_3</media:title>
		</media:content>
	</item>
		<item>
		<title>High Level Solutions Proposal &#8211; Adhoc experience</title>
		<link>http://alvinjayreyes.com/2013/03/27/high-level-solutions-proposal-adhoc-experience/</link>
		<comments>http://alvinjayreyes.com/2013/03/27/high-level-solutions-proposal-adhoc-experience/#comments</comments>
		<pubDate>Tue, 26 Mar 2013 16:04:03 +0000</pubDate>
		<dc:creator>Alvin P. Reyes</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Ideas]]></category>
		<category><![CDATA[Programming / Technology and Research]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://alvinjayreyes.com/?p=1222</guid>
		<description><![CDATA[I was once challenge to create a proposal for a mid-size application that can have millions of potential users. The experience is not easy as I need to meet up with the same client over and over again to discuss the high level solution, innovations made, justify estimates, explain the overall process, expectation on both &#8230; <a href="http://alvinjayreyes.com/2013/03/27/high-level-solutions-proposal-adhoc-experience/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alvinjayreyes.com&#038;blog=22042448&#038;post=1222&#038;subd=alvinjayreyes&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I was once challenge to create a proposal for a mid-size application that can have millions of potential users. The experience is not easy as I need to meet up with the same client over and over again to discuss the high level solution, innovations made, justify estimates, explain the overall process, expectation on both parties and what the solution will be the final solution be like after.</p>
<p>I will try to give out as much detail as I can, but I need to protect the integrity of my documents as well as my client.</p>
<p>Client Use Case: I want to create e-Learning System that will allow enthusiastic knowledge sharer to have a venue for them to teach and possibly earn.</p>
<p>With this client use case, I come up with a Conceptual System design. The Functional Aspects include  (note that what I&#8217;m going to show here is just a specific phase of the project):</p>
<ol>
<li>User Dashboards</li>
<li>Learn &#8211; Venue for users that wants to learn</li>
<li>Teach &#8211; Venue for users that wants to teach</li>
<li>Community forum &#8211; discussions on topics, courses and other related activities</li>
<li>Account Management &#8211; users will be able to manage their accounts using a specific sub-system</li>
<li>Shopping Cart &#8211; Payment process</li>
<li>Settlements &#8211; Settle accounts and payments, report generation for receipts and stubs</li>
<li>Actual up front website of the system</li>
</ol>
<p>What I did is <span style="text-decoration:underline;"><strong>separate these systems requirements</strong> </span>and break them down to smaller manageable (yet still high level solutions) modules. I will not further elaborate how I did them but here is the screenshot of the documentation I made (with the break down). Basically, these are all intuition based, if you are knowledgable how Software Apps work &#8211; you&#8217;ll eventually end up having an idea on how to solve each specific case.</p>
<p>So to list all details that I did for the proposal:</p>
<ol>
<li>Details that as much as you can, can be explain or elaborated to the most non-technical person on the client side</li>
<li>Complete Systems requirements versus technical solution</li>
<li>list of solution and innovations (why does your solution stands out of the rest &#8211; what is special about it)</li>
<li>Process / methodology &#8211; We need to give them a bit of how we do things and this is how effective we are &#8211; give them the benefits that they will acquire with your preferred methodology - not just your own benefit.</li>
<li>Give them the comfortable detail they need for them to trust the solution</li>
</ol>
<p>I tried preparing all of this items as it will give the client a better perspective and understanding on what and how are the projects will be executed:</p>
<p>I put up a <span style="text-decoration:underline;"><strong>list as of features with respect to its technical conceptual design</strong></span>. These features look a lot like functional ones but a closer look at each will give you the idea that they are also separated by technical implementation (how to implement each).</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/03/1_feat.jpeg"><img class="aligncenter size-full wp-image-1224" alt="1_feat" src="http://alvinjayreyes.files.wordpress.com/2013/03/1_feat.jpeg?w=600&#038;h=460" width="600" height="460" /></a></p>
<p>Created <span style="text-decoration:underline;"><strong>Pre-requisites</strong></span> &#8211; to identify if there are features that needs to be done first before the feature is considering fully working. <span style="text-decoration:underline;"><strong>Description</strong></span> &#8211; is just the purpose of the module. <span style="text-decoration:underline;"><strong>Solution, Effort and Cost Driver</strong></span> &#8211; table that consist of the solution, explanation of effort and its cost driver.</p>
<p><strong>Sample Feature breakdown</strong> &#8211; that includes, description and step by step sub-features:</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/03/feature_breakdown.jpeg"><img class="aligncenter size-full wp-image-1226" alt="feature_breakdown" src="http://alvinjayreyes.files.wordpress.com/2013/03/feature_breakdown.jpeg?w=600&#038;h=323" width="600" height="323" /></a></p>
<p><span style="text-decoration:underline;"><strong>Next is the cost breakdown</strong></span> &#8211; the cost break down is based on the average hourly rate of the developer &#8211; I wanted to make this project as formal as possible as I&#8217;m looking at it back then to be the initial pilot project and that the process established will be re-used for succeeding ones.</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/03/cost_1.jpeg"><img class="aligncenter size-full wp-image-1225" alt="cost_1" src="http://alvinjayreyes.files.wordpress.com/2013/03/cost_1.jpeg?w=600&#038;h=511" width="600" height="511" /></a></p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/03/effort_excel.jpeg"><img class="aligncenter size-full wp-image-1230" alt="effort_excel" src="http://alvinjayreyes.files.wordpress.com/2013/03/effort_excel.jpeg?w=600&#038;h=453" width="600" height="453" /></a></p>
<p>The cost gives an overall breakdown of cost with respect to: technology stack, platform, effort resourcing and external service needed.</p>
<p>Technology Stack Diagram and implementation scheme &#8211; Its important that you align the methodology or at the very least, the strategy of implementation. I used Agile &#8211; and aligned its benefits and the high probably of quality result by using actual user stories.</p>
<p><strong>Application Stack:</strong></p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/03/break_down.jpeg"><img class="aligncenter size-full wp-image-1227" alt="break_down" src="http://alvinjayreyes.files.wordpress.com/2013/03/break_down.jpeg?w=600"   /></a></p>
<p>Since this is a Website: <strong>Systems Architecture (Hosting)</strong></p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/03/hosting_arch.jpeg"><img class="aligncenter size-full wp-image-1228" alt="hosting_arch" src="http://alvinjayreyes.files.wordpress.com/2013/03/hosting_arch.jpeg?w=600"   /></a></p>
<p>Agile: <strong>Systems Integration Architecture / Process View</strong></p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/03/arch_sys.jpeg"><img class="aligncenter size-full wp-image-1229" alt="arch_sys" src="http://alvinjayreyes.files.wordpress.com/2013/03/arch_sys.jpeg?w=600&#038;h=358" width="600" height="358" /></a></p>
<p><strong>Traceability Matrix</strong> &#8211; Map System requirements to High Level Solution module (note that this is from a different project)</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/03/sys_vs_tech.jpeg"><img class="aligncenter size-full wp-image-1231" alt="sys_vs_tech" src="http://alvinjayreyes.files.wordpress.com/2013/03/sys_vs_tech.jpeg?w=600"   /></a></p>
<p>The bottom line here is that: Give them the correct details they need for them to be comfortable with how you will do the solution and of course your depth knowledge to finish them off with the highest quality possible.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alvinjayreyes.wordpress.com/1222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alvinjayreyes.wordpress.com/1222/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alvinjayreyes.com&#038;blog=22042448&#038;post=1222&#038;subd=alvinjayreyes&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alvinjayreyes.com/2013/03/27/high-level-solutions-proposal-adhoc-experience/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2a5dc877c529ade3aa0d0bfd7221888d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alvinjayreyes</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/03/1_feat.jpeg" medium="image">
			<media:title type="html">1_feat</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/03/feature_breakdown.jpeg" medium="image">
			<media:title type="html">feature_breakdown</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/03/cost_1.jpeg" medium="image">
			<media:title type="html">cost_1</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/03/effort_excel.jpeg" medium="image">
			<media:title type="html">effort_excel</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/03/break_down.jpeg" medium="image">
			<media:title type="html">break_down</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/03/hosting_arch.jpeg" medium="image">
			<media:title type="html">hosting_arch</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/03/arch_sys.jpeg" medium="image">
			<media:title type="html">arch_sys</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/03/sys_vs_tech.jpeg" medium="image">
			<media:title type="html">sys_vs_tech</media:title>
		</media:content>
	</item>
		<item>
		<title>Calling SH Unix command via Java</title>
		<link>http://alvinjayreyes.com/2013/02/27/calling-sh-unix-command-via-java/</link>
		<comments>http://alvinjayreyes.com/2013/02/27/calling-sh-unix-command-via-java/#comments</comments>
		<pubDate>Tue, 26 Feb 2013 17:01:40 +0000</pubDate>
		<dc:creator>Alvin P. Reyes</dc:creator>
				<category><![CDATA[Programming / Technology and Research]]></category>
		<category><![CDATA[Unix Scripting]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[sh]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://alvinjayreyes.com/?p=1212</guid>
		<description><![CDATA[By far, one of the most simple, yet overlooked simple solution to batch and process executions. Running an SH via Java isn&#8217;t really hard &#8211; there&#8217;s already an existing Object Utility for it, just need to call it correctly though. Java Code: the samplescript.sh is a custom script I created using nano. Basically, I pass &#8230; <a href="http://alvinjayreyes.com/2013/02/27/calling-sh-unix-command-via-java/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alvinjayreyes.com&#038;blog=22042448&#038;post=1212&#038;subd=alvinjayreyes&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>By far, one of the most simple, yet overlooked simple solution to batch and process executions.</p>
<p>Running an SH via Java isn&#8217;t really hard &#8211; there&#8217;s already an existing Object Utility for it, just need to call it correctly though. Java Code:</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/02/java_code_call_sh.jpeg"><img class="aligncenter size-full wp-image-1213" alt="java_code_call_sh" src="http://alvinjayreyes.files.wordpress.com/2013/02/java_code_call_sh.jpeg?w=600&#038;h=207" width="600" height="207" /></a></p>
<p>the samplescript.sh is a custom script I created using nano. Basically, I pass alvin jay and reyes as parameters and get them by using $1,2 and 3.</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/02/nano_script.jpeg"><img class="aligncenter size-full wp-image-1214" alt="nano_script" src="http://alvinjayreyes.files.wordpress.com/2013/02/nano_script.jpeg?w=600"   /></a></p>
<p>Console Output: I manage to get the output from the output stream object of the Process.</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/02/dir_sh.jpeg"><img class="aligncenter size-full wp-image-1215" alt="dir_sh" src="http://alvinjayreyes.files.wordpress.com/2013/02/dir_sh.jpeg?w=600&#038;h=537" width="600" height="537" /></a></p>
<p>Download the source code here:</p>
<ul>
<li><a href="http://dl.dropbox.com/u/1737239/samplescript.sh">SH</a></li>
<li><a href="http://dl.dropbox.com/u/1737239/SampleRunExec.java">Java</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alvinjayreyes.wordpress.com/1212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alvinjayreyes.wordpress.com/1212/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alvinjayreyes.com&#038;blog=22042448&#038;post=1212&#038;subd=alvinjayreyes&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alvinjayreyes.com/2013/02/27/calling-sh-unix-command-via-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2a5dc877c529ade3aa0d0bfd7221888d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alvinjayreyes</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/02/java_code_call_sh.jpeg" medium="image">
			<media:title type="html">java_code_call_sh</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/02/nano_script.jpeg" medium="image">
			<media:title type="html">nano_script</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/02/dir_sh.jpeg" medium="image">
			<media:title type="html">dir_sh</media:title>
		</media:content>
	</item>
		<item>
		<title>Basics of all Basics &#8211; Relocate your Apache DocRoot</title>
		<link>http://alvinjayreyes.com/2013/01/20/basics-of-all-basics-relocate-your-apache-docroot/</link>
		<comments>http://alvinjayreyes.com/2013/01/20/basics-of-all-basics-relocate-your-apache-docroot/#comments</comments>
		<pubDate>Sun, 20 Jan 2013 13:37:34 +0000</pubDate>
		<dc:creator>Alvin P. Reyes</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming / Technology and Research]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[docroot]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[relocate php]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://alvinjayreyes.com/?p=1206</guid>
		<description><![CDATA[Sometimes, the exciting part in configuring a virtual software server (web or application) is the activity to understand how it works and how can you manipulate it the way you want. For this post, I would like to give a basic how to on relocating (or pointing) your apache to scan a specific directory as &#8230; <a href="http://alvinjayreyes.com/2013/01/20/basics-of-all-basics-relocate-your-apache-docroot/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alvinjayreyes.com&#038;blog=22042448&#038;post=1206&#038;subd=alvinjayreyes&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Sometimes, the exciting part in configuring a virtual software server (web or application) is the activity to understand how it works and how can you manipulate it the way you want. For this post, I would like to give a basic how to on relocating (or pointing) your apache to scan a specific directory as its DocRoot directory. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The DocRoot directory &#8211; Every PHP developer must &#8216;ve known or ask regarding about this. Did you ever wonder if you can customise your XAMPP/LAMP or MAMP to detect or interpret PHP files on a folder other than the docroot folder? Here is how!</p>
<p>Locate  <strong>httpd.conf</strong> file on the apache folder &#8211; This is where you can edit that settings!</p>
<p>&nbsp;</p>
<p>1st) Go to the DocRoot line and change the location to your location</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/01/screenshot_1_20_13_9_29_pm.jpeg"><img class="aligncenter size-full wp-image-1207" alt="Screenshot_1_20_13_9_29_PM" src="http://alvinjayreyes.files.wordpress.com/2013/01/screenshot_1_20_13_9_29_pm.jpeg?w=600&#038;h=627" width="600" height="627" /></a></p>
<p>&nbsp;</p>
<p>2nd) and Edit the &lt;directory &#8220;&lt;location&gt;&#8221;&gt; with your location then</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/01/screenshot_1_20_13_9_33_pm.jpeg"><img class="aligncenter size-full wp-image-1208" alt="Screenshot_1_20_13_9_33_PM" src="http://alvinjayreyes.files.wordpress.com/2013/01/screenshot_1_20_13_9_33_pm.jpeg?w=600&#038;h=567" width="600" height="567" /></a></p>
<p>&nbsp;</p>
<p>3rd) restart!</p>
<p>Easy  easy easy right? Now you can put all your PHP apps there and run it smoothly by using: <a href="http://localhost" rel="nofollow">http://localhost</a> &lt;or whatever your host name is&gt;:80 &lt;or whatever your port is&gt;/app &lt;or whatever your app name is&gt;</p>
<p><a href="http://alvinjayreyes.files.wordpress.com/2013/01/screenshot_1_20_13_9_35_pm.jpeg"><img class="aligncenter size-full wp-image-1209" alt="Screenshot_1_20_13_9_35_PM" src="http://alvinjayreyes.files.wordpress.com/2013/01/screenshot_1_20_13_9_35_pm.jpeg?w=600&#038;h=258" width="600" height="258" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alvinjayreyes.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alvinjayreyes.wordpress.com/1206/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alvinjayreyes.com&#038;blog=22042448&#038;post=1206&#038;subd=alvinjayreyes&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alvinjayreyes.com/2013/01/20/basics-of-all-basics-relocate-your-apache-docroot/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2a5dc877c529ade3aa0d0bfd7221888d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alvinjayreyes</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/01/screenshot_1_20_13_9_29_pm.jpeg" medium="image">
			<media:title type="html">Screenshot_1_20_13_9_29_PM</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/01/screenshot_1_20_13_9_33_pm.jpeg" medium="image">
			<media:title type="html">Screenshot_1_20_13_9_33_PM</media:title>
		</media:content>

		<media:content url="http://alvinjayreyes.files.wordpress.com/2013/01/screenshot_1_20_13_9_35_pm.jpeg" medium="image">
			<media:title type="html">Screenshot_1_20_13_9_35_PM</media:title>
		</media:content>
	</item>
		<item>
		<title>Good Developer vs Bad Developer</title>
		<link>http://alvinjayreyes.com/2012/12/03/1201/</link>
		<comments>http://alvinjayreyes.com/2012/12/03/1201/#comments</comments>
		<pubDate>Sun, 02 Dec 2012 19:34:52 +0000</pubDate>
		<dc:creator>Alvin P. Reyes</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[bad dev]]></category>
		<category><![CDATA[Developer. Good dev]]></category>

		<guid isPermaLink="false">http://alvinjayreyes.com/2012/12/03/1201/</guid>
		<description><![CDATA[Reblogged from Jelastic — Top Java and PHP Host, Java and PHP in the Cloud, Java and PHP Server Hosting, Java and PHP Cloud Computing: This article was originally posted by Guy Nirpaz at his blog. Good developer is an artist, a craftsman who enjoys the process of creation. Bad developer considers himself as a programmer, &#8230; <a href="http://alvinjayreyes.com/2012/12/03/1201/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alvinjayreyes.com&#038;blog=22042448&#038;post=1201&#038;subd=alvinjayreyes&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<div class="reblog-post"><p class="reblog-from"><img alt='' src='http://2.gravatar.com/avatar/e1c27f02d90772e13463a14257a9e3f1?s=25&amp;d=identicon&amp;r=G' class='avatar avatar-25' height='25' width='25' /> <a href="http://jelastic.wordpress.com/2012/11/21/good-developer-vs-bad-developer/">Reblogged from Jelastic — Top Java and PHP Host, Java and PHP in the Cloud, Java and PHP Server Hosting, Java and PHP Cloud Computing:</a></p><div class="wpcom-enhanced-excerpt"><div class="wpcom-enhanced-excerpt-content">
<p><em>This article was originally posted by </em><a href="http://www.guynirpaz.com/2012/06/11/good-developer-bad-developer/">Guy Nirpaz at his blog</a>.</p>
<p>Good developer is an artist, a craftsman who enjoys the process of creation. Bad developer considers himself as a programmer, responsible for generating lines of code.</p>
<p>Good developer understands the problems of the customers. Bad developer understands only the technical problem at hand. Good developer does not define the why, but constantly strives to understand why.</p>
</div> <p class="read-more"><a href="http://jelastic.wordpress.com/2012/11/21/good-developer-vs-bad-developer/" target="_self"><span>Read more&hellip;</span> 388 more words</a></p></div></div><div class="reblogger-note"><div class='reblogger-note-content'>
Good developer versus bad developer
</div></div>]]></content:encoded>
			<wfw:commentRss>http://alvinjayreyes.com/2012/12/03/1201/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2a5dc877c529ade3aa0d0bfd7221888d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alvinjayreyes</media:title>
		</media:content>
	</item>
	</channel>
</rss>
