转贴 South Park 第十五季

July 2, 2011 Posted by eggB

第十五季 :[1-14][720p.HDTV --> iTunesHD][2011][110611更新]

South.Park.S15E01.HumancentiPad.720p.WEB-DL.AAC2.0.H.264-MC.mkv

http://u.115.com/file/t9763cf058

YTET字幕:http://shooter.cn/xml/sub/171/171693.xml

South.Park.S15E02.Funnybot.720p.WEB-DL.AAC2.0.H.264-MC.mkv

http://u.115.com/file/clc4260p

YTET字幕:http://shooter.cn/xml/sub/172/172283.xml

South.Park.S15E03.Royal.Pudding.720p.WEB-DL.AAC2.0.H.264-MC.mkv

http://u.115.com/file/bhnexh75

YTET字幕:http://shooter.cn/xml/sub/172/172830.xml

South.Park.S15E04.T.M.I.720p.WEB-DL.AAC2.0.H.264-MC.mkv

http://u.115.com/file/clcvdru3

YTET字幕:http://shooter.cn/xml/sub/173/173486.xml

South.Park.S15E05.Crack.Baby.Athletic.Association.720p.WEB-DL.AAC2.0.H.264-MC.mkv

http://u.115.com/file/dnje3cu7

YTET字幕:http://shooter.cn/xml/sub/174/174079.xml

South.Park.S15E06.City.Sushi.720p.WEB-DL.AAC2.0.H.264-MC.mkv

http://u.115.com/file/aqbnzxfn

YTET字幕:http://shooter.cn/xml/sub/174/174587.xml

South.Park.S15E07.You.re.Getting.Old.720p.WEB.DL.AAC2.0.H.264-MC.mkv

http://u.115.com/file/bhaagviz

YTET字幕:http://shooter.cn/xml/sub/175/175197.xml

XADatasource科普

July 1, 2011 Posted by eggB

如果你的应用设计到以下方面(Distributed Transaction 分布式事务), 则应该使用XADatasource, 而不是使用Datasource

1. Uses the Java Transaction API (JTA) 有用到JTA

2. Includes multiple database updates within a single
transaction 单个事务中涉及多次数据库更新操作

3. Accesses multiple resources, such as a database and the
Java Messaging Service (JMS), during a transaction 同一事物中, 访问多个资源, 比如数据库和JMS

4. Use the same connection pool on multiple servers 多个服务器(集群环境)使用同一连接池

 

对应的Oracle JDBC Drive:  oracle.jdbc.xa.client.OracleXADataSource

付JDBC连接池配置做个参考, 注意黑体的两阶段提交协议

 

<jdbc-connection-pool-params>
<initial-capacity>0</initial-capacity>
<max-capacity>100</max-capacity>
<capacity-increment>1</capacity-increment>
<shrink-frequency-seconds>900</shrink-frequency-seconds>
<highest-num-waiters>2147483647</highest-num-waiters>
<connection-creation-retry-frequency-seconds>10</connection-creation-retry-frequency-seconds>
<connection-reserve-timeout-seconds>0</connection-reserve-timeout-seconds>
<test-frequency-seconds>10</test-frequency-seconds>
<test-connections-on-reserve>true</test-connections-on-reserve>
<ignore-in-use-connections-enabled>true</ignore-in-use-connections-enabled>
<inactive-connection-timeout-seconds>0</inactive-connection-timeout-seconds>
<test-table-name>SQL SELECT 1 FROM DUAL</test-table-name>
<login-delay-seconds>0</login-delay-seconds>
<statement-cache-size>50</statement-cache-size>
<statement-cache-type>LRU</statement-cache-type>
<remove-infected-connections>false</remove-infected-connections>
<seconds-to-trust-an-idle-pool-connection>10</seconds-to-trust-an-idle-pool-connection>
<statement-timeout>-1</statement-timeout>
<pinned-to-thread>false</pinned-to-thread>
</jdbc-connection-pool-params>
<jdbc-data-source-params>
<jndi-name>xa_failover.ds</jndi-name>
<row-prefetch>true</row-prefetch>
<row-prefetch-size>50</row-prefetch-size>
<stream-chunk-size>8192</stream-chunk-size>
<global-transactions-protocol>TwoPhaseCommit</global-transactions-protocol>
</jdbc-data-source-params>
</jdbc-data-source>

学习计划

June 30, 2011 Posted by eggB

以下是最近比较感兴趣的Topic,准备有时间研究一下

1. java.util.concurrent包 开始意思到基础的重要性

2. Google Guice 一个根据Robbin的说法, 号称比Spring快一百倍的DI框架

 

 

Weblogic远程调试 本人亲测…

June 21, 2011 Posted by eggB

这几天经常需要在Weblogic上调试本地EJB代码, 遂把Weblogic下的远程调试配置记下来, 以便以后随手使用。

在网上搜了一下,都是去改setDomainEnv.cmd/sh里的java options, 这种方法缺点明显,因为改了setDomainEnv后, 每次启动domain, weblogic如果始终运行在debug模式下,比非debug模式明显占用内存, 毕竟不是时时都需要远程debug代码的。

我的方法是:

 

在Weblogic端:

1.正常启动weblogic domain, 进入admin console, 如http://localhost:7001/console
2.选择要进行远程debug的managed server, 进入server配置页面, 进入tab页: configuration –> Server Start
3. 在输入框Argements里 添加如下代码

    -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8817,server=y,suspend=n

如果你是直接在admin server上部署的ejb的ear 建议你把arguments里面的配置参数备份一下, 以免参数写错了无法启动admin server

 

4. 保存上述改动, 再进入server配置的tab页 debug

enable默认的debug配置

5. 重启相应的managed server

 

在Eclipse端:

1. 在需要远程debug的类上,点右键,  点击Debug as —> debug configuration….

2. 左边Remote Java Application上点右键, 点击new

3. 在新页面里输入host/port, 注意, 这里的port是debug端口, 不是managed server的端口,可以在server start里配置的参数中找到, 如

address=8817

点apply, 应该可以远程debug了~

测试wp-syntax插件

June 20, 2011 Posted by eggB

刚装了wp-syntax插件, 废话不多说,  直接测试效果:

显示 HTML代码:

1
2
3
4
5
6
7
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
</head>
<body></body>
</html>

显示JAVA代码:

public static void main(String[] args){
    System.out.println("TTT")
}
 
感觉还可以....

重开博客~

June 13, 2011 Posted by eggB

昨晚翻了翻以前注册的域名,居然发现这么一个特别NB的,就拿它来做个站吧~

eggB.net 欢迎大家来玩儿~