Results 1 to 2 of 2

Thread: How to load ApplicationContext

  1. #1
    Join Date
    Jun 2005
    Posts
    20

    Default How to load ApplicationContext

    I'm very new to Spring so please excuse my potential lack of understanding. I'd like to use Spring to build/provide a business layer service in a new project I'm working on. I have no control on how the presentation layer(s) will be implemented (probably some mix of legacy AppLogic code, JSPs and Servlets) so I think I want to provide my business API to the presentation layer(s) without them being aware of the Spring implementation. It looks like at this point there will be 2 consumers of my API, one web app running in an iPlanet 6.5 app server and another web app running in a Tomcat server. So this begs a couple questions:

    1. How do I package my API (as a JAR?) and how do I load the ApplicationContext (preferrably one time) so that I don't need to re-load the ApplicationContext for every call to my API?

    2. Do I need to do anything special to avoid threading issues from the concurrent calls to my API from the presentation layer?

    Any advice/comments would be much appreciated. Thanks, David

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    See the samples delivered with Spring - they are basically packed/unpacked wars.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Similar Threads

  1. problems loading applicationcontext
    By andrea_z in forum Web
    Replies: 6
    Last Post: Feb 8th, 2006, 08:25 AM
  2. Replies: 4
    Last Post: Aug 29th, 2005, 02:46 PM
  3. iBatis lazy load transaction issues.
    By efpiva in forum Data
    Replies: 3
    Last Post: Jun 22nd, 2005, 06:20 PM
  4. Replies: 3
    Last Post: Jun 22nd, 2005, 07:52 AM
  5. Obtaining ApplicationContext for web and batch apps
    By Thomas Vaught in forum Container
    Replies: 10
    Last Post: May 23rd, 2005, 07:09 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
  •