<?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/"
	>

<channel>
	<title>Engwar &#187; wso2</title>
	<atom:link href="http://engwar.com/tags/wso2/feed" rel="self" type="application/rss+xml" />
	<link>http://engwar.com</link>
	<description>Chintana Wilamuna&#039;s weblog</description>
	<lastBuildDate>Tue, 06 Mar 2012 07:32:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Running a Java process as a service</title>
		<link>http://engwar.com/post/678?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=running-a-java-process-as-a-service</link>
		<comments>http://engwar.com/post/678#comments</comments>
		<pubDate>Wed, 15 Feb 2012 11:44:06 +0000</pubDate>
		<dc:creator>Chintana</dc:creator>
				<category><![CDATA[carbon]]></category>
		<category><![CDATA[wso2]]></category>

		<guid isPermaLink="false">http://engwar.com/?p=678</guid>
		<description><![CDATA[There are many open source projects out there that&#8217;s using Java Service Wrapper to run a process as a Windows service and as a daemon process in Linux. To make money of the excellent project they decided to screw everyone &#8230; <a href="http://engwar.com/post/678">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are many open source projects out there that&#8217;s using <a href="http://wrapper.tanukisoftware.com/doc/english/download.jsp">Java Service Wrapper</a> to run a process as a Windows service and as a daemon process in Linux. To make money of the excellent project they decided to screw everyone over and change to an <a href="http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html">atrocious licensing scheme</a>. The crippled down community edition now doesn&#8217;t support 64bit Windows. Probably many other such nonsensical terms.</p>
<p>So, if you&#8217;re looking for alternatives there are several other nice projects out there. <a href="http://yajsw.sourceforge.net/">YAJSW</a> is super easy to configure and use no native code.</p>
<p>You can generate a config file from a running Java process by giving the process ID. Found that it&#8217;s easy to start from here and then tweak the system paths according to your setup.</p>
<p>Following wrapper.conf file can be used to start any <a href="http://wso2.com/products/carbon/">WSO2 Carbon</a> product as a service in Windows. In the following configuration I&#8217;ve hard coded the working dir but that can easily be set to take from an environment variable just like the JVM path. I&#8217;ve removed comments from wrapper.conf for brevity.</p>
<pre>
wrapper.working.dir=C:\\test\\wso2greg-4.1.1

wrapper.java.app.mainclass= org.wso2.carbon.bootstrap.Bootstrap

wrapper.console.loglevel=INFO

wrapper.console.title="WSO2 G-Reg"

wrapper.ntservice.name="WSO2GREG"

wrapper.ntservice.displayname="WSO2 GREG"

wrapper.ntservice.description="Governance Registry"

wrapper.daemon.run_level_dir=${if (new File('\/etc\/rc0.d').exists()) return '\/etc\/rcX.d' else return '\/etc\/init.d\/rcX.d'}

wrapper.tray = true

wrapper.tray.port = 15002

wrapper.on_exit.0=SHUTDOWN
wrapper.on_exit.default=RESTART

wrapper.filter.trigger.0=Exception
wrapper.filter.script.0=scripts\/trayMessage.gv
wrapper.filter.script.0.args=Exception

placeHolderSoGenPropsComeHere=
wrapper.java.command = ${JAVA_HOME}\\bin\\java
wrapper.java.classpath.1 = .\\lib
wrapper.java.classpath.2 = ${JAVA_HOME}\\lib\\tools.jar
wrapper.java.classpath.3 = .\\bin\\org.wso2.carbon.bootstrap-3.2.2.jar
wrapper.java.classpath.4 = .\\lib\\endorsed
wrapper.app.parameter.1 = RUN
wrapper.app.parameter.2 = -Dcarbon.registry.root=\/
wrapper.app.parameter.3 = -Dcarbon.home=c:\\test\\wso2greg-4.1.1
wrapper.app.parameter.4 = -Dwso2.server.standalone=true
wrapper.app.parameter.5 = -Djava.command=${JAVA_HOME}\\bin\\java
wrapper.app.parameter.8 = -Dcarbon.xbootclasspath=;.\\lib\\xboot\\org.wso2.carbon.xboot-3.2.0.jar
wrapper.app.parameter.9 = -Djava.io.tmpdir=.\\bin\\..\\tmp
wrapper.app.parameter.10 = -Dwso2.carbon.xml=.\\bin\\..\\repository\\conf\\carbon.xml
wrapper.app.parameter.11 = -Dwso2.registry.xml=.\\bin\\..\\repository\\conf\\registry.xml
wrapper.app.parameter.12 = -Dwso2.user.mgt.xml=.\\bin\\..\\repository\\conf\\user-mgt.xml
wrapper.app.parameter.13 = -Dwso2.transports.xml=.\\bin\\..\\repository\\conf\\mgt-transports.xml
wrapper.app.parameter.14 = -Djava.util.logging.config.file=.\\bin\\..\\lib\\log4j.properties
wrapper.app.parameter.15 = -Dcarbon.config.dir.path=.\\bin\\..\\repository\\conf
wrapper.app.parameter.16 = -Dcarbon.logs.path=.\\bin\\..\\repository\\logs
wrapper.app.parameter.17 = -Dcomponents.repo=.\\bin\\..\\repository\\components
wrapper.app.parameter.18 = -Dcom.atomikos.icatch.file=.\\bin\\..\\lib\\transactions.properties
wrapper.app.parameter.19 = -Dcom.atomikos.icatch.hide_init_file_path=true
wrapper.app.parameter.20 = -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true
wrapper.app.parameter.21 = -Dcom.sun.jndi.ldap.connect.pool.authentication=simple
wrapper.app.parameter.22 = -Dcom.sun.jndi.ldap.connect.pool.timeout=3000
wrapper.app.parameter.23 = -Dcarbon.classpath=.\\lib;${JAVA_HOME}\\lib\\tools.jar;;.\\bin\\org.wso2.carbon.bootstrap-3.2.2.jar;
wrapper.java.additional.1 = -Xbootclasspath\/a:;.\\lib\\xboot\\org.wso2.carbon.xboot-3.2.0.jar
wrapper.java.additional.2 = -Xms256m
wrapper.java.additional.3 = -Xmx512m
wrapper.java.additional.4 = -XX:MaxPermSize=256m
wrapper.java.additional.5 = -Dimpl.prefix=Carbon
wrapper.java.additional.6 = -Dcom.sun.management.jmxremote
wrapper.java.additional.7 = -Djava.endorsed.dirs=.\\lib\\endorsed;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://engwar.com/post/678/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WSO2Con 2011 &#8211; Must attend sessions</title>
		<link>http://engwar.com/post/592?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wso2con-2011-must-attend-sessions</link>
		<comments>http://engwar.com/post/592#comments</comments>
		<pubDate>Fri, 09 Sep 2011 19:26:12 +0000</pubDate>
		<dc:creator>Chintana</dc:creator>
				<category><![CDATA[wso2]]></category>
		<category><![CDATA[wso2con]]></category>

		<guid isPermaLink="false">http://engwar.com/?p=592</guid>
		<description><![CDATA[WSO2Con 2011 is just around the corner. This time packed with great set of sessions and lots of entertainment. So the question is what would be the top five talks that you would be attending to. That&#8217;s not easy. Samisa, &#8230; <a href="http://engwar.com/post/592">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://wso2.com/events/wso2con-2011-colombo/">WSO2Con 2011</a> is just around the corner. This time packed with great set of sessions and lots of entertainment. So the question is what would be the top five talks that you would be attending to. That&#8217;s not easy. <a href="http://samisa-abeysinghe.blogspot.com/2011/09/wso2con-2011-5-dont-miss-talks-by-wso2.html">Samisa</a>, <a href="http://asanka.abeysinghe.org/2011/09/my-5-sessions-at-wso2con-2011.html">Asanka</a> and <a href="http://jonathanmarsh.net/2011/09/07/five-dont-miss-things-at-wso2con-2011/">Jonathan</a> has written about their favorite talks. Top five picks that I would be looking forward to hearing would be,</p>
<ul>
<li><em>Using WSO2 ESB with SAP ERP (Retail)</em> by <a href="http://wso2.com/events/wso2con-2011-colombo/speakers/#harshas">Harsha</a> &#8211; John Keels Holding PLC is one of the largest conglomerate in Sri Lanka. As a public liability company it&#8217;s really interesting how they went about adopting open source middleware products into their core business processes. As the person who spearheaded the effort and provided guidance for the team, Harsha&#8217;s talk is going to be interesting providing practical insights into the whole project</li>
<li><em>Building Cool Applications with WSO2 StratosLive</em> by <a href="http://wso2.com/events/wso2con-2011-colombo/speakers/#shankar">Shankar</a> &#8211; Stratos provide a rich framework for building applications. Developers can concentrate on making cool applications without having to worry about a whole heap of infrastructure related aspects. They&#8217;re taken care of. Interesting to get a head start on application development from Shankar</li>
<li><em>Open Source Adoption in the Enterprise</em> by <a href="http://wso2.com/events/wso2con-2011-colombo/speakers/#prajod">Prajod</a> &#8211; Enterprises have been a big no no for open source software. However, it&#8217;s been changing really fast. Going to be interesting hearing more insights into open source adoption from Prajod</li>
<li><em>Quality &#8211; The key to successful SOA</em> by <a href="http://wso2.com/events/wso2con-2011-colombo/speakers/#charitha">Charitha</a> &#8211; Traditional software QA and testing what I read during my undergrad is from a different era. The projects those days usually ran for years. Now, project durations are measured in weeks. Project life cycles are getting shorter and you have to adjust testing and QA efforts accordingly. Have to adopt new methods. SOA testing is even tougher given plethora of possible integration scenarios with other products. Going to be great hearing QA and testing insights from Charitha</li>
<li><em>Develop, Test and Deploy your SOA Application through a Single Platform</em> by <a href="http://wso2.com/events/wso2con-2011-colombo/speakers/#chathuri">Chathuri</a> &#8211; I&#8217;ll confess. I&#8217;m not  an ardent fan of Eclipse. When you compare it with IntelliJ IDEA, Eclipse does feels like some one kicked you in the nuts. That&#8217;s just me <img src='http://engwar.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  I am thrilled to get to know more about Eclipse + Carbon Studio for application development for the WSO2 middleware platform</li>
</ul>
<p><a href="http://wso2.com/events/wso2con-2011-colombo/agenda/">Full agenda</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://engwar.com/post/592/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Paas : Building your first app</title>
		<link>http://engwar.com/post/570?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=java-paas-building-your-first-app</link>
		<comments>http://engwar.com/post/570#comments</comments>
		<pubDate>Tue, 06 Sep 2011 20:34:43 +0000</pubDate>
		<dc:creator>Chintana</dc:creator>
				<category><![CDATA[cloud]]></category>
		<category><![CDATA[cloudapps]]></category>
		<category><![CDATA[paas]]></category>
		<category><![CDATA[stratos]]></category>
		<category><![CDATA[wso2]]></category>

		<guid isPermaLink="false">http://engwar.com/?p=570</guid>
		<description><![CDATA[This is a step by step guide to show you how to build your first web application and host in WSO2 StratosLive. We&#8217;ll be creating a simple Twitter like webapp using Carbon Studio. Here goes. P.S: Use a browser that &#8230; <a href="http://engwar.com/post/570">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is a step by step guide to show you how to build your first web application and host in <a href="http://stratoslive.wso2.com/">WSO2 StratosLive</a>. We&#8217;ll be creating a simple Twitter like webapp using <a href="http://wso2.com/products/carbon-studio/">Carbon Studio</a>. <a href="http://engwar.com/p/java-paas-gs/">Here goes</a>.</p>
<p>P.S: Use a browser that supports HTML5.</p>
]]></content:encoded>
			<wfw:commentRss>http://engwar.com/post/570/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Cloud computing and SOA</title>
		<link>http://engwar.com/post/149?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cloud-computing-and-soa</link>
		<comments>http://engwar.com/post/149#comments</comments>
		<pubDate>Wed, 18 Nov 2009 06:38:50 +0000</pubDate>
		<dc:creator>Chintana</dc:creator>
				<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[soa]]></category>
		<category><![CDATA[wso2]]></category>

		<guid isPermaLink="false">http://engwar.com/?p=149</guid>
		<description><![CDATA[If you&#8217;ve not already heard the term (gasp!) or don&#8217;t have an idea about cloud computing you can look no further than the excellent, short presentation titled &#8220;Cloud Computing &#8211; Why IT matters&#8221; by Simon Wardley. Also, read a great &#8230; <a href="http://engwar.com/post/149">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve not already heard the term (gasp!) or don&#8217;t have an idea about cloud computing you can look no further than the excellent, short presentation titled <a href="http://www.youtube.com/watch?v=okqLxzWS5R4">&#8220;Cloud Computing &#8211; Why IT matters&#8221;</a> by <a href="http://blog.gardeviance.org/">Simon Wardley</a>. Also, read a great paper about the subject <a href="http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-28.pdf">&#8220;Above the Clouds: A Berkeley View of Cloud Computing&#8221;</a> [PDF].</p>
<p>Usually in technically adept circles you can hear virtualization being used more often than the term cloud computing, the technology that enable computers to evaporate into small H<sub>2</sub>O particles and form clouds. Virtualization tools have been there for a while. It was, IMHO, got popular after Amazon slapped a Web services interface in front of <a href="http://xen.org/">Xen</a> and said, try using this interface to start/stop and manage virtual machines. Having a separate service for persistent storage, again, is a brilliant marketing move. With big investments (<a href="http://www.intel.com/pressroom/archive/releases/2009/20091117corp.htm">such as Intel investing in Joyent</a>) one can guarantee that the cloud space will get cloudier as time progress. This might make projects such as <a href="http://simplecloud.org/">Simple Cloud</a> more attractive.</p>
<p>Adoption rates for cloud computing is going to increase among the big guys. As a survey done by Forrester tells <a href="http://cloudstoragestrategy.com/2009/07/forrester-surprise-the-enterprise-is-ready-for-cloud-computing.html">&#8220;one out of four large companies plan to use an external provider soon, or have already employed one&#8221;</a>. When people are seriously considering moving to cloud platforms, you have to make sure that all the application programs are ready to be run on a virtualized environment. Specially SOA middleware products that the company is using should be compatible and must be able to take advantage of the services provided.</p>
<p>One advantage of moving to cloud computing is the ability to add/remove resources as and when it&#8217;s required. If your applications, or middleware products that you&#8217;re using is incapable of getting advantage of this elasticity (autoscaling to the inner techie in you) there&#8217;s no point, or no value gained by putting your stuff in the cloud. It&#8217;s one reason why <a href="http://wso2.com/">WSO2</a> has <a href="http://wso2.com/cloud">&#8220;cloud enabled&#8221; all of the products line</a>. Not only you can host all your services in the cloud using WSO2 middleware products, you can download pre-built images for VMware and KVM to run inside your private virtualized infrastructure. Give it a whirl and see!</p>
]]></content:encoded>
			<wfw:commentRss>http://engwar.com/post/149/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building WSO2 Carbon from source</title>
		<link>http://engwar.com/post/110?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=building-wso2-carbon-from-source</link>
		<comments>http://engwar.com/post/110#comments</comments>
		<pubDate>Fri, 27 Mar 2009 12:06:21 +0000</pubDate>
		<dc:creator>Chintana</dc:creator>
				<category><![CDATA[carbon]]></category>
		<category><![CDATA[wso2]]></category>

		<guid isPermaLink="false">http://engwar.com/?p=110</guid>
		<description><![CDATA[Recently I built WSO2 Carbon. Here&#8217;s how I did it with some help from the carbon mailing list Do stick to the same build order. I did this on an Ubuntu machine. If you happen to see maven complaining about &#8230; <a href="http://engwar.com/post/110">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently I built WSO2 Carbon. Here&#8217;s how I did it with some help from the <a href="http://wso2.org/mail#carbon">carbon mailing list</a> <img src='http://engwar.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Do stick to the same build order. I did this on an Ubuntu machine. If you happen to see maven complaining about running out of memory just do,</p>
<pre>
$ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
</pre>
<p>First step, build <a href="http://ws.apache.org/axis2">Axis2</a> 1.4.1 from the custom branch</p>
<pre>
$ svn co http://svn.wso2.org/repos/wso2/branches/axis2/v1.4.1 axis2-1.4.1-branch
</pre>
<p>Next find the revision of the branch,</p>
<pre>
$ cd axis2-1.4.1-branch
$ svn info
Path: .
URL: http://svn.wso2.org/repos/wso2/branches/axis2/v1.4.1
Repository Root: http://svn.wso2.org/repos/wso2
Repository UUID: a5903396-d722-0410-b921-86c7d4935375
Revision: 32422
Node Kind: directory
Schedule: normal
Last Changed Author: amila
Last Changed Rev: 30518
Last Changed Date: 2009-02-06 10:39:03 +0530 (Fri, 06 Feb 2009)
</pre>
<p>Revision 30518 have an inconsistency in modules/addressing/pom.xml where the addressing artefact ID is wrong.  You have to <a href="http://engwar.com/wp-content/uploads/2009/03/addressing-pom.patch">get this patch</a> and apply it. Download, save it somewhere and do the following to apply the patch.</p>
<pre>
$ cd modules/addressing
$ patch -p0 < /home/chintana/addressing-pom.patch
$ cd ../..
</pre>
<p>Now you're at the Axis2 root level. Before building at the root level you have to build two plugins,</p>
<pre>
$ cd modules/tool/axis2-mar-maven-plugin
$ mvn clean install
$ cd ../axis2-aar-maven-plugin/
$ mvn clean install
$ cd ../../..
</pre>
<p>Back at the root level, now you can build the project,</p>
<pre>
$ mvn clean install -Dmaven.test.skip=true
</pre>
<p>Next step is to build Rampart from the custom branch,</p>
<pre>
$ svn co http://svn.wso2.org/repos/wso2/branches/rampart/1.4.wso2 rampart-custom
$ cd rampart-custom
$ mvn clean install -Dmaven.test.skip=true
</pre>
<p>Build Sandesha from the custom branch,</p>
<pre>
$ svn co http://svn.wso2.org/repos/wso2/branches/sandesha2/1.4.wso2 sandesha-custom
$ cd sandesha-custom
$ mvn clean install -Dmaven.test.skip=true
</pre>
<p>Next up is Savan, again from a custom branch,</p>
<pre>
$ svn co https://svn.wso2.org/repos/wso2/branches/savan/1.0wso2v1 savan-custom
$ cd savan-custom
$ mvn clean install -Dmaven.test.skip=true
</pre>
<p>Now all the prerequisites are complete for the Carbon platform. Let's go ahead and build Carbon. It has 3 parts. carbon-orbit, carbon and carbon-components (for carbon I had to change the addressing.version property in root level pom.xml to 1.4.1),</p>
<pre>
$ svn co http://svn.wso2.org/repos/wso2/trunk/carbon-orbit
$ cd carbon-orbit
$ mvn clean install -Dmaven.test.skip=true
$ cd ..
$ svn co http://svn.wso2.org/repos/wso2/trunk/carbon
$ cd carbon
$ mvn clean install -Dmaven.test.skip=true
$ cd ..
$ svn co http://svn.wso2.org/repos/wso2/trunk/carbon-components
$ mvn clean install -Dmaven.test.skip=true
</pre>
<p>All righty! After this you can go ahead and build other products which are designed on top of Carbon such as <a href="http://wso2.org/wsas">WSO2 WSAS</a>, <a href="http://wso2.org/esb">WSO2 ESB</a> etc...</p>
]]></content:encoded>
			<wfw:commentRss>http://engwar.com/post/110/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

