<?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>Just feel my simple life... &#187; Java</title>
	<atom:link href="http://youjf.com/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://youjf.com</link>
	<description>Just feel my simple life...</description>
	<lastBuildDate>Mon, 28 Jun 2010 07:55:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WebOS Java service 研究</title>
		<link>http://youjf.com/2010/01/05/webos-java-service-%e7%a0%94%e7%a9%b6/</link>
		<comments>http://youjf.com/2010/01/05/webos-java-service-%e7%a0%94%e7%a9%b6/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 12:59:12 +0000</pubDate>
		<dc:creator>Jeffery</dc:creator>
				<category><![CDATA[我的日记]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Palm Pre]]></category>
		<category><![CDATA[WebOS]]></category>

		<guid isPermaLink="false">http://youjf.com/?p=224</guid>
		<description><![CDATA[以Internalz的服务ca.canucksoftware.filemgr为例 service 安装路径: /usr/lib/luna/java/FileMgr.jar D-BUS配置文件 /usr/share/dbus-1/system-services/ca.canucksoftware.filemgr.service D-BUS配置文件内容 [D-BUS Service] Name=ca.canucksoftware.filemgr Exec=/usr/bin/luna-helper &#8216;luna://com.palm.vm/launch&#8217; &#8216;{&#8220;serviceName&#8221;:&#8221;ca.canucksoftware.filemgr&#8221;,&#8221;className&#8221;:&#8221;ca.canucksoftware.FileMgr&#8221;}&#8217; 自动启动脚本: /etc/event.d/ca.canucksoftware.filemgr 启动脚本内容: description &#8220;FileMgr Service&#8221; start on started java-serviceboot script sleep 10 returnTrue=0 tries=0 while [ $returnTrue -eq 0 -a $tries -le 20 ] do returnVal=$(luna-send -n 1 luna://ca.canucksoftware.filemgr/status &#8216;{}&#8217; 2&#62;&#38;1) tries=`expr $tries + 1` if [ "$returnVal" = "** Message: [...]]]></description>
			<content:encoded><![CDATA[<p>以Internalz的服务ca.canucksoftware.filemgr为例</p>
<p>service 安装路径:</p>
<blockquote><p>/usr/lib/luna/java/FileMgr.jar</p></blockquote>
<p>D-BUS配置文件</p>
<blockquote><p>/usr/share/dbus-1/system-services/ca.canucksoftware.filemgr.service</p></blockquote>
<p>D-BUS配置文件内容</p>
<blockquote><p>[D-BUS Service]<br />
Name=ca.canucksoftware.filemgr<br />
Exec=/usr/bin/luna-helper &#8216;luna://com.palm.vm/launch&#8217; &#8216;{&#8220;serviceName&#8221;:&#8221;ca.canucksoftware.filemgr&#8221;,&#8221;className&#8221;:&#8221;ca.canucksoftware.FileMgr&#8221;}&#8217;</p></blockquote>
<p>自动启动脚本:</p>
<blockquote><p>/etc/event.d/ca.canucksoftware.filemgr</p></blockquote>
<p>启动脚本内容:</p>
<blockquote><p>description &#8220;FileMgr Service&#8221;</p>
<p>start on started java-serviceboot</p>
<p>script<br />
sleep 10<br />
returnTrue=0<br />
tries=0<br />
while [ $returnTrue -eq 0 -a $tries -le 20 ]<br />
do<br />
returnVal=$(luna-send -n 1 luna://ca.canucksoftware.filemgr/status &#8216;{}&#8217; 2&gt;&amp;1)<br />
tries=`expr $tries + 1`<br />
if [ "$returnVal" = "** Message: serviceResponse Handling: 2, {\"returnValue\":true}" ]<br />
then<br />
returnTrue=1<br />
else<br />
sleep 10<br />
fi<br />
done<br />
end script</p>
<p>#respawn</p></blockquote>
<p>嗯, 好消息是, webos自带sqlite-jdbc驱动, 就不用担心它不支持了..</p>
]]></content:encoded>
			<wfw:commentRss>http://youjf.com/2010/01/05/webos-java-service-%e7%a0%94%e7%a9%b6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
