整合GlassFish v3 ,Equinox以及Spring DM 2.0M1

  • 1、安装GlassFish v3(略),下载Equinox、Spring DM 2.0M1
  • 2、设置环境变量 set GlassFish_Platform Equinox
  • 3、拷贝Equinox osgi包到{GlassFish Intall Path}/glassfish/osgi/equinox目录下

  • 引用

    org.eclipse.osgi-3.5.1.R35x_v20090827.jar

  • 4、拷贝下列包到,{GlassFish Intall Path}/glassfish/modules/autostart目录下

  • 引用

    spring-osgi-extender-2.0.0.M1.jar
    spring-osgi-core-2.0.0.M1.jar
    org.springframework.beans_3.0.0.RELEASE.jar

  • 5、在{GlassFish Intall Path}/glassfish/modules目录下创建一个Spring目录,并拷贝下列Bundle到该目录

  • 引用

    com.springsource.net.sf.cglib-2.1.3.jar
    com.springsource.org.aopalliance-1.0.0.jar
    com.springsource.org.apache.log4j-1.2.15.jar
    com.springsource.org.objectweb.asm-2.2.3.jar
    com.springsource.slf4j.api-1.5.6.jar
    com.springsource.slf4j.log4j-1.5.6.jar
    com.springsource.org.apache.log4j-1.2.15.jar
    com.springsource.slf4j.org.apache.commons.logging-1.5.6.jar

    org.springframework.aop_3.0.0.RELEASE.jar
    org.springframework.asm_3.0.0.RELEASE.jar
    org.springframework.context.support_3.0.0.RELEASE.jar 
    org.springframework.context_3.0.0.RELEASE.jar
    org.springframework.core_3.0.0.RELEASE.jar
    org.springframework.expression_3.0.0.RELEASE.jar
    spring-osgi-io-2.0.0.M1.jar

  • 6、启动:执行{GlassFish Intall Path}/glassfish/bin/startserv.bat
  • 7、部署Demo bundle:执行 asadmin deploy --type osgi spring-dm-example.jar




OK

你可能感兴趣的:(apache,spring,log4j,osgi,Glassfish)