Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Developing API w/Spring and Hibernate - how to package?

  1. #11
    Join Date
    Aug 2004
    Location
    u.s.a
    Posts
    399

    Default

    bryanhunt:

    Cool stuff!

    Question: We are using our simple implementation of Preferences (pre 1.4), but now that we are finally moving to 1.4 we can use the 'standard'. However, we need the pref to come from the database (legacy requirements and cluster issues). Do you by chance know of an extension of Preferences that uses a db backing store? I'd hate to reinvent the wheel. Search on web shows nothing, but it could be under my nose, or is this another one line Spring change?

    Regarding conditional spring config files. In another thread, I made a suggestion of making contexts part of a composite pattern, thus they would have an id, and so could be manipulated just like beans. This would allow conditional stuff and more, IMHO: http://forum.springframework.org/showthread.php?t=9891


    --- jbetancourt
    Last edited by robyn; May 14th, 2006 at 04:52 PM.

  2. #12
    Join Date
    Aug 2004
    Location
    Germany, Magdeburg
    Posts
    279

    Default

    Sorry guys, but it looks like I don't see the point. By using Perferences stores , in what way does it help you to package your API+Spring? Can you give me an example?

  3. #13
    Join Date
    Aug 2004
    Location
    u.s.a
    Posts
    399

    Default

    I don't see it either.

    I see it more like allowing one to store configuration information in a more accessible place. Of course, there are property files for this but they tend to be a pain in some situations (or why invent the Prefs api), or not even accessible, as in EAR application distribution.

  4. #14
    Join Date
    Aug 2004
    Location
    Oxford, Ohio, USA
    Posts
    18

    Default

    We've been investigating a way to package our API more...and at this point, we're going to go with the simplest for us - JAR up our class files, and provide Spring context files templates - if the users need to modify them for their specific situation, they can - otherwise, the default template will configure our application for the most common usage scenario. This incurs the (small) overhead of having the user be responsible for making sure the Spring context is configured correctly, but so far that's looking like the best trade off.

Similar Threads

  1. Replies: 5
    Last Post: Dec 27th, 2005, 07:00 AM
  2. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  3. Spring + Hibernate ORA-00936: missing expression
    By Hugh_la_Main in forum Data
    Replies: 1
    Last Post: Jun 28th, 2005, 08:48 AM
  4. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM
  5. Replies: 7
    Last Post: Aug 21st, 2004, 03:42 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
  •