<?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>Giovanni Marigi&#039;s disordered tech notes</title>
	<atom:link href="http://hifly81.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hifly81.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 03 Aug 2011 12:48:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hifly81.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Giovanni Marigi&#039;s disordered tech notes</title>
		<link>http://hifly81.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hifly81.wordpress.com/osd.xml" title="Giovanni Marigi&#039;s disordered tech notes" />
	<atom:link rel='hub' href='http://hifly81.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Remove old kernels from Fedora</title>
		<link>http://hifly81.wordpress.com/2011/07/09/remove-old-kernels-from-fedora/</link>
		<comments>http://hifly81.wordpress.com/2011/07/09/remove-old-kernels-from-fedora/#comments</comments>
		<pubDate>Sat, 09 Jul 2011 10:29:12 +0000</pubDate>
		<dc:creator>hifly81</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fedora kernel linux boot yum preupgrade]]></category>

		<guid isPermaLink="false">http://hifly81.wordpress.com/?p=198</guid>
		<description><![CDATA[The /boot partition in Fedora releases is by default sized at 500MB (new releases) This will be very soon a problem that will cause a failure when updating your system with new packages (via yum update) or when you would like to upgrade to a new Fedora version (via preupgrade). Usually the /boot partition is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=198&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The /boot partition in Fedora releases is by default sized at 500MB (new releases)<br />
This will be very soon a problem that will cause a failure when updating your system with new packages (via yum update) or when you would like to upgrade to a new Fedora version (via preupgrade).<br />
Usually the /boot partition is filled up by several kernels you still have on your system and you will never boot again.<br />
To get size from the /boot partition the easiest way is to delete the old kernels; to do this run this command:<br />
su -c &#8216;package-cleanup &#8211;oldkernels&#8217;<br />
At prompt confirm the kernels you would like to delete.</p>
<p>Check the new size of your /boot with du -h /boot</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hifly81.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hifly81.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hifly81.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hifly81.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hifly81.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hifly81.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hifly81.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hifly81.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hifly81.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hifly81.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hifly81.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hifly81.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hifly81.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hifly81.wordpress.com/198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=198&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hifly81.wordpress.com/2011/07/09/remove-old-kernels-from-fedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d368a0f5f38d817d1724bbe24860e070?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hifly81</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux Glade PyGTK &#8211; Codemotion 2011</title>
		<link>http://hifly81.wordpress.com/2011/03/06/linux-glade-pygtk-codemotion-2011/</link>
		<comments>http://hifly81.wordpress.com/2011/03/06/linux-glade-pygtk-codemotion-2011/#comments</comments>
		<pubDate>Sun, 06 Mar 2011 12:52:07 +0000</pubDate>
		<dc:creator>hifly81</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[codemotion]]></category>
		<category><![CDATA[glade]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gtk+]]></category>
		<category><![CDATA[pygtk]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://hifly81.wordpress.com/?p=194</guid>
		<description><![CDATA[Here you can find the slides of my talk presented at last codemotion 2011 Linux Gui Programming con Glade e PyGTK<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=194&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here you can find the slides of my talk presented at last codemotion 2011<br />
<a href="http://www.slideshare.net/hifly81">Linux Gui Programming con Glade e PyGTK</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hifly81.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hifly81.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hifly81.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hifly81.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hifly81.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hifly81.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hifly81.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hifly81.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hifly81.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hifly81.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hifly81.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hifly81.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hifly81.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hifly81.wordpress.com/194/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=194&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hifly81.wordpress.com/2011/03/06/linux-glade-pygtk-codemotion-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d368a0f5f38d817d1724bbe24860e070?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hifly81</media:title>
		</media:content>
	</item>
		<item>
		<title>JBoss ESB list of resources and links</title>
		<link>http://hifly81.wordpress.com/2011/01/30/jboss-esb-list-of-resources-and-links/</link>
		<comments>http://hifly81.wordpress.com/2011/01/30/jboss-esb-list-of-resources-and-links/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 23:30:46 +0000</pubDate>
		<dc:creator>hifly81</dc:creator>
				<category><![CDATA[jboss]]></category>
		<category><![CDATA[drools]]></category>
		<category><![CDATA[ejb]]></category>
		<category><![CDATA[esb]]></category>
		<category><![CDATA[jbossesb]]></category>
		<category><![CDATA[jbpm]]></category>
		<category><![CDATA[jta]]></category>
		<category><![CDATA[smooks]]></category>
		<category><![CDATA[soa]]></category>
		<category><![CDATA[webservice]]></category>

		<guid isPermaLink="false">http://hifly81.wordpress.com/?p=190</guid>
		<description><![CDATA[This is a short list of resources that I consider very informative on JBoss ESB JBoss ESB Forums http://community.jboss.org/en/jbossesb?view=discussions http://community.jboss.org/en/jbossesb/dev?view=discussions Simple examples of esb projects http://www.scribd.com/doc/33607804/JBoss-SOA-Platform-with-JBoss-Developer-Studio-Workshop Description of esb quickstarts examples http://community.jboss.org/wiki/JBossESBQuickStart All about webservices and esb http://jbossesb.blogspot.com/2009/11/proxying-soap-web-services-in-jbossesb.html How to use drools in esb http://java.dzone.com/articles/jbossesb-drools-integration?utm_source=am6_feedtweet&#38;utm_medium=twitter&#38;utm_campaign=toya256ForRSS Gateway and non gateway listeners http://community.jboss.org/thread/144694?tstart=450 ESB and jbpm integration [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=190&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a short list of resources that I consider very informative on JBoss ESB</p>
<p><strong>JBoss ESB Forums</strong><br />
<a href="http://community.jboss.org/en/jbossesb?view=discussions">http://community.jboss.org/en/jbossesb?view=discussions </a><br />
<a href="http://community.jboss.org/en/jbossesb/dev?view=discussions">http://community.jboss.org/en/jbossesb/dev?view=discussions </a></p>
<p><strong>Simple examples of esb projects</strong><br />
<a href="http://www.scribd.com/doc/33607804/JBoss-SOA-Platform-with-JBoss-Developer-Studio-Workshop">http://www.scribd.com/doc/33607804/JBoss-SOA-Platform-with-JBoss-Developer-Studio-Workshop</a></p>
<p><strong>Description of esb quickstarts examples</strong><br />
<a href="http://community.jboss.org/wiki/JBossESBQuickStart">http://community.jboss.org/wiki/JBossESBQuickStart</a></p>
<p><strong>All about webservices and esb</strong><br />
<a href="http://jbossesb.blogspot.com/2009/11/proxying-soap-web-services-in-jbossesb.html">http://jbossesb.blogspot.com/2009/11/proxying-soap-web-services-in-jbossesb.html </a><br />
<strong><br />
How to use drools in esb</strong><br />
<a href="http://java.dzone.com/articles/jbossesb-drools-integration?utm_source=am6_feedtweet&amp;utm_medium=twitter&amp;utm_campaign=toya256ForRSS">http://java.dzone.com/articles/jbossesb-drools-integration?utm_source=am6_feedtweet&amp;utm_medium=twitter&amp;utm_campaign=toya256ForRSS</a></p>
<p><strong>Gateway and non gateway listeners</strong><br />
<a href="http://community.jboss.org/thread/144694?tstart=450">http://community.jboss.org/thread/144694?tstart=450 </a></p>
<p><strong>ESB and jbpm integration</strong><br />
<a href="http://docs.redhat.com/docs/en-US/JBoss_Enterprise_SOA_Platform/5/html/ESB_Services_Guide/chap-jBPM_Integration.html">http://docs.redhat.com/docs/en-US/JBoss_Enterprise_SOA_Platform/5/html/ESB_Services_Guide/chap-jBPM_Integration.html</a><br />
<a href="http://www.bpm-guide.de/2008/06/12/jboss-jbpm-meets-esb/">http://www.bpm-guide.de/2008/06/12/jboss-jbpm-meets-esb/ </a><br />
<strong><br />
Service orchestration in jbpm processes</strong><br />
<a href="http://www.mastertheboss.com/soa-a-esb/120-esb-service-orchestration-with-jbpm.html">http://www.mastertheboss.com/soa-a-esb/120-esb-service-orchestration-with-jbpm.html</a></p>
<p><strong>Convert a esb project in a maven project</strong><br />
<a href="http://community.jboss.org/wiki/JBossESBTrailblazerbuildingwithMaven2">http://community.jboss.org/wiki/JBossESBTrailblazerbuildingwithMaven2 </a></p>
<p><strong>How to pass dto from an esb service to a jbpm process</strong><br />
<a href="http://community.jboss.org/thread/160744">http://community.jboss.org/thread/160744</a></p>
<p><strong>How to start jbpm process in esb</strong><br />
<a href="http://community.jboss.org/thread/154395">http://community.jboss.org/thread/154395</a>   </p>
<p><strong>Synchronous comunication ws-esb</strong><br />
<a href="http://community.jboss.org/thread/155790">http://community.jboss.org/thread/155790</a></p>
<p><strong>How to implement a message splitter service in jboss esb</strong><br />
<a href="http://code.google.com/p/breakingwoods/wiki/JBoss_ESB_Splitter">http://code.google.com/p/breakingwoods/wiki/JBoss_ESB_Splitter </a><br />
<strong><br />
All about redelivery of messages and jta transactions</strong><br />
<a href="http://soa.dzone.com/articles/jms-transactions-soa-platform">http://soa.dzone.com/articles/jms-transactions-soa-platform</a></p>
<p><strong>ESB and EJB in transaction</strong><br />
<a href="http://community.jboss.org/thread/161696?tstart=0">http://community.jboss.org/thread/161696?tstart=0 </a></p>
<p><strong>How to access to beans created in smooks in esb services</strong><br />
<a href="http://community.jboss.org/thread/147985">http://community.jboss.org/thread/147985</a></p>
<p><strong>Send a http response from a esb service</strong><br />
<a href="http://community.jboss.org/thread/151671">http://community.jboss.org/thread/151671 </a></p>
<p><strong>How to set global variables in esb</strong><br />
<a href="http://community.jboss.org/thread/153529?tstart=180">http://community.jboss.org/thread/153529?tstart=180 </a></p>
<p><strong>A sqlprocessor action example</strong><br />
<a href="http://community.jboss.org/thread/154702?tstart=210">http://community.jboss.org/thread/154702?tstart=210 </a><br />
<strong><br />
How to use static routers</strong><br />
<a href="http://community.jboss.org/thread/144694?tstart=450">http://community.jboss.org/thread/144694?tstart=450 </a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hifly81.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hifly81.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hifly81.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hifly81.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hifly81.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hifly81.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hifly81.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hifly81.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hifly81.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hifly81.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hifly81.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hifly81.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hifly81.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hifly81.wordpress.com/190/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=190&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hifly81.wordpress.com/2011/01/30/jboss-esb-list-of-resources-and-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d368a0f5f38d817d1724bbe24860e070?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hifly81</media:title>
		</media:content>
	</item>
		<item>
		<title>A life ago I was speaker at hackmeeting!</title>
		<link>http://hifly81.wordpress.com/2011/01/18/a-life-ago-i-was-speaker-at-hackmeeting/</link>
		<comments>http://hifly81.wordpress.com/2011/01/18/a-life-ago-i-was-speaker-at-hackmeeting/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 23:52:13 +0000</pubDate>
		<dc:creator>hifly81</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[jaas]]></category>
		<category><![CDATA[jce]]></category>
		<category><![CDATA[jsse]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://hifly81.wordpress.com/?p=178</guid>
		<description><![CDATA[It seems an entire life passed since I was at 2005 Hackmeeting as speaker! My talk wasn&#8217;t so bad http://www.slideshare.net/hifly81/java-security http://www.hackmeeting.org/hackit05/seminari.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=178&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It seems an entire life passed since I was at 2005 Hackmeeting as speaker!<br />
My talk wasn&#8217;t so bad <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
<a href="http://www.hackmeeting.org/hackit05/seminari.html"><a href="http://www.slideshare.net/hifly81/java-security">http://www.slideshare.net/hifly81/java-security</a><br />
<a href="http://www.hackmeeting.org/hackit05/seminari.html">http://www.hackmeeting.org/hackit05/seminari.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hifly81.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hifly81.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hifly81.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hifly81.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hifly81.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hifly81.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hifly81.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hifly81.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hifly81.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hifly81.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hifly81.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hifly81.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hifly81.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hifly81.wordpress.com/178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=178&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hifly81.wordpress.com/2011/01/18/a-life-ago-i-was-speaker-at-hackmeeting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d368a0f5f38d817d1724bbe24860e070?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hifly81</media:title>
		</media:content>
	</item>
		<item>
		<title>SFTP client in Java</title>
		<link>http://hifly81.wordpress.com/2011/01/17/sftp-client-in-java/</link>
		<comments>http://hifly81.wordpress.com/2011/01/17/sftp-client-in-java/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 07:47:32 +0000</pubDate>
		<dc:creator>hifly81</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Methodology]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshtools]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://hifly81.wordpress.com/?p=171</guid>
		<description><![CDATA[Building a SFTP client in Java is a easy task thanks to a smart library called SSHTools. The library provides all the necessary to wrap ssh functions in your java code; it seems that the library is not maintened anymore&#8230; anyway like wine, good code always works fine To download the library: http://sourceforge.net/projects/sshtools To have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=171&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Building a SFTP client in Java is a easy task thanks to a smart library called SSHTools.<br />
The library provides all the necessary to wrap ssh functions in your java code; it seems that the library is not maintened anymore&#8230; anyway like wine, good code always works fine <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
To download the library:<br />
<a href="http://sourceforge.net/projects/sshtools">http://sourceforge.net/projects/sshtools</a><br />
To have a look at the project that substitutes SSHTools (it seems not free):<br />
<a href="http://www.sshtools.com/en/j2ssh-maverick">http://www.sshtools.com/en/j2ssh-maverick</a></p>
<p>Let&#8217;s have a look at a simple SFTP client to transfer text file to a remote destination&#8230;</p>
<p><pre class="brush: java;">
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;

import com.sshtools.j2ssh.SftpClient;
import com.sshtools.j2ssh.SshClient;
import com.sshtools.j2ssh.authentication.AuthenticationProtocolState;
import com.sshtools.j2ssh.authentication.PasswordAuthenticationClient;
import com.sshtools.j2ssh.transport.IgnoreHostKeyVerification;

public class SSHToolsFactory {
    private static SSHToolsFactory DEFAULT_FACTORY = null;
    private  SshClient sshClient = new SshClient();
    private  SSHToolsFactory() {}
    
    public synchronized static SSHToolsFactory getDefaultFactory() {
        if (DEFAULT_FACTORY == null)
        DEFAULT_FACTORY = new SSHToolsFactory();
        return DEFAULT_FACTORY;
    }
    
    private  synchronized void connect(
    String remoteHost,int remotePort,String username,String password) throws Exception {
        sshClient.connect(remoteHost,remotePort,
        new IgnoreHostKeyVerification());
        
        PasswordAuthenticationClient passwordAuthenticationClient =
        new PasswordAuthenticationClient();
        passwordAuthenticationClient.setUsername(username);
        passwordAuthenticationClient.setPassword(password);
        int result = sshClient.authenticate(passwordAuthenticationClient);
        if(result != AuthenticationProtocolState.COMPLETE) {
            throw new Exception(&quot;SSH auth failed!&quot;);
        }
    }
    
    public  synchronized void sftpPut(
    StringBuffer sb,String remoteDir,String filename) throws Exception {
        if(!sshClient.isConnected()) {
            throw new Exception(&quot;SSH not estabilished!&quot;);;
        }
        //Get an outputstream from a text buffer
        ByteArrayOutputStream os =new ByteArrayOutputStream();
        os.write(sb.toString().getBytes());
        
        //open an input stream from an output stream
        ByteArrayInputStream in =
        new  ByteArrayInputStream(os.toByteArray());
        
        SftpClient sftpClient = sshClient.openSftpClient();
        sftpClient.put(in,remoteDir+filename);
        
        sftpClient.quit();
        sshClient.disconnect();
        
        os.close();
        in.close();
    }
}
</pre></p>
<p>Just a note: a IgnoreHostKeyVerification() doesn&#8217;t prompt the user to verify the key sent by the ssh server, anyway You are free to use other key verification classes. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hifly81.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hifly81.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hifly81.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hifly81.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hifly81.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hifly81.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hifly81.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hifly81.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hifly81.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hifly81.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hifly81.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hifly81.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hifly81.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hifly81.wordpress.com/171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=171&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hifly81.wordpress.com/2011/01/17/sftp-client-in-java/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d368a0f5f38d817d1724bbe24860e070?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hifly81</media:title>
		</media:content>
	</item>
		<item>
		<title>Codemotion 2011</title>
		<link>http://hifly81.wordpress.com/2011/01/04/codemotion-2011/</link>
		<comments>http://hifly81.wordpress.com/2011/01/04/codemotion-2011/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 12:05:33 +0000</pubDate>
		<dc:creator>hifly81</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Methodology]]></category>
		<category><![CDATA[Object Oriented Principles]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jee]]></category>
		<category><![CDATA[jse]]></category>

		<guid isPermaLink="false">http://hifly81.wordpress.com/?p=167</guid>
		<description><![CDATA[Il Javaday cambia e diviene Codemotion Per quattro anni il Javaday Roma ha offerto un evento unico in Italia per contenuti, affluenza e spirito. L’atmosfera trascinante del Javaday ha saputo conquistare e coinvolgere i partecipanti e gli sponsor. Per continuare ad essere la manifestazione di riferimento degli sviluppatori, il Javaday si evolve e diviene Codemotion. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=167&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Il Javaday cambia e diviene Codemotion</p>
<p>Per quattro anni il Javaday Roma ha offerto un evento unico in Italia per contenuti, affluenza e spirito. L’atmosfera trascinante del Javaday ha saputo conquistare e coinvolgere i partecipanti e gli sponsor. Per continuare ad essere la manifestazione di riferimento degli sviluppatori, il  Javaday si evolve e diviene Codemotion.</p>
<p>Codemotion compie un grande salto rispetto al Javaday: apre a tutti i linguaggi e tecnologie, catalizzando ancora di più sorgenti di creatività e opportunità di lavoro. Infine, sposta l&#8217;attenzione da un prodotto (Java, a suo tempo di Sun, ora di Oracle) ad una disciplina: la programmazione, a vantaggio di tutti.</p>
<p>Il Codemotion si terrà a Roma il 5 marzo 2011.<br />
L’ingresso all’evento è come sempre gratuito.<br />
Per ogni informazione: http://www.codemotion.it<br />
Che cos&#8217;è Codemotion</p>
<p>Il programma di Codemotion verrà definito tramite Call for Paper pubblica e aperta a tutti. La selezione delle proposte avverrà mediate una valutazione a cura dei rappresentanti delle community ufficiali, sia legate ai diversi linguaggi che allo sviluppo del software.</p>
<p>Durante Codemotion si potrà consegnare alle aziende Sponsor il proprio curriculum vitae per avere nuove opportunità professionali. </p>
<p>L’agenda della giornata prevede una intensa mattina di talk tecnici e un pomeriggio dove verranno organizzate sessioni di Ignite.</p>
<p>E’ in fase di definizione un concorso per premiare le migliori idee innovative sviluppate da giovani studenti Universitari di tutta Italia.</p>
<p>L’ingresso al Codemotion è come sempre gratuito.<br />
Per ogni informazione: http://www.codemotion.it<br />
Contribuire al programma del Codemotion</p>
<p>Fino al 18 gennaio 2011 sarà possibile inviare le proprie proposte di talk per partecipare al programma della prima edizione del Codemotion, l’evento aperto a tutti i linguaggi e tecnologie.</p>
<p>La selezione delle proposte, pervenute tramite l’apposito modulo sul sito dell’evento, avverrà con una valutazione a cura dei rappresentanti delle community ufficiali italiane, legate ai diversi linguaggi e allo sviluppo del software, che collaborano con il Codemotion. Le proposte selezionate saranno rese pubbliche nel mese di febbraio e verranno inserite nel programma ufficiale del Codemotion.</p>
<p>Codemotion è l’evoluzione del Javaday Roma e si svolgerà nell’unica giornata di sabato 5 marzo 2011 a Roma.  Durante la manifestazione i partecipanti potranno prendere parte ad un’intensa mattinata di talk tecnici mentre nel pomeriggio sono previsti sessioni di presentazione di idee innovative e workshop tecnici. </p>
<p>Codemotion compie un grande salto rispetto al Javaday: apre a tutti i linguaggi e tecnologie, catalizzando ancora di più sorgenti di creatività e opportunità di lavoro. Infine, sposta l&#8217;attenzione da un prodotto ad una disciplina: la programmazione, a vantaggio di tutti.</p>
<p>L’ingresso all’evento è come sempre gratuito.<br />
Per ogni informazione: <a href="http://www.codemotion.it">http://www.codemotion.it</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hifly81.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hifly81.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hifly81.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hifly81.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hifly81.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hifly81.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hifly81.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hifly81.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hifly81.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hifly81.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hifly81.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hifly81.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hifly81.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hifly81.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=167&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hifly81.wordpress.com/2011/01/04/codemotion-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d368a0f5f38d817d1724bbe24860e070?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hifly81</media:title>
		</media:content>
	</item>
		<item>
		<title>Java to Android marshall/unmarshall java objects</title>
		<link>http://hifly81.wordpress.com/2010/12/15/java-to-android-marshallunmarshall-java-objects/</link>
		<comments>http://hifly81.wordpress.com/2010/12/15/java-to-android-marshallunmarshall-java-objects/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 13:59:57 +0000</pubDate>
		<dc:creator>hifly81</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[burlap]]></category>
		<category><![CDATA[gson]]></category>
		<category><![CDATA[hessian]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jee]]></category>
		<category><![CDATA[jse]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[marshall]]></category>
		<category><![CDATA[rmi]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://hifly81.wordpress.com/?p=138</guid>
		<description><![CDATA[Imagine you want to give access to your application even to android devices and (of course) you want to reuse the business logic exposed in a JEE application. Android doesn&#8217;t implement RMI or some APIs useful to call remote methods (hessian, burlap). The easiest way (maybe we will discuss performance issues of this approach in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=138&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Imagine you want to give access to your application even to android devices and (of course) you want to reuse the business logic exposed in a JEE application.<br />
Android doesn&#8217;t implement RMI or some APIs useful to call remote methods (hessian, burlap).<br />
The easiest way (maybe we will discuss performance issues of this approach in a new post) involves a transformation of the object you want to manage with Android in a json representation.<br />
An android client can parse directly a json stream or can obtain again the &#8220;server-side&#8221; object calling a transformation from json to java object.</p>
<p>A smart library as <strong>gson</strong> is everyting we need to achieve our goal<br />
<a href="http://code.google.com/p/google-gson">http://code.google.com/p/google-gson</a><br />
The same <strong>gson jar</strong> can be added to the jee application library path and to the android library path&#8230;</p>
<p>Let&#8217;s take a look to the &#8220;server side&#8221; code, a standard jee servlet:</p>
<p><pre class="brush: java;">
public class SimpleServlet extends HttpServlet {
    public void doGet(
    HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        //Suppose we have a DummyObject
        DummyObject dummy = new DummyObject();
        dummy.setDescription(&quot;I'm a server-side object&quot;);
        
        response.setContentType(&quot;text/html&quot;);
        Gson gson = new Gson();
        //Get a json representation from an object
        String jsonstring = gson.toJson(dummy);
        PrintWriter out = response.getWriter();
        out.print(jsonstring);
        out.flush();
        out.close();
    }
}
</pre></p>
<p>The core method gson.toJson is not limited only to simple pojo&#8217;s but can give a representation even for &#8220;fat&#8221; java objects (objs that contain other objs,objs with maps,list,&#8230;).</p>
<p>Working in an android activity all you need is a way to call the servlet and how to obtain the java object from a json source.</p>
<p>Let&#8217;s look at the code:<br />
<pre class="brush: java;">
public class SimpleActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        DummyObject dummy = runJSONParser();
        
        //Do something with your dummy obj
        .....
        .....
        .....
    }
    
    public DummyObject runJSONParser() {
        DummyObject dummy = null;
        try {
            Log.i(&quot;MY INFO&quot;, &quot;Json Parser started..&quot;);
            Gson gson = new Gson();
            Reader reader = new InputStreamReader(
            getJSONData(
            &quot;http://&lt;servlet_url&gt;&quot;));
            Log.i(&quot;MY INFO&quot;, reader.toString());
            dummy = gson.fromJson(reader, DummyObject.class);
            } catch(Exception ex){
            ex.printStackTrace();
        }
        return dummy;
    }
    
    public InputStream getJSONData(String url){
        DefaultHttpClient httpClient = new DefaultHttpClient();
        URI uri;
        InputStream data = null;
        try {
            uri = new URI(url);
            HttpGet method = new HttpGet(uri);
            HttpResponse response = httpClient.execute(method);
            data = response.getEntity().getContent();
            } catch (Exception e) {
            e.printStackTrace();
        }
        
        return data;
    }
}
</pre></p>
<p>A <strong>DefaultHttpClient</strong> is a class provided by Android for http connections (a servlet responds over http/https).<br />
gson.fromJson is the method from Gson library to obtain again the java object.<br />
Remember to include in android library path the .class files of &#8220;server-side&#8221; java objects.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hifly81.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hifly81.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hifly81.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hifly81.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hifly81.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hifly81.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hifly81.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hifly81.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hifly81.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hifly81.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hifly81.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hifly81.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hifly81.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hifly81.wordpress.com/138/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=138&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hifly81.wordpress.com/2010/12/15/java-to-android-marshallunmarshall-java-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d368a0f5f38d817d1724bbe24860e070?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hifly81</media:title>
		</media:content>
	</item>
		<item>
		<title>Show a jbpm process image</title>
		<link>http://hifly81.wordpress.com/2010/11/30/show-a-jbpm-process-image/</link>
		<comments>http://hifly81.wordpress.com/2010/11/30/show-a-jbpm-process-image/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 20:56:41 +0000</pubDate>
		<dc:creator>hifly81</dc:creator>
				<category><![CDATA[jboss]]></category>
		<category><![CDATA[bpm]]></category>
		<category><![CDATA[esb]]></category>
		<category><![CDATA[j2ee]]></category>
		<category><![CDATA[jbpm]]></category>
		<category><![CDATA[jee]]></category>
		<category><![CDATA[sca]]></category>
		<category><![CDATA[servlet]]></category>
		<category><![CDATA[soa]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://hifly81.wordpress.com/?p=131</guid>
		<description><![CDATA[It&#8217;s very easy to access to the process image attached to a jbpm process. In this example a simple servlet show the image getting the process definition through a request parameter (&#8220;definitionId&#8221;) and the name of the file image through another request parameter (&#8220;img&#8221;). This good thread from jboss.org forum explains in detail how to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=131&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s very easy to access to the process image attached to a jbpm process.<br />
In this example a simple servlet show the image getting the process definition through a request parameter (&#8220;definitionId&#8221;) and the name of the file image through another request parameter (&#8220;img&#8221;).</p>
<p>This good thread from jboss.org forum explains in detail how to create a custom bpm process visualizer:<br />
<a href="http://community.jboss.org/thread/115282">http://community.jboss.org/thread/115282</a></p>
<p><pre class="brush: java;">
import java.io.IOException;
import java.io.OutputStream;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.jbpm.JbpmConfiguration;
import org.jbpm.JbpmContext;
import org.jbpm.graph.def.ProcessDefinition;

public class ShowProcessImgServlet extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        long processDefinitionId = 
        Long.parseLong( request.getParameter( &quot;definitionId&quot; ) );
        JbpmContext jbpmContext = null;
        try{
            jbpmContext  = JbpmConfiguration.getInstance().createJbpmContext();
            ProcessDefinition processDefinition = jbpmContext.getGraphSession().loadProcessDefinition(processDefinitionId);
            byte[] bytes = processDefinition.getFileDefinition().getBytes(request.getParameter( &quot;img&quot; ));
            OutputStream out = response.getOutputStream();
            out.write(bytes);
            out.flush();
        }
        catch (Exception e) {
            e.printStackTrace();
        }
        finally {
            jbpmContext.close();
        }
   }
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hifly81.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hifly81.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hifly81.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hifly81.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hifly81.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hifly81.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hifly81.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hifly81.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hifly81.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hifly81.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hifly81.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hifly81.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hifly81.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hifly81.wordpress.com/131/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=131&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hifly81.wordpress.com/2010/11/30/show-a-jbpm-process-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d368a0f5f38d817d1724bbe24860e070?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hifly81</media:title>
		</media:content>
	</item>
		<item>
		<title>Interact with a Jbpm context from an external app</title>
		<link>http://hifly81.wordpress.com/2010/11/13/interact-with-a-jbpm-context-from-an-external-app/</link>
		<comments>http://hifly81.wordpress.com/2010/11/13/interact-with-a-jbpm-context-from-an-external-app/#comments</comments>
		<pubDate>Sat, 13 Nov 2010 12:16:02 +0000</pubDate>
		<dc:creator>hifly81</dc:creator>
				<category><![CDATA[jboss]]></category>
		<category><![CDATA[bpm]]></category>
		<category><![CDATA[esb]]></category>
		<category><![CDATA[j2ee]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jbpm]]></category>
		<category><![CDATA[jee]]></category>
		<category><![CDATA[soa]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://hifly81.wordpress.com/?p=106</guid>
		<description><![CDATA[If you&#8217;ve ever worked with jboss jbpm and with tasklists, you know that users of your app should never use the jbpm console to interact with task forms. Typically tasklist should be available inside user web app. What you need is a way to &#8220;connect&#8221; to an active jbpm context in order to control the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=106&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever worked with <strong>jboss jbpm</strong> and with <strong>tasklists</strong>, you know that users of your app should never use the jbpm console to interact with task forms.<br />
Typically tasklist should be available inside user web app.<br />
What you need is a way to &#8220;connect&#8221; to an active jbpm context in order to control the workflow.<br />
The code attached shows a method (you can wrap it in a servlet or wherever you want) that interact with the bpm context to manage process instances blocked in a task node. It works with jbpm 3.x (that at the moment is the version supported by <strong>jboss soa platform 5</strong>)<br />
I apologize for the indentation used to let work decent the wordpress code plugin <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>So let&#8217;s show us the code&#8230;</p>
<p><pre class="brush: java;">
public void manageBpmTasks() {
	JbpmContext context = null;
	try {
		//Get a jbpm context 
		context = JbpmConfiguration.getInstance().createJbpmContext();
		GraphSession session = context.getGraphSession();
		//Get all process deployed
		List&lt;ProcessDefinition&gt; processDefinitions = 
		(List&lt;ProcessDefinition&gt;)session.findAllProcessDefinitions();
		if(processDefinitions!=null &amp;&amp; !processDefinitions.isEmpty()) {
			for(ProcessDefinition process:processDefinitions) {
				//Get all process instances linked to a specific process
				List&lt;ProcessInstance&gt; processInstances = 
				(List&lt;ProcessInstance&gt; )
                                session.findProcessInstances(process.getId());
				if(processInstances!=null &amp;&amp; !processInstances.isEmpty()) {
					for(ProcessInstance instance:processInstances) {
						//Work only with running instances
						if(!instance.hasEnded()) {
							//Get all task inside the instance
							Collection taskInstances = 
							instance.getTaskMgmtInstance().getTaskInstances();     
							Iterator iter = 
							taskInstances.iterator();     
							while (iter.hasNext()) {      
								TaskInstance task = (TaskInstance)iter.next();  
								System.out.println(&quot;&quot;+
								&quot;Process Name:[&quot;+process.getName()+&quot;]\n&quot; +
								&quot;Instance:[&quot;+instance.getId()+&quot;]\n&quot; +
								&quot;Task Name[&quot;+task.getName()+&quot;]\n&quot; +
								&quot;Task creation time[&quot;+task.getCreate()+&quot;]&quot;);
								//If the task is noit started, start it!
								if(task.getStart()==null) {
									task.start();  
								}
								task.addComment(&quot;Tasksignaled outside bpm&quot;);
								System.out.println(&quot;Taskstart[&quot;+task.getStart()+&quot;]&quot;);
								//End the task and proceed to the next bpm node
								task.end();
								System.out.println(&quot;\nTaskend[&quot;+task.getEnd()+&quot;]&quot;);
							}
						}
					}
				}
			}
		}
	}
	catch(Exception ex) {
		ex.printStackTrace();
	}
	finally {
		//!!!IMPORTANT:Commit the operations done on process instance 
		context.close();
	}
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hifly81.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hifly81.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hifly81.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hifly81.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hifly81.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hifly81.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hifly81.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hifly81.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hifly81.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hifly81.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hifly81.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hifly81.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hifly81.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hifly81.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=106&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hifly81.wordpress.com/2010/11/13/interact-with-a-jbpm-context-from-an-external-app/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d368a0f5f38d817d1724bbe24860e070?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hifly81</media:title>
		</media:content>
	</item>
		<item>
		<title>Objects without behaviour</title>
		<link>http://hifly81.wordpress.com/2010/10/25/objects-without-behaviour/</link>
		<comments>http://hifly81.wordpress.com/2010/10/25/objects-without-behaviour/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 07:13:10 +0000</pubDate>
		<dc:creator>hifly81</dc:creator>
				<category><![CDATA[Methodology]]></category>
		<category><![CDATA[Object Oriented Principles]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[oo]]></category>
		<category><![CDATA[reuse]]></category>
		<category><![CDATA[uml]]></category>

		<guid isPermaLink="false">http://hifly81.wordpress.com/?p=102</guid>
		<description><![CDATA[This discussion is not focused on what is a pojo and the differences between pojo and javabean&#8230; If you want to be involved check: http://stackoverflow.com/questions/1612334/difference-between-dto-vo-pojo-javabeans But maybe during last years the discussion was too much focused on clarifying the differences between pojo,javabean,dto without real results. In java projects I&#8217;ve experienced a big proliferation of useless [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=102&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This discussion is not focused on what is a pojo and the differences between pojo and javabean&#8230;<br />
If you want to be involved check:<br />
<a href="http://stackoverflow.com/questions/1612334/difference-between-dto-vo-pojo-javabeans">http://stackoverflow.com/questions/1612334/difference-between-dto-vo-pojo-javabeans</a></p>
<p>But maybe during last years the discussion was too much focused on clarifying the differences between pojo,javabean,dto without real results.<br />
In java projects I&#8217;ve experienced a big proliferation of useless objects defined only with the purpose to expose getter and setter methods.<br />
But objects are artifacts with a state and <strong>behaviours</strong> and they must be used to capture domain facts inside your project.<br />
What is the domain information inside objects without behaviours? Of course there is no information!<br />
And the bad practices used in projects guided to a proliferation of Service objects with the aim to realize the behaviour not exposed by the objects&#8230;<br />
A business domain should be defined by first class objects not by services class. There is no chance to reuse or to extend a domain if it&#8217;s made by &#8220;weak&#8221; objects&#8230;</p>
<p>Maybe it&#8217;s better to forget the discussion about differences between pojo and javabean in favour of a &#8220;promotion&#8221; of weak objects in domain objects.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hifly81.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hifly81.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hifly81.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hifly81.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hifly81.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hifly81.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hifly81.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hifly81.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hifly81.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hifly81.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hifly81.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hifly81.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hifly81.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hifly81.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hifly81.wordpress.com&amp;blog=6381524&amp;post=102&amp;subd=hifly81&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hifly81.wordpress.com/2010/10/25/objects-without-behaviour/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d368a0f5f38d817d1724bbe24860e070?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hifly81</media:title>
		</media:content>
	</item>
	</channel>
</rss>
