Results 1 to 3 of 3

Thread: Dynamic lookup performance

  1. #1

    Default Dynamic lookup performance

    Hi

    I would like to know the performance of using dynamic lookup. For example I'm using spring to configure my loggers and I don't know if I should lookup the loggers once and then access them with local variables, or use dynamic lookup in every logger call.

    Regards,

    Néstor Boscán

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    You mean getBean() every call? I would not recommend that, not only on performance grounds but because it means that lots of your code explicitly knows about Spring. Method injection would get around that objection, but will definitely have a cost.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

  3. #3

    Default Performance

    Hi

    In my case I can't using Ioc because I'm looking up the loggers from struts. I'm using Spring extensions for struts but in my action classes I need to lookup the loggers.

Similar Threads

  1. Replies: 3
    Last Post: Mar 9th, 2011, 10:43 AM
  2. Replies: 2
    Last Post: Jul 14th, 2007, 09:05 AM
  3. dynamic lookup queue
    By pinglu in forum JMS
    Replies: 3
    Last Post: Jan 25th, 2006, 01:35 PM
  4. application configuration and lookup bean
    By rzeng in forum Container
    Replies: 2
    Last Post: Jan 16th, 2005, 06:25 PM
  5. Replies: 3
    Last Post: Nov 6th, 2004, 10:10 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
  •