Spring Learning, Spring in action notes (iv)

Source: Internet
Author: User

61. More exciting is the automatic proxy way to the overall configuration of the various decentralized classes in the method of things properties, combined with the use of Defaultadvisorautoproxycreator, Transactionattributesourceadvisor and Transactioninterceptor (I need to make it clear) (P181)

62. When using an automatic proxy, Methodmaptransationattributesource can be used a lot of, its Methodmap attribute can specify which class of which method, you can use the wildcard character (P182)

Seventh chapter. Access to Enterprise Services

63. For Jndiobjectfactorybean Lookup Jndi resource not mentioned, how to set the Jndienvironment property, if it is run in the Java EE container, there is nothing wrong, but not in the case of a separate application run, the following operation needs to be added outside the container Jndienvironment configuration, specifying implementation class, URL, etc. (P217)

<property name= "Jndienvironment" >
<props>
<prop key= "Java.naming.factory.initial" >
       Org.apache.naming.java.javaURLContextFactory
</prop>
<prop key= "java.naming.factory.url.pkgs" >
Org.apache.naming
     </prop>
</props>
</property>
<property name= "Jndienvironment" >
<props>
<prop key= "Java.naming.factory.initial" >
       Org.apache.naming.java.javaURLContextFactory
</prop>
<prop key= "java.naming.factory.url.pkgs" >
Org.apache.naming
     </prop>
</props>
</property>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.