Results 1 to 3 of 3

Thread: Using Spring with J2SE

  1. #1
    Join Date
    Oct 2004
    Posts
    1

    Default 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,

    Paul.

  2. #2
    Join Date
    Aug 2004
    Location
    Toulouse, France
    Posts
    148

    Default

    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.

    Olivier

  3. #3
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Last edited by robyn; May 14th, 2006 at 10:39 AM.

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. Replies: 5
    Last Post: Aug 9th, 2008, 05:30 AM
  3. A Spring Class Loader?
    By azzoti in forum Architecture
    Replies: 8
    Last Post: May 7th, 2005, 04:02 AM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Spring: useful for J2EE. not so useful for J2SE?
    By Edward Kenworthy in forum Container
    Replies: 2
    Last Post: Nov 2nd, 2004, 08:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •