﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>语源科技BlogJava-关于彼此,我还在学习</title><link>http://www.blogjava.net/stingh711/</link><description /><language>zh-cn</language><lastBuildDate>Sat, 18 Apr 2026 11:13:00 GMT</lastBuildDate><pubDate>Sat, 18 Apr 2026 11:13:00 GMT</pubDate><ttl>60</ttl><item><title>看我的兄弟叫顺溜</title><link>http://www.blogjava.net/stingh711/archive/2009/07/09/286162.html</link><dc:creator>django</dc:creator><author>django</author><pubDate>Thu, 09 Jul 2009 14:37:00 GMT</pubDate><guid>http://www.blogjava.net/stingh711/archive/2009/07/09/286162.html</guid><wfw:comment>http://www.blogjava.net/stingh711/comments/286162.html</wfw:comment><comments>http://www.blogjava.net/stingh711/archive/2009/07/09/286162.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/stingh711/comments/commentRss/286162.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/stingh711/services/trackbacks/286162.html</trackback:ping><description><![CDATA[这电视剧挺火的，刚开始看看觉得还挺有意思的。不过慢慢觉得，暴力了点。<br />这样暴力的片子，基本上每个台都在放，里面那些杀人，还有强奸的镜头...小孩子看了会怎么样？<br />不知道为什么我们会把这些东西甚至当作教育片在放...之前的那些所谓为了孩子的东西，也只不过是个幌子吧..<br /><img src ="http://www.blogjava.net/stingh711/aggbug/286162.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/stingh711/" target="_blank">django</a> 2009-07-09 22:37 <a href="http://www.blogjava.net/stingh711/archive/2009/07/09/286162.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>开始装修了</title><link>http://www.blogjava.net/stingh711/archive/2009/03/16/260063.html</link><dc:creator>django</dc:creator><author>django</author><pubDate>Mon, 16 Mar 2009 09:48:00 GMT</pubDate><guid>http://www.blogjava.net/stingh711/archive/2009/03/16/260063.html</guid><wfw:comment>http://www.blogjava.net/stingh711/comments/260063.html</wfw:comment><comments>http://www.blogjava.net/stingh711/archive/2009/03/16/260063.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/stingh711/comments/commentRss/260063.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/stingh711/services/trackbacks/260063.html</trackback:ping><description><![CDATA[<p>房子拿到了快一年了，一直都没有装… 现在也老大不小了，该把房子弄弄，把婚结了…安定下来，也许对工作也会比较有利吧。</p> <p>不过在无锡，也没什么熟人比较懂的。只能靠做功课了。现在装修公司还没定，有同事找了中达，反应还不错。之前拿房的时候也是请中达的陈师傅来帮忙验房的。说起陈师傅，真是赞了。那天大老远的跑过来，技术也是没的说，还偷偷的告诉了我一些装房子的建议。所以这次我也直接给他打了电话，希望再多帮帮忙。(哈，我是不是太贪心了…)</p> <p>昨天上上团的论坛，看到了自行车老师讲报价单陷阱的帖子，很是受用。然后还加了他qq，把之前同事的那份传给他，帮忙审了一遍，又不厌其烦的给我讲里面的什么地方有问题，真是又专业又热心。等中达量完房子，可能还要麻烦沈老师一下..</p> <p>希望一切都顺利吧！</p><img src ="http://www.blogjava.net/stingh711/aggbug/260063.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/stingh711/" target="_blank">django</a> 2009-03-16 17:48 <a href="http://www.blogjava.net/stingh711/archive/2009/03/16/260063.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用rxvt登录cygwin</title><link>http://www.blogjava.net/stingh711/archive/2008/11/11/239830.html</link><dc:creator>django</dc:creator><author>django</author><pubDate>Tue, 11 Nov 2008 03:27:00 GMT</pubDate><guid>http://www.blogjava.net/stingh711/archive/2008/11/11/239830.html</guid><wfw:comment>http://www.blogjava.net/stingh711/comments/239830.html</wfw:comment><comments>http://www.blogjava.net/stingh711/archive/2008/11/11/239830.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/stingh711/comments/commentRss/239830.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/stingh711/services/trackbacks/239830.html</trackback:ping><description><![CDATA[<p>首先安装cygwin时,把rxvt装进去.如果没有装,再点一下setup.exe, 重新装进来就可以了.</p> <p>然后添加一个bat文件,加入以下的内容,就可以直接用rxvt登录cygwin了.</p> <div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4"> <div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">@echo off</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">c:\cygwin\bin\rxvt -e /bin/bash -login</pre></div></div>
<p>如果要修改配置rxvt,请参考linux下rxvt的配置.这个是最简单的.</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">! rxvt.font:          -*-lucidatypewriter-medium-*-*-*-14-*-*-*-*-*-*-*</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">! or...</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">rxvt.font:            Lucida Console-14</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">rxvt.boldFont:        Lucida Console-14</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">rxvt.scrollBar:       True</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">rxvt.visualBell:      True</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">rxvt.loginShell:      True</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">rxvt.background:      Black</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">rxvt.foreground:      White</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">rxvt.saveLines:       3000</pre></div></div><img src ="http://www.blogjava.net/stingh711/aggbug/239830.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/stingh711/" target="_blank">django</a> 2008-11-11 11:27 <a href="http://www.blogjava.net/stingh711/archive/2008/11/11/239830.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Use putty to connect cygwin</title><link>http://www.blogjava.net/stingh711/archive/2008/11/11/239824.html</link><dc:creator>django</dc:creator><author>django</author><pubDate>Tue, 11 Nov 2008 03:21:00 GMT</pubDate><guid>http://www.blogjava.net/stingh711/archive/2008/11/11/239824.html</guid><wfw:comment>http://www.blogjava.net/stingh711/comments/239824.html</wfw:comment><comments>http://www.blogjava.net/stingh711/archive/2008/11/11/239824.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/stingh711/comments/commentRss/239824.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/stingh711/services/trackbacks/239824.html</trackback:ping><description><![CDATA[<p>Cygwin default是使用dos做终端,实在是很难用.</p> <p>Putty是一个好用的telnet,ssh工具,它的终端比dos好用.直接用putty连cygwin还挺麻烦的,需要在cygwin上配ssh server. puttycyg是一个加强版的putty,用它可以直接连cygwin.</p> <p><a href="http://code.google.com/p/puttycyg/">Download</a>一个puttycyg下来,解压直接运行putty.exe, 在connection type里面选cygterm, command里面填-, port也填-,就可以登录cygwin了.</p> <p>可以把putty里面default的connection改成登录cygwin.然后添加一个cygwin的快捷方式,里面用puttycyg.exe -,就可以直接登录cygwin了.</p><img src ="http://www.blogjava.net/stingh711/aggbug/239824.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/stingh711/" target="_blank">django</a> 2008-11-11 11:21 <a href="http://www.blogjava.net/stingh711/archive/2008/11/11/239824.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>How to use jetty in maven?</title><link>http://www.blogjava.net/stingh711/archive/2008/10/28/237057.html</link><dc:creator>django</dc:creator><author>django</author><pubDate>Tue, 28 Oct 2008 03:42:00 GMT</pubDate><guid>http://www.blogjava.net/stingh711/archive/2008/10/28/237057.html</guid><wfw:comment>http://www.blogjava.net/stingh711/comments/237057.html</wfw:comment><comments>http://www.blogjava.net/stingh711/archive/2008/10/28/237057.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/stingh711/comments/commentRss/237057.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/stingh711/services/trackbacks/237057.html</trackback:ping><description><![CDATA[<ol> <li>Add jetty plugin group to setttings.xml</li> <div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4"> <div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff">&lt;</span><span style="color: #800000">settings</span><span style="color: #0000ff">&gt;</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">...</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">    <span style="color: #0000ff">&lt;</span><span style="color: #800000">pluginGroups</span><span style="color: #0000ff">&gt;</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        <span style="color: #0000ff">&lt;</span><span style="color: #800000">pluginGroup</span><span style="color: #0000ff">&gt;</span>org.mortbay.jetty<span style="color: #0000ff">&lt;/</span><span style="color: #800000">pluginGroup</span><span style="color: #0000ff">&gt;</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">    <span style="color: #0000ff">&lt;/</span><span style="color: #800000">pluginGroups</span><span style="color: #0000ff">&gt;</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">...</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff">&lt;/</span><span style="color: #800000">settings</span><span style="color: #0000ff">&gt;</span></pre></div></div>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>

<li>Run command mvn jetty:run 
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
</li></ol><img src ="http://www.blogjava.net/stingh711/aggbug/237057.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/stingh711/" target="_blank">django</a> 2008-10-28 11:42 <a href="http://www.blogjava.net/stingh711/archive/2008/10/28/237057.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Running your first spring OSGI bundle without eclipse</title><link>http://www.blogjava.net/stingh711/archive/2008/10/23/236170.html</link><dc:creator>django</dc:creator><author>django</author><pubDate>Thu, 23 Oct 2008 07:04:00 GMT</pubDate><guid>http://www.blogjava.net/stingh711/archive/2008/10/23/236170.html</guid><wfw:comment>http://www.blogjava.net/stingh711/comments/236170.html</wfw:comment><comments>http://www.blogjava.net/stingh711/archive/2008/10/23/236170.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/stingh711/comments/commentRss/236170.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/stingh711/services/trackbacks/236170.html</trackback:ping><description><![CDATA[<p>Preparation </p> <ol> <li>Download and install maven2.  <li>Download spring DM 1.1.2.  <li>Install spring DM archetype for maven.  <ul> <li>Open a cmd window in spring-osgi-1.1.2  <li>Run command: mvn -P equinox clean install. This step is used to install spring OSGI archetype. </li></ul> <li>Create spring DM project using maven:&nbsp; <div class="csharpcode"><pre class="alt">mvn archetype:create -DarchetypeGroupId=org.springframework.osgi -DarchetypeArtifactId=spring-osgi-bundle-archetype -DarchetypeVersion=1.1.2 -DgroupId=org.foo -DartifactId=org.foo.my-springdm-bundle -Dversion=0.1</pre></div>
<style type="text/css"><![cdata[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;</style>

<li>Add a class HelloService as following: <pre class="csharpcode">package org.foo;

<span class="kwrd">public</span><span class="kwrd">class</span> HelloService {
    <span class="kwrd">public</span><span class="kwrd">void</span> init() {
        System.<span class="kwrd">out</span>.println(<span class="str">"start"</span>);
    }
}</pre>
<style type="text/css"><![cdata[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;</style>

<li>Add bean declaration for HelloService to bundle-context.xml: <pre class="csharpcode"><span class="kwrd">&lt;?</span><span class="html">xml</span> <span class="attr">version</span><span class="kwrd">="1.0"</span> <span class="attr">encoding</span><span class="kwrd">="UTF-8"</span>?<span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">beans</span> <span class="attr">xmlns</span><span class="kwrd">="http://www.springframework.org/schema/beans"</span>
  <span class="attr">xmlns:xsi</span><span class="kwrd">="http://www.w3.org/2001/XMLSchema-instance"</span>
  <span class="attr">xsi:schemaLocation</span><span class="kwrd">="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"</span><span class="kwrd">&gt;</span>

  <span class="rem">&lt;!-- regular spring configuration file defining the beans for this</span>
<span class="rem">       bundle. The configuration of OSGi definitions is kept in a separate </span>
<span class="rem">       configuration file so that this file can easily be used</span>
<span class="rem">       for integration testing outside of an OSGi environment --&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">bean</span> <span class="attr">id</span><span class="kwrd">="helloService"</span> <span class="attr">class</span><span class="kwrd">="org.foo.HelloService"</span> <span class="attr">init-method</span><span class="kwrd">="init"</span><span class="kwrd">/&gt;</span>
<span class="kwrd">&lt;/</span><span class="html">beans</span><span class="kwrd">&gt;</span></pre>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>

<li>Edit pom.xml and modify imported package for the bundle: <pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">plugin</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">groupId</span><span class="kwrd">&gt;</span>org.apache.felix<span class="kwrd">&lt;/</span><span class="html">groupId</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">artifactId</span><span class="kwrd">&gt;</span>maven-bundle-plugin<span class="kwrd">&lt;/</span><span class="html">artifactId</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">extensions</span><span class="kwrd">&gt;</span>true<span class="kwrd">&lt;/</span><span class="html">extensions</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">version</span><span class="kwrd">&gt;</span>1.4.0<span class="kwrd">&lt;/</span><span class="html">version</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">configuration</span><span class="kwrd">&gt;</span>
        <span class="kwrd">&lt;</span><span class="html">manifestLocation</span><span class="kwrd">&gt;</span>META-INF<span class="kwrd">&lt;/</span><span class="html">manifestLocation</span><span class="kwrd">&gt;</span>
        <span class="kwrd">&lt;</span><span class="html">instructions</span><span class="kwrd">&gt;</span>
        <span class="kwrd">&lt;</span><span class="html">Export-Package</span><span class="kwrd">&gt;</span>
            !org.foo.internal,org.foo*
        <span class="kwrd">&lt;/</span><span class="html">Export-Package</span><span class="kwrd">&gt;</span>
        <span class="kwrd">&lt;</span><span class="html">Import-Package</span><span class="kwrd">&gt;</span>org.osgi.framework<span class="kwrd">&lt;/</span><span class="html">Import-Package</span><span class="kwrd">&gt;</span>
        <span class="kwrd">&lt;</span><span class="html">Include-Resource</span><span class="kwrd">&gt;</span>src/main/resources<span class="kwrd">&lt;/</span><span class="html">Include-Resource</span><span class="kwrd">&gt;</span>
        <span class="kwrd">&lt;/</span><span class="html">instructions</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;/</span><span class="html">configuration</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;/</span>plugin</pre>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>

<style type="text/css"><![cdata[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;</style>

<li>Create MANIFEST.MF and bundle using command: mvn package 
<li>If you want to run it in eclipse, please run mvn eclipse:eclipse to generate a eclipse plugin project and import it to your workspace, then run it as OSGI framework. Please refer to this article:<a title="http://www.javaworld.com/javaworld/jw-04-2008/jw-04-osgi2.html?page=1" href="http://www.javaworld.com/javaworld/jw-04-2008/jw-04-osgi2.html?page=1">http://www.javaworld.com/javaworld/jw-04-2008/jw-04-osgi2.html?page=1</a> 
<li>Start a OSGI container: java -jar org.osgi.framework.jar -console 
<li>Install the necessary bundle to OSGI container using the following commands in osgi console: <pre class="csharpcode">install file:/path/to/the/bundle
start file:/path/to/the/bundle</pre>
<style type="text/css"><![cdata[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;</style>

<li>You can find the bundles under spring-osgi-1.1.2/dist or libs. You need to install and active the following bundles: 
<ul>
<li>org.springframework.bundle.osgi.core_1.1.2.jar 
<li>org.springframework.bundle.osgi.extender_1.1.2.jar 
<li>org.springframework.bundle.osgi.io_1.1.2.jar 
<li>org.springframework.bundle.spring.core_2.5.5.jar 
<li>org.springframework.bundle.spring.context_2.5.5.jar 
<li>org.springframework.bundle.spring.beans_2.5.5.jar 
<li>org.springframework.bundle.spring.aop_2.5.5.jar 
<li>org.springframework.osgi.log4j.osgi_1.2.15.SNAPSHOT.jar 
<li>om.springsource.org.aopalliance_1.0.0.jar 
<li>com.springsource.slf4j.org.apache.commons.logging_1.5.0.jar 
<li>com.springsource.slf4j.api_1.5.0.jar 
<li>com.springsource.slf4j.log4j_1.5.0.jar </li></ul>
<li>Install and active your bundle under target folder using the same commands and you will see the output. 
<li>Use "ss" in OSGI console to list the installed bundles. </li></ol><img src ="http://www.blogjava.net/stingh711/aggbug/236170.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/stingh711/" target="_blank">django</a> 2008-10-23 15:04 <a href="http://www.blogjava.net/stingh711/archive/2008/10/23/236170.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>最近挺火的一首打油诗 -- 那一年，我们都没有钱</title><link>http://www.blogjava.net/stingh711/archive/2008/10/14/234225.html</link><dc:creator>django</dc:creator><author>django</author><pubDate>Tue, 14 Oct 2008 06:14:00 GMT</pubDate><guid>http://www.blogjava.net/stingh711/archive/2008/10/14/234225.html</guid><wfw:comment>http://www.blogjava.net/stingh711/comments/234225.html</wfw:comment><comments>http://www.blogjava.net/stingh711/archive/2008/10/14/234225.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/stingh711/comments/commentRss/234225.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/stingh711/services/trackbacks/234225.html</trackback:ping><description><![CDATA[<p>不知道从什么时候开始穿阿迪.耐克.  <p>也忘记了什么时候开始用香水.唇膏.  <p>以前的冷狗现在叫鲜奶提子.  <p>以前的三色杯现在不知所踪.  <p>你为什么会痴迷于打勾的东西.  <p>你又为什么想要一身产品牌子.  <p>在然后你会知道prada和Gucci.  <p>然后会用LV的包穿amani的衣服.  <p>直到你死去的那天.  <p>当你最后微笑着看着你身边哭泣的人们  <p>然后慢慢回想起自己的过去.  <p>你的回忆里.  <p>是不是会充满这些牌子.牌子.牌子.  <p>还是会想起那一年.我们都没有钱的时候  <p>我们穿着简单但是干净的衣服.  <p>略带皱褶但是整洁的鞋子.  <p>斜跨的单肩书包  <p>在上学和放学的路上把单车骑的飞快  <p>听风在耳边呼啸而过的声音  <p>会在上课时偷偷的传纸条，那时我们没有手机这样的通讯工具  <p>他用蓝色的笔，你用红色的笔，说的话题无关紧要  <p>最壮观的传条是从教室的一个角落到对角线的另一个角落  <p>会在每天做操的时候  <p>踮起脚尖搜寻某个让自己魂牵梦萦的背影.  <p>然后在错身而过的瞬间  <p>假装和朋友在专注的讨论某件事  <p>然后眼角偷偷瞄着他今天是否穿了那件你最喜欢的T恤  <p>清晨的早读前，他走过来想借一本代数作业抄  <p>你仔细的找啊找，然后递给他自己的  <p>却在反复揣测并懊恼昨晚怎么把字又写的潦草  <p>会在早上进门的时候短暂的停留.  <p>不过就是为了能看见某个下一秒会出现在楼梯口的身影.  <p>又或者是系一系根本没松的鞋带.  <p>理一理没有被风吹乱的头发.  <p>趾高气扬的留下一个仓皇的背影.  <p>青春的脸上从来不用过多的粉饰  <p>可伶可俐的洗面奶永远散发淡雅的花果香  <p>你不知道什么叫裸妆，粉底要分几层打  <p>最爱在周日的傍晚洗完头站在阳台，让自然风吹干浓密的头发  <p>你没有齐刘海，挑染，陶瓷烫，头发却出奇的柔顺  <p>当课间的时候，你总是拉着女伴在走廊上来来回回的走  <p>只为路过隔壁班那一瞬，看看他在和同学打闹抑或发呆  <p>然后你心满意足的走回教室，轻轻叹口气，自顾自的笑着  <p>买了好多好多漂亮的信纸，写一些风花雪月的故事  <p>然后彼此交换着写着自己的感想  <p>没有偶像剧盛行的日子，我们用自己的心情和想象书写自己的向往  <p>那一年.当我们没有钱的时候.  <p>每天只是幻想着某天长大了以后  <p>背着和身体差不多大的旅行包.  <p>带着心中的那个人.  <p>走遍这个世界的每一个角落.  <p>那一年.我们还都没有钱.  <p>可是在许多年后.  <p>当我们开始注意到周围的人  <p>他们背着LEVI`S的.REEBOK的书包.  <p>穿G-STAR的衣服  <p>浓重的睫毛膏掩饰了眼睛里最初的清澈  <p>黑色的隐形眼镜遮挡了眼睛里闪烁的光彩  <p>出没在星巴克或者哈根达斯.  <p>周末的时候不是去打球而是去逛街.  <p>拿到衣服的第一反应不是适不适合  <p>而是看看是什么牌子.  <p>会在手上挂满乱七八糟的丁丁坠坠.  <p>他们不再用激情洋溢到哀伤的情书去诉说一段感情.  <p>甚至他们会不断追求不同的女孩子去寻求刺激.  <p>然后在人群中大谈如何如何.  <p>去换取近乎嘲笑的惊叹.  <p>对DUNK了若指掌却不知道宫保鸡丁的做法  <p>常常换着不同的发型然后假装自己很低调.  <p>又或者打电话的时候故意说些其实和自己无瓜葛的经济现象  <p>然后再很正经的说SUPER-STAR黑灰版式多么好看.  <p>心中的女孩子开始划出价格.  <p>然后送名贵的香水和戒指.  <p>爱情在这个年龄被商品化.  <p>或者.  <p>商品被爱情化.  <p>男孩子开始游弋于众多女孩子之间.  <p>这样.  <p>人们会称之为.  <p>成熟.  <p>这样的成熟，不是我们想要  <p>这样的成熟，只是用物质来包裹  <p>若当真如此.  <p>我情愿回到那一年.当我们都没有钱的时候  <p>我们都没说那遥远的曾经  <p>我们也没提故事的原因  <p>青春的复刻回忆像一片云  <p>没法子抓在手里  <p>午后的闷热的窗外的一场大雨  <p>让我们看见了以前的自己  <p>把时光倒转回到那一季  <p>窗外的树 爱哭的风  <p>烦恼的我 聪明的你 <p>&nbsp;</p> <p>看了居然有一点想哭...</p> <p>在我们慢慢“有”了钱的时候，再也找不到那些纯真了。</p><img src ="http://www.blogjava.net/stingh711/aggbug/234225.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/stingh711/" target="_blank">django</a> 2008-10-14 14:14 <a href="http://www.blogjava.net/stingh711/archive/2008/10/14/234225.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>医院真黑...</title><link>http://www.blogjava.net/stingh711/archive/2008/09/27/231517.html</link><dc:creator>django</dc:creator><author>django</author><pubDate>Sat, 27 Sep 2008 07:41:00 GMT</pubDate><guid>http://www.blogjava.net/stingh711/archive/2008/09/27/231517.html</guid><wfw:comment>http://www.blogjava.net/stingh711/comments/231517.html</wfw:comment><comments>http://www.blogjava.net/stingh711/archive/2008/09/27/231517.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/stingh711/comments/commentRss/231517.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/stingh711/services/trackbacks/231517.html</trackback:ping><description><![CDATA[<p>有点发烧，咳嗽，去医院。一开始的医生说就是感冒，然后要验血。验完血原来那个医生不在，就换了一个，然后诊断为急性支气管炎...也没搞懂这个结果是怎么一下就跑出来的...</p> <p>开了点消炎药，止咳药，就是两百多...今年陪女朋友看了两次感冒，自己去一次，没有一次低于两百块的...</p> <p>而且医生看病跟流水线似的...想想，还是资本主义好...</p><img src ="http://www.blogjava.net/stingh711/aggbug/231517.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/stingh711/" target="_blank">django</a> 2008-09-27 15:41 <a href="http://www.blogjava.net/stingh711/archive/2008/09/27/231517.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>奥运随感（1）..</title><link>http://www.blogjava.net/stingh711/archive/2008/08/17/222641.html</link><dc:creator>django</dc:creator><author>django</author><pubDate>Sun, 17 Aug 2008 14:56:00 GMT</pubDate><guid>http://www.blogjava.net/stingh711/archive/2008/08/17/222641.html</guid><wfw:comment>http://www.blogjava.net/stingh711/comments/222641.html</wfw:comment><comments>http://www.blogjava.net/stingh711/archive/2008/08/17/222641.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/stingh711/comments/commentRss/222641.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/stingh711/services/trackbacks/222641.html</trackback:ping><description><![CDATA[<p>今年还是蛮nb的，到今天就已经拿了35块...</p> <p>举重最nb，看举重还是蛮解气的。当然了，唯一拿到银牌的兄弟估计要郁闷了...</p> <p>射击美国的那个哥们...估计这辈子都有心理阴影了。每次都是最后一枪..绝对是卧底啊..不如中国也给人家发点奖金好了..</p> <p>羽毛球..一个积极的林丹绝对是世界第一。这场比赛，林丹有很多次积极上网，还用不到他的杀球就已经快搞定了，打的李猴子那是满地找牙啊..说起发飙，乒乓球女团决赛，张怡宁被李佳薇赢了一局，就开始发飙了..打的大家都只能摇头了..</p> <p>篮球，说刘伟和易建联sb吧，打西班牙第4节，真的是比sb还sb；但是关键时刻，易建联还能立功...陈江华真的是非常粘球，24秒在他手上要耗掉一大半..感觉中国的3控位，上身力量差太远了，上身力量强，也不会怕人家紧逼，用屁股拱就好了。</p><img src ="http://www.blogjava.net/stingh711/aggbug/222641.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/stingh711/" target="_blank">django</a> 2008-08-17 22:56 <a href="http://www.blogjava.net/stingh711/archive/2008/08/17/222641.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>介绍一篇好贴</title><link>http://www.blogjava.net/stingh711/archive/2008/08/12/221419.html</link><dc:creator>django</dc:creator><author>django</author><pubDate>Tue, 12 Aug 2008 01:36:00 GMT</pubDate><guid>http://www.blogjava.net/stingh711/archive/2008/08/12/221419.html</guid><wfw:comment>http://www.blogjava.net/stingh711/comments/221419.html</wfw:comment><comments>http://www.blogjava.net/stingh711/archive/2008/08/12/221419.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/stingh711/comments/commentRss/221419.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/stingh711/services/trackbacks/221419.html</trackback:ping><description><![CDATA[<p><a title="http://www.marcandangel.com/2008/06/02/50-things-everyone-should-know-how-to-do/#comment-183407" href="http://www.marcandangel.com/2008/06/02/50-things-everyone-should-know-how-to-do/#comment-183407">http://www.marcandangel.com/2008/06/02/50-things-everyone-should-know-how-to-do/#comment-183407</a></p> <p>英文的，里面介绍了如何做50件事情，从生火，做饭到管理时间，学外语，面试，到怎样抱孩子... 150个有用的链接，足够学习好久。</p><img src ="http://www.blogjava.net/stingh711/aggbug/221419.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/stingh711/" target="_blank">django</a> 2008-08-12 09:36 <a href="http://www.blogjava.net/stingh711/archive/2008/08/12/221419.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>