<?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>真好吃 &#187; Java</title>
	<atom:link href="http://tgic.me/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://tgic.me</link>
	<description>blog真的很好吃</description>
	<lastBuildDate>Sun, 01 Jan 2012 17:31:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>屠龙的技能</title>
		<link>http://tgic.me/2011/06/05/%e5%b1%a0%e9%be%99%e7%9a%84%e6%8a%80%e8%83%bd/</link>
		<comments>http://tgic.me/2011/06/05/%e5%b1%a0%e9%be%99%e7%9a%84%e6%8a%80%e8%83%bd/#comments</comments>
		<pubDate>Sat, 04 Jun 2011 16:43:41 +0000</pubDate>
		<dc:creator>T.G.</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://tgic.me/?p=915</guid>
		<description><![CDATA[生产服务器 的 jvm 的 load 上周终于 高了…… 一台机器 表现 不正常 最幸福的 事情 就是 有屠龙的技能 也要找到 龙了 然后 就将学来 的 分析 jvm 寻找 load  高的技能 施展了一下 以前 用 木庄 练习 实在是没劲 实际再 生产机器 上 动手还是 有困难的 &#160; 笔记 thread dump 很多 文档 都说 kill -3 PID 其实 没啥不对 关键 当时比较 傻 将 std 打到 /dev/null 里边去了 [...]]]></description>
			<content:encoded><![CDATA[<p>生产服务器 的 jvm 的 load 上周终于 高了……<br />
一台机器 表现 不正常</p>
<p><strong><span style="color: #ff0000;">最幸福的 事情 就是 有屠龙的技能 也要找到 龙了</span></strong></p>
<p>然后 就将学来 的 分析 jvm 寻找 load  高的技能 施展了一下</p>
<p>以前 用 木庄 练习 实在是没劲</p>
<p>实际再 生产机器 上 动手还是 有困难的</p>
<p>&nbsp;</p>
<p><strong>笔记</strong></p>
<p>thread dump</p>
<p>很多 文档 都说 kill -3 PID</p>
<p>其实 没啥不对 关键 当时比较 傻 将 std 打到 /dev/null 里边去了</p>
<p>后来 发现 jstack (jdk自带) 比 kill -3 牛逼 多了</p>
<p>还能 force dump (pid 没响应了)</p>
<p>&nbsp;</p>
<p>拿到 thread dump 就是 top -H 了</p>
<p>第一次 弄 忘记了 -H 呵呵 不过 发现进程 少了 很快就发现了</p>
<p>&nbsp;</p>
<p>拿到 nid 转 16进制 然后 马上 就发现 bug 所在了</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>比老师 Bluedavy  在书中 就是 感谢 有关部门 提供 机会</p>
<p>实践想法 才得到 成长的</p>
<p>我 这里也感谢 有关部门 提供 支持</p>
<p>顺便 感谢 前几次 故障 内存漏了 句柄漏了 ……</p>
<p>机会留给有准备的 淫</p>
]]></content:encoded>
			<wfw:commentRss>http://tgic.me/2011/06/05/%e5%b1%a0%e9%be%99%e7%9a%84%e6%8a%80%e8%83%bd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JBoss 远程 Jndi 链接 数据源 ibatis 出异常的解决</title>
		<link>http://tgic.me/2011/05/15/jboss-%e8%bf%9c%e7%a8%8b-jndi-%e9%93%be%e6%8e%a5-%e6%95%b0%e6%8d%ae%e6%ba%90-ibatis-%e5%87%ba%e5%bc%82%e5%b8%b8%e7%9a%84%e8%a7%a3%e5%86%b3/</link>
		<comments>http://tgic.me/2011/05/15/jboss-%e8%bf%9c%e7%a8%8b-jndi-%e9%93%be%e6%8e%a5-%e6%95%b0%e6%8d%ae%e6%ba%90-ibatis-%e5%87%ba%e5%bc%82%e5%b8%b8%e7%9a%84%e8%a7%a3%e5%86%b3/#comments</comments>
		<pubDate>Sat, 14 May 2011 17:01:33 +0000</pubDate>
		<dc:creator>T.G.</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://tgic.me/?p=904</guid>
		<description><![CDATA[JBoss 数据源默认 JNDI 默认 是不能 跨VM 提供的 需要加一句&#60;use-java-context&#62;false&#60;/use-java-context&#62; &#160; 这样 创建的数据源 没啥问题 也可以用 但是 ibatis 使用就有问题 java.sql.SQLException does not return Serializable &#160; 这个 问题 我找到了 同样的描述就是 http://stackoverflow.com/questions/39053/accessing-datasource-from-outside-a-web-container-through-jndi &#160; 我没找到正确的解决方案 就用 jdk 的 Proxy 给 它打了 一个 补丁…… 然后 就艺了 &#160; 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687/** &#160;* @author jiaoyi 通过 JNDI 远程链接 JBoss 的数据源 会有问题 抛出 &#160;* &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>JBoss 数据源默认 JNDI 默认 是不能 跨VM 提供的</p>
<p>需要加一句&lt;use-java-context&gt;false&lt;/use-java-context&gt;</p>
<p>&nbsp;</p>
<p>这样 创建的数据源 没啥问题 也可以用 但是 ibatis 使用就有问题</p>
<p>java.sql.SQLException does not return Serializable</p>
<p>&nbsp;</p>
<p>这个 问题 我找到了 同样的描述就是</p>
<p><a href="http://stackoverflow.com/questions/39053/accessing-datasource-from-outside-a-web-container-through-jndi">http://stackoverflow.com/questions/39053/accessing-datasource-from-outside-a-web-container-through-jndi</a></p>
<p>&nbsp;</p>
<p>我没找到正确的解决方案 就用 jdk 的 Proxy 给 它打了 一个 补丁…… 然后 就艺了</p>
<p>&nbsp;</p>
<div class="codecolorer-container java default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br /></div></td><td><div class="java codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #008000; font-style: italic; font-weight: bold;">/**<br />
&nbsp;* @author jiaoyi 通过 JNDI 远程链接 JBoss 的数据源 会有问题 抛出<br />
&nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; java.lang.IllegalAccessException: Method=public abstract<br />
&nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; java.sql.Connection java.sql.Statement.getConnection() throws<br />
&nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; java.sql.SQLException does not return Serializable<br />
&nbsp;* <br />
&nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; 这个 家伙 通过hook 代码 将 原始的 Connection 返回给上层 解决这个问题<br />
&nbsp;* <br />
&nbsp;*/</span><br />
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> JndiDataSourceProxy <span style="color: #000000; font-weight: bold;">implements</span> FactoryBean <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aclassloader+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">ClassLoader</span></a> THIS_LOADER <span style="color: #339933;">=</span> JndiDataSourceProxy.<span style="color: #000000; font-weight: bold;">class</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #006633;">getClassLoader</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> jndiObject<span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setJndiObject<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> jndiObject<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">jndiObject</span> <span style="color: #339933;">=</span> jndiObject<span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">class</span> StatementHandler <span style="color: #000000; font-weight: bold;">implements</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ainvocationhandler+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">InvocationHandler</span></a> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> DataSource ds <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>DataSource<span style="color: #009900;">&#41;</span> jndiObject<span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> target<span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; StatementHandler<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> target<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">target</span> <span style="color: #339933;">=</span> target<span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> invoke<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> proxy, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amethod+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Method</span></a> method, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">throws</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Athrowable+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Throwable</span></a> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;getConnection&quot;</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span>method.<span style="color: #006633;">getName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> ds.<span style="color: #006633;">getConnection</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> method.<span style="color: #006633;">invoke</span><span style="color: #009900;">&#40;</span>target, args<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">class</span> ConnectionHandler <span style="color: #000000; font-weight: bold;">implements</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ainvocationhandler+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">InvocationHandler</span></a> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aconnection+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Connection</span></a> target<span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ConnectionHandler<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aconnection+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Connection</span></a> target<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">target</span> <span style="color: #339933;">=</span> target<span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> invoke<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> proxy, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amethod+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Method</span></a> method, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">throws</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Athrowable+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Throwable</span></a> <span style="color: #009900;">&#123;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;prepareStatement&quot;</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span>method.<span style="color: #006633;">getName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astatement+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Statement</span></a><span style="color: #009900;">&#41;</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aproxy+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Proxy</span></a>.<span style="color: #006633;">newProxyInstance</span><span style="color: #009900;">&#40;</span>THIS_LOADER,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000000; font-weight: bold;">Class</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#123;</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Apreparedstatement+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">PreparedStatement</span></a>.<span style="color: #000000; font-weight: bold;">class</span> <span style="color: #009900;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">new</span> StatementHandler<span style="color: #009900;">&#40;</span>method.<span style="color: #006633;">invoke</span><span style="color: #009900;">&#40;</span>target, args<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> method.<span style="color: #006633;">invoke</span><span style="color: #009900;">&#40;</span>target, args<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">class</span> DataSourceHandler <span style="color: #000000; font-weight: bold;">implements</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ainvocationhandler+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">InvocationHandler</span></a> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> DataSource ds <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>DataSource<span style="color: #009900;">&#41;</span> jndiObject<span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> invoke<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> proxy, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amethod+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Method</span></a> method, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">throws</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Athrowable+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Throwable</span></a> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;getConnection&quot;</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span>method.<span style="color: #006633;">getName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aconnection+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Connection</span></a><span style="color: #009900;">&#41;</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aproxy+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Proxy</span></a>.<span style="color: #006633;">newProxyInstance</span><span style="color: #009900;">&#40;</span>THIS_LOADER,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000000; font-weight: bold;">Class</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#123;</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aconnection+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Connection</span></a>.<span style="color: #000000; font-weight: bold;">class</span> <span style="color: #009900;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">new</span> ConnectionHandler<span style="color: #009900;">&#40;</span>ds.<span style="color: #006633;">getConnection</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> method.<span style="color: #006633;">invoke</span><span style="color: #009900;">&#40;</span>JndiDataSourceProxy.<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">jndiObject</span>, args<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> getObject<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Exception</span></a> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span>DataSource<span style="color: #009900;">&#41;</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aproxy+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Proxy</span></a>.<span style="color: #006633;">newProxyInstance</span><span style="color: #009900;">&#40;</span>THIS_LOADER,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000000; font-weight: bold;">Class</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#123;</span> DataSource.<span style="color: #000000; font-weight: bold;">class</span> <span style="color: #009900;">&#125;</span>, <span style="color: #000000; font-weight: bold;">new</span> DataSourceHandler<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> Class<span style="color: #339933;">&lt;</span>DataSource<span style="color: #339933;">&gt;</span> getObjectType<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> DataSource.<span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">boolean</span> isSingleton<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>使用时候用这个 包上就行了</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br /></div></td><td><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;bean</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;oracleDataSource&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;com.taobao.btc.mario.jndi.JndiDataSourceProxy&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;jndiObject&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;bean</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.springframework.jndi.JndiObjectFactoryBean&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;jndiName&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;java:YourDS&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;jndiEnvironment&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;props<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;prop</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;java.naming.factory.initial&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>org.jnp.interfaces.NamingContextFactory<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/prop<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;prop</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;java.naming.provider.url&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>jnp://127.0.0.1:1099<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/prop<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;prop</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;java.naming.factory.url.pkgs&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>org.jboss.namingrg.jnp.interfaces<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/prop<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;prop</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;jnp.disableDiscovery&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/prop<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/props<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/bean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/bean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://tgic.me/2011/05/15/jboss-%e8%bf%9c%e7%a8%8b-jndi-%e9%93%be%e6%8e%a5-%e6%95%b0%e6%8d%ae%e6%ba%90-ibatis-%e5%87%ba%e5%bc%82%e5%b8%b8%e7%9a%84%e8%a7%a3%e5%86%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu 升级导致eclipse插件挂掉</title>
		<link>http://tgic.me/2010/10/11/ubuntu-%e5%8d%87%e7%ba%a7%e5%af%bc%e8%87%b4eclipse%e6%8f%92%e4%bb%b6%e6%8c%82%e6%8e%89/</link>
		<comments>http://tgic.me/2010/10/11/ubuntu-%e5%8d%87%e7%ba%a7%e5%af%bc%e8%87%b4eclipse%e6%8f%92%e4%bb%b6%e6%8c%82%e6%8e%89/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 19:01:20 +0000</pubDate>
		<dc:creator>T.G.</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://farmer1992.phpsix.net/?p=833</guid>
		<description><![CDATA[实验后 增加 org.eclipse.update.reconcile=true 解决问题 参考 位置 http://www.blogjava.net/eagle-daiq/articles/280230.html]]></description>
			<content:encoded><![CDATA[<p>实验后 增加</p>
<p>org.eclipse.update.reconcile=true</p>
<p>解决问题</p>
<p>参考 位置</p>
<p><a href="http://www.blogjava.net/eagle-daiq/articles/280230.html">http://www.blogjava.net/eagle-daiq/articles/280230.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tgic.me/2010/10/11/ubuntu-%e5%8d%87%e7%ba%a7%e5%af%bc%e8%87%b4eclipse%e6%8f%92%e4%bb%b6%e6%8c%82%e6%8e%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>调整JVM解决JBoss无法访问实践</title>
		<link>http://tgic.me/2010/07/14/%e8%b0%83%e6%95%b4jvm%e8%a7%a3%e5%86%b3jboss%e6%97%a0%e6%b3%95%e8%ae%bf%e9%97%ae%e5%ae%9e%e8%b7%b5/</link>
		<comments>http://tgic.me/2010/07/14/%e8%b0%83%e6%95%b4jvm%e8%a7%a3%e5%86%b3jboss%e6%97%a0%e6%b3%95%e8%ae%bf%e9%97%ae%e5%ae%9e%e8%b7%b5/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 19:15:07 +0000</pubDate>
		<dc:creator>T.G.</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://farmer1992.phpsix.net/?p=803</guid>
		<description><![CDATA[最近发现JBoss 启动一个以前的应用 访问速度及其慢 而且 只能打开一下 然后就不能用了 观察日志 无任何异常 开始考虑是数据库链接问题 不过一直无法证明 后来通过 debug 跟踪 发现 程序居然 运行时抛出的 OutOfMemory异常 但是异常在 页面生成之前被吃掉了 jstat 分析后 发现 P区 99% 调整P区大小后 问题解决]]></description>
			<content:encoded><![CDATA[<p>最近发现JBoss 启动一个以前的应用 访问速度及其慢<br />
而且 只能打开一下 然后就不能用了</p>
<p>观察日志 无任何异常 </p>
<p>开始考虑是数据库链接问题<br />
不过一直无法证明</p>
<p>后来通过 debug 跟踪 发现 程序居然 运行时抛出的 OutOfMemory异常<br />
但是异常在 页面生成之前被吃掉了 </p>
<p>jstat 分析后 发现 P区 99%<br />
调整P区大小后 问题解决</p>
]]></content:encoded>
			<wfw:commentRss>http://tgic.me/2010/07/14/%e8%b0%83%e6%95%b4jvm%e8%a7%a3%e5%86%b3jboss%e6%97%a0%e6%b3%95%e8%ae%bf%e9%97%ae%e5%ae%9e%e8%b7%b5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JBoss 中文乱码的一些解决方案</title>
		<link>http://tgic.me/2010/06/13/jboss-%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e7%9a%84%e4%b8%80%e4%ba%9b%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/</link>
		<comments>http://tgic.me/2010/06/13/jboss-%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e7%9a%84%e4%b8%80%e4%ba%9b%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 17:14:51 +0000</pubDate>
		<dc:creator>T.G.</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://farmer1992.phpsix.net/?p=796</guid>
		<description><![CDATA[前提 GBK 编码 其他 可以参考 * 给系统加 Lang = zh_CN.GBK &#8230; 如果不行 * 强制JVM编码 /bin/run.conf + JAVA_OPTS=”$JAVA_OPTS -Dsun.jnu.encoding=GBK -Dfile.encoding=GBK” 如果还不行 * 强制过滤器 web.xml encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding GBK forceEncoding true encodingFilter /* 我靠 有才 还不行 * 强制 URI编码 tomcat 的恶 server.xml 还不行…… 改用英文程序把 不会有问题]]></description>
			<content:encoded><![CDATA[<p>前提 GBK 编码<br />
其他 可以参考</p>
<p>* 给系统加 Lang = zh_CN.GBK &#8230;</p>
<p>如果不行</p>
<p>* 强制JVM编码</p>
<p>/bin/run.conf + </p>
<p>JAVA_OPTS=”$JAVA_OPTS -Dsun.jnu.encoding=GBK -Dfile.encoding=GBK”</p>
<p>如果还不行</p>
<p>* 强制过滤器 web.xml</p>
<p>	<filter><br />
		<filter-name>encodingFilter</filter-name><br />
		<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class><br />
		<init-param></p>
<param-name>encoding</param-name>
<param-value>GBK</param-value>
		</init-param><br />
		<init-param></p>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
		</init-param><br />
	</filter><br />
	<filter-mapping><br />
		<filter-name>encodingFilter</filter-name><br />
		<url-pattern>/*</url-pattern><br />
	</filter-mapping></p>
<p>我靠 有才 还不行 </p>
<p>* 强制 URI编码</p>
<p>tomcat 的恶 server.xml<br />
<Connector ................... + URIEncoding="GBK" ></p>
<p>还不行……<br />
改用英文程序把 不会有问题</p>
]]></content:encoded>
			<wfw:commentRss>http://tgic.me/2010/06/13/jboss-%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e7%9a%84%e4%b8%80%e4%ba%9b%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>decorateTransform 找不到 jboss 4.2.2</title>
		<link>http://tgic.me/2010/05/26/decoratetransform-%e6%89%be%e4%b8%8d%e5%88%b0-jboss-4-2-2/</link>
		<comments>http://tgic.me/2010/05/26/decoratetransform-%e6%89%be%e4%b8%8d%e5%88%b0-jboss-4-2-2/#comments</comments>
		<pubDate>Tue, 25 May 2010 17:30:13 +0000</pubDate>
		<dc:creator>T.G.</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://farmer1992.phpsix.net/?p=791</guid>
		<description><![CDATA[方式 使用了 TransformedMap.decorateTransform 在单元测试时候没有任何问题 在 实际运用时候居然抛出了 java.lang.NoSuchMethodError: org.apache.commons.collections.map.TransformedMap.decorateTransform(Ljava/util/Map;Lorg/apache/commons/collections/Transformer;L org/apache/commons/collections/Transformer;)Ljava/util/Map 这个让我非常郁闷 后来 for (Method m : TransformedMap.class.getDeclaredMethods()){ System.out.println(m.toString()); } 发现果然 没有…… 对啊 不可能有阿 疑点 转移到 jboss身上 发现 jboss /server /default /lib 下居然…… commons-collections.jar 居然有这个…… 太可怕了]]></description>
			<content:encoded><![CDATA[<p>方式 使用了<br />
TransformedMap.decorateTransform 在单元测试时候没有任何问题</p>
<p>在 实际运用时候居然抛出了<br />
java.lang.NoSuchMethodError: org.apache.commons.collections.map.TransformedMap.decorateTransform(Ljava/util/Map;Lorg/apache/commons/collections/Transformer;L    org/apache/commons/collections/Transformer;)Ljava/util/Map</p>
<p>这个让我非常郁闷<br />
后来<br />
			for (Method m : TransformedMap.class.getDeclaredMethods()){<br />
				System.out.println(m.toString());<br />
			}</p>
<p>发现果然 没有…… 对啊 不可能有阿</p>
<p>疑点 转移到 jboss身上</p>
<p>发现 jboss /server /default /lib 下居然……<br />
commons-collections.jar 居然有这个……</p>
<p>太可怕了</p>
]]></content:encoded>
			<wfw:commentRss>http://tgic.me/2010/05/26/decoratetransform-%e6%89%be%e4%b8%8d%e5%88%b0-jboss-4-2-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JBoss 在eclispe 中启动超时</title>
		<link>http://tgic.me/2010/03/08/jboss-%e5%9c%a8eclispe-%e4%b8%ad%e5%90%af%e5%8a%a8%e8%b6%85%e6%97%b6/</link>
		<comments>http://tgic.me/2010/03/08/jboss-%e5%9c%a8eclispe-%e4%b8%ad%e5%90%af%e5%8a%a8%e8%b6%85%e6%97%b6/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 18:15:06 +0000</pubDate>
		<dc:creator>T.G.</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://farmer1992.phpsix.net/?p=747</guid>
		<description><![CDATA[在eclipse众配置JBOss Server JBoss v4.2 at localhost was unable to start within 50 seconds. If the server requires more time, try increasing the timeout in the server editor. 启动后发现超时 发现大家的解决办法居然是 把超时时间设置为 1天 我觉得这样不合理 经过查找 发现还是 美地 愿意解决问题 http://stackoverflow.com/questions/298312/starting-jboss-from-eclipse/1358404#1358404 将 主机名字改 ip就可以了 估计是 无法监控到状态引起的]]></description>
			<content:encoded><![CDATA[<p>在eclipse众配置JBOss</p>
<p>Server JBoss v4.2 at localhost was unable to start within 50 seconds. If the server requires more time, try increasing the timeout in the server editor.</p>
<p>启动后发现超时</p>
<p>发现大家的解决办法居然是 把超时时间设置为 1天</p>
<p>我觉得这样不合理</p>
<p>经过查找 发现还是 美地 愿意解决问题</p>
<p><a href="http://stackoverflow.com/questions/298312/starting-jboss-from-eclipse/1358404#1358404">http://stackoverflow.com/questions/298312/starting-jboss-from-eclipse/1358404#1358404</a></p>
<p>将 主机名字改 ip就可以了</p>
<p>估计是 无法监控到状态引起的</p>
]]></content:encoded>
			<wfw:commentRss>http://tgic.me/2010/03/08/jboss-%e5%9c%a8eclispe-%e4%b8%ad%e5%90%af%e5%8a%a8%e8%b6%85%e6%97%b6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

