Announcement Announcement Module
No announcement yet.
Using Spring with J2SE Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using Spring with J2SE

    Hi all,

    Having read Rods design book and checked out some of the cool stuff within the Spring framework, I would like to write some examples of the bean, context and jdbc stuff that are relevant to the company (and its product) that I work for. But, the product is J2SE not J2EE.

    Does this pose any serious issues?

    Having a quick look at the distribution I have seen that:

    - spring-core.jar seems straight J2SE.
    - spring-context.jar contains EJB, JNDI, JMS type classes so I assume some of it is for J2EE.
    - spring-dao.jar seems pretty clean as well.

    Am I correct?

    Finally, is there a targeted distribution around for J2SE, or do I need to chop a few classes from spring-context.jar to get it to work under J2SE?

    thanks for your help,


  • #2
    J2se is way enough to benefits spring power.
    Of course, you can't use modules which require the specifities of EJB (mainly EJB, else you can often use lib which offers support for part of J2ee out of an application server).
    So, go for the whole spring.jar, includes it in your j2se project and use beans, contexts and jdbc facilities
    As for the jdk, I think it is for 1.3.1 and better only, it should cover most modern java apps.



    • #3
      See my previous post on this at:
      Last edited by robyn; May 14th, 2006, 10:39 AM.


      • #4
        that thread helped me also a lot. thanks!