时间很长;现在很短;距离很长;相遇很短
Posts tagged Spring
Spring 2.5 AOP Schema编程小解
Feb 22nd
Parse error: syntax error, unexpected T_STRING in /opt/htdocs/blogs/lazing/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 1
XD程序不是这么写的
Feb 7th
好容易有了年假,打开亲爱的小E,换了3.3于是要更新下Maven插件。
突然发现Q Maven进入了官方计划,于是想要尝尝鲜。
第一步感觉不错,比原来的好用多了,就是原来的Maven工程怎么也开不了支持,没关系,我用向导新建工程。
向导很强大,配合archetype模板,似乎点一点就可以编程了。
只是这个时候(我承认我好事),俺点选了AppFuse的Spring type..
于是亲耐的小e就下载了差不多快两个小时软件包。。。
当然,其成果也是非凡的。光开发涉及jar(非页面部分)就有下面这么多。
[INFO] Scanning for projects…
[INFO] Searching repository for plugin with prefix: ‘dependency’.
[INFO] —————————————————————————-
[INFO] Building AppFuse Modular Application – Core
[INFO] task-segment: [dependency:resolve]
[INFO] —————————————————————————-
[INFO] [dependency:resolve]
[INFO]
[INFO] The following files have been resolved:
[INFO] antlr:antlr:jar:2.7.6 (scope = compile)
[INFO] asm:asm:jar:1.5.3 (scope = compile)
[INFO] asm:asm-attrs:jar:1.5.3 (scope = compile)
[INFO] aspectj:aspectjrt:jar:1.5.3 (scope = compile)
[INFO] aspectj:aspectjweaver:jar:1.5.3 (scope = compile)
[INFO] backport-util-concurrent:backport-util-concurrent:jar:3.0 (scope = compile)
[INFO] cglib:cglib:jar:2.1_3 (scope = compile)
[INFO] commons-beanutils:commons-beanutils:jar:1.7.0 (scope = compile)
[INFO] commons-codec:commons-codec:jar:1.3 (scope = compile)
[INFO] commons-collections:commons-collections:jar:3.2 (scope = compile)
[INFO] commons-httpclient:commons-httpclient:jar:3.0 (scope = compile)
[INFO] commons-lang:commons-lang:jar:2.3 (scope = compile)
[INFO] commons-logging:commons-logging:jar:1.1 (scope = compile)
[INFO] dom4j:dom4j:jar:1.6.1 (scope = compile)
[INFO] javax.activation:activation:jar:1.1 (scope = compile)
[INFO] javax.mail:mail:jar:1.4 (scope = compile)
[INFO] javax.persistence:persistence-api:jar:1.0 (scope = compile)
[INFO] javax.transaction:jta:jar:1.0.1B (scope = compile)
[INFO] jdom:jdom:jar:1.0 (scope = compile)
[INFO] jmock:jmock:jar:1.1.0 (scope = test)
[INFO] junit:junit:jar:4.4 (scope = test)
[INFO] log4j:log4j:jar:1.2.13 (scope = compile)
[INFO] mysql:mysql-connector-java:jar:5.0.5 (scope = compile)
[INFO] net.java.dev.stax-utils:stax-utils:jar:20040917 (scope = compile)
[INFO] net.sf.ehcache:ehcache:jar:1.3.0 (scope = compile)
[INFO] net.sf.jsr107cache:jsr107cache:jar:1.0 (scope = compile)
[INFO] org.acegisecurity:acegi-security:jar:1.0.5 (scope = compile)
[INFO] org.acegisecurity:acegi-security-tiger:jar:1.0.5 (scope = compile)
[INFO] org.apache.xbean:xbean-spring:jar:2.8 (scope = compile)
[INFO] org.appfuse:appfuse-data-common:jar:2.0-20070918.092511-122 (scope = compile)
[INFO] org.appfuse:appfuse-hibernate:jar:2.0-20070918.092511-122 (scope = compile)
[INFO] org.appfuse:appfuse-service:jar:2.0-20070918.092511-122 (scope = compile)
[INFO] org.codehaus.woodstox:wstx-asl:jar:3.2.0 (scope = compile)
[INFO] org.codehaus.xfire:xfire-aegis:jar:1.2.6 (scope = compile)
[INFO] org.codehaus.xfire:xfire-annotations:jar:1.2.6 (scope = compile)
[INFO] org.codehaus.xfire:xfire-core:jar:1.2.6 (scope = compile)
[INFO] org.codehaus.xfire:xfire-java5:jar:1.2.6 (scope = compile)
[INFO] org.codehaus.xfire:xfire-spring:jar:1.2.6 (scope = compile)
[INFO] org.codehaus.xfire:xfire-xmlbeans:jar:1.2.6 (scope = compile)
[INFO] org.hibernate:hibernate:jar:3.2.5.ga (scope = compile)
[INFO] org.hibernate:hibernate-annotations:jar:3.3.0.ga (scope = compile)
[INFO] org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga (scope = compile)
[INFO] org.springframework:spring:jar:2.0.6 (scope = compile)
[INFO] org.springframework:spring-aspects:jar:2.0.6 (scope = compile)
[INFO] org.springframework:spring-mock:jar:2.0.6 (scope = test)
[INFO] org.subethamail:subethasmtp-smtp:jar:1.2 (scope = test)
[INFO] org.subethamail:subethasmtp-wiser:jar:1.2 (scope = test)
[INFO] oro:oro:jar:2.0.8 (scope = compile)
[INFO] stax:stax-api:jar:1.0.1 (scope = compile)
[INFO] velocity:velocity:jar:1.4 (scope = compile)
[INFO] velocity:velocity-dep:jar:1.4 (scope = runtime)
[INFO] wsdl4j:wsdl4j:jar:1.6.1 (scope = compile)
[INFO] xfire:xfire-jsr181-api:jar:1.0-M1 (scope = compile)
[INFO] xmlbeans:xbean:jar:2.2.0 (scope = compile)
[INFO]
[INFO]
[INFO] ————————————————————————
[INFO] BUILD SUCCESSFUL
[INFO] ————————————————————————
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Feb 07 23:27:34 CST 2008
[INFO] Final Memory: 10M/21M
[INFO] ————————————————————————
我陶醉了。。
XD,程序不是这么写的,乃不能图方便就把所有的jar包全部给我!!!这个不叫archetype,这叫糊弄程序员。就跟bea那些老不死的,整的俺开发十个页面要忍受该死的weblogic n遍的启动(当然,我知道怪他不公平,怪只怪架构人员没有很好的解离这种开发依赖)
好吧,说完了。看个电影早点睡了。
使用XFire与Spring开发Web Services
Dec 29th
下载PDF 使用XFire与Spring开发Web Service
实现功能与特点
- 基于J2EE平台的Web Service服务
- 开发方便,配置简单
- 设计接口
- 实现服务
- 配置暴露接口
- XFire将自动生成对应的wsdl
- 支持高级详细配置
- 与Spring无缝集成
运行环境
- JDK 1.4+
- Tomcat 4.0+ / WebLogic 8.1 (需要特殊配置,见附录)未测试其他环境
- 其他包依赖参看 http://xfire.codehaus.org/Dependency+Guide
开发平台
- Eclipse WTP 1.5 平台IDE:www.eclipse.org/webtools/
- XFire 1.2.6 http://xfire.codehaus.org/Home
- 可以选择安装XFire for Eclipse插件,可以添加XFire相关类库,根据WSDL生成代码。http://xfire.codehaus.org/Eclipse+Plugin
- JDK 1.4.2 http://java.sun.com/products/archive/
- Tomcat 5.0.28 http://tomcat.apache.org/download-55.cgi#5.0.28