跳至主要内容

博文

目前显示的是 八月, 2009的博文

Synergy Between Spring AOP and AspectJ

synergy (synergies) If there is synergy between two or more organizations or groups, they are more successful when they work together than when they work separately. (BUSINESS) Much has changed in the AOP framework landscape in the past few years. There has been some housecleaning among the AOP frameworks, resulting in some frameworks merging and others going extinct. In 2005, the AspectWerkz project merged with AspectJ, marking the last significant activity in the AOP world and leaving us with three dominant AOP frameworks: AspectJ ( http://eclipse.org/aspectj ) JBoss AOP ( http://labs.jboss.com/portal/jbossaop/index.html ) Spring AOP ( http://www.springframework.org ) Since this is a Spring book, we will, of course, focus on Spring AOP. Even so, there's a lot of synergy between the Spring and AspectJ projects, and the AOP support in Spring 2.0 borrows a lot from the AspectJ project. In fact, the <aop:spring-configured /> configuration element takes advantage of AspectJ...

如何在 Eclipse WTP 内配置 Tomcat 的 Multiple Hosts

在开发Tomcat上的WebApp的时候,服务器上部署了几个webapp分别用Virtual Hosts映射到几个不同的domain,例如: www.mydomain.com wap.mydomain.com soapapi.mydomain.com 在服务器上操作的时候是通过Apache Httpd的config文件中设定Virutal Host,并采用JK2协议转发到Tomcat 5.5中。所以在Tomcat的server.xml中也要有对应的Host配置。 然而当我在Eclipse内通过WTP部署程序的时候,是没有办法创建多个Host的config的。通过Server视图中的右键菜单"Add or Remove Projects.."只能够在已有的默认Host内添加新的Context。于是我手动编辑这个server.xml文件,实现以下的双Host: <Host appBase="webapps" autoDeploy="true" name=" www.mydomain.com "   unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">   <Context docBase="myweb" path="" reloadable="true"     source="org.eclipse.jst.j2ee.server:myweb" crossContext="true"/> </Host> <Host appBase="webapps" autoDeploy="true" name=" soapapi.mydomain.com "   unpackWARs="true" xmlNamespaceAware=...