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

Thread: Accessing spring services from hibernated domain objects

  1. #11

    Default

    Quote Originally Posted by robh View Post
    Indeed, the overhead for this functionality is pretty low. The cost of the reflective invocation to inject dependencies is near zero now and the actual process of intercepting the creation of a new domain object is very quick due to the AspectJ weaving process.
    Apologies for resurrecting a dead thread, but I was wondering if this was still the case now that Spring 2 is in production? I can't find any actual numbers or testimony on this topic.

    jason

  2. #12
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Its a fair question to back up the statement with numbers. In the absence of an answer, you could write some simple tests and prove it. Obviously it would be nice to see those results as well .

    There are some general performance stats here. These are a little old though.
    http://docs.codehaus.org/display/AW/AOP+Benchmark
    Last edited by karldmoore; Jan 5th, 2007 at 04:23 PM.

  3. #13
    Join Date
    Sep 2004
    Location
    Texas
    Posts
    155

    Default

    I saw several complaints about poor performance using load-time weaving when Spring 2 was released. I don't know how much progress has been made in the subsequent point releases.

    I use compile-time weaving. I don't have the hard numbers in front of me, but it has been nice and speedy for me.
    Corby

  4. #14
    Join Date
    Jul 2006
    Location
    Kolkata, India
    Posts
    217

    Default

    I have also been using @Configuable with compile time weaving without any performance complaint. Initially we had some problems with LTW, but since we switched to compile time weaving, things work out like a charm. The only problem, not related to performance though, is that the dependencies do not get re-injected upon deserialization (if u have such a use case). This is an issue recorded in Spring JIRA and for which Ramnivas has also provided a fix. The fix, will however be 100% fullproof when the next release of AspectJ comes up. But with the current patch, things work out pretty well.

    Cheers.
    - Debasish

Similar Threads

  1. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  2. Spring accessing other non Spring Web Services
    By aanecito in forum Architecture
    Replies: 1
    Last Post: Jun 17th, 2005, 04:42 AM
  3. Spring code remarks
    By Alarmnummer in forum Architecture
    Replies: 18
    Last Post: Apr 7th, 2005, 07:17 AM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Replies: 0
    Last Post: Jan 6th, 2005, 08:19 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
  •