Announcement Announcement Module
Collapse
No announcement yet.
ProxyFactory and the setFrozen(true) method Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ProxyFactory and the setFrozen(true) method

    I had a quick glimse of the article on TSS about the AOP performance benchmark and also saw a few postings on the dev mail list.

    But I got confused about ProxyFactory.setFrozen() method. That could be used to improve performance greatly.

    Someone stateted that it was only in the upcomming 1.1.3 this setFrozen(true) is avail. Can someone explain this?

    Currently I have advised my target object using java code instead of the .xml config file. However later we will probably move it to the .xml file when we'll move on to use more of the Spring features.

    My code is

    Code:
    	SelfServiceSessionFacadeLocal target = home.create();
    	ProxyFactory fac = new ProxyFactory(target);
    	fac.addAdvice(new SelfServiceTraceInterceptor());
    			
    	// set for better performance
    	fac.setOptimize(true);
    	fac.setOpaque(true);
    	fac.setFrozen(true);  
    
    	// get our proxied ejb facade
    	selfServiceSessionFacade = (SelfServiceSessionFacadeLocal) fac.getProxy();
    I have set all the parameters to true for performance optimizations. And there is a setFrozen() method on the ProxyFactory class already.

    I am using Spring 1.1.2

  • #2
    Claus,

    setFrozen() has been available on ProxyFactory since 1.1.2, however setFrozne() on ProxyFactoryBean is broken as of 1.1.2. I have fixed this now and the fix will be released in 1.1.3.

    Rob

    Comment

    Working...
    X