Seasar DI Container with AOP

REQUIREMENT

S2 requires JDK1.4 or JDK1.5 to run.

SETUP

  • Download S2xxx.zip, and Unzip it!
  • Import seasar2 directory as an existing project to Eclipse.
    • Select menu 'File -> Import... -> Existing Project into workspace'

CLASSPATH

For using the basic function of Seasar2(S2Container, S2AOP), you need to include the following files in CLASSPATH.

  • lib/aopalliance-1.0.jar
  • lib/commons-logging-1.0.4.jar
  • lib/geronimo-spec-j2ee-1.4-rc4.jar (refer to below)
  • lib/javassist-3.0.jar
  • lib/ognl-2.6.5.jar
  • lib/s2-framework-2.x.x.jar
  • lib/log4j-1.2.8.jar (optional)
  • resources/log4j.properties (optional)

For using the extended function of Seasar2(S2JTA, S2DBCP, S2JDBC, S2Unit, S2Tx, and S2DataSet), you need to include the following files in CLASSPATH.

  • lib/junit-3.8.1.jar
  • lib/poi-2.5-final-20040804.jar
  • lib/s2-extension-2.x.x.jar
  • lib/geronimo-spec-jta-1.0.1B-rc4.jar (refer to below)
  • resources/j2ee.dicon
  • resources/aop.dicon

Selects geronimo-spec-j2ee-1.4-rc4.jar or geronimo-spec-jta-1.0.1B-rc4.jar responding to the application evnironment.

environmentgeronimo-spec-j2ee-1.4-rc4.jargeronimo-spec-jta-1.0.1B-rc4.jar
Servlet Container not implementing J2EE full spec
(Tomcat etc.)
unnecessarynecessary
(using S2JTA,S2Tx)
Application Server implementing J2EE full spec
(JBoss, WebSphere, WebLogic etc)
unnecessaryunnecessary
Standalonenecessaryunnecessary

HSQLDB is included so that you can try the function of a database easily. When you try, run HSQLDB first(double-click hsql/bin/runHsqldb.bat (for Windows)).You need to configurate XADataSourceImpl in j2ee.dicon in accordance with your environment.

Let's try Kijimuna Eclipse Plugin for S2Container.

Using Tiger Annotation, the operations are as follows.

  • Download S2Tigerxxx.zip, and Unzip it!
  • Import s2-tiger directory as an existing project to Eclipse.
    • Select menu 'File -> Import... -> Existing Project into workspace'
  • Add following jar file to CLASSPATH.
    • lib/s2-tiger-x.x.x.jar

Using Backport175 Annotation, the operations are as follows.

  • Download S2Backport175xxx.zip, and Unzip it!
  • Import s2-backport175 directory as an existing project to Eclipse.
    • Select menu 'File -> Import... -> Existing Project into workspace'
  • Add following jar file to CLASSPATH.
    • lib/s2-backport175-x.x.x.jar
    • lib/backport175-x.x.jar

Let's try backport175 Eclipse plugin.