Spring + Hibernate Common Errors

Source: Internet
Author: User

1. spring manages hiberante transactions. When setting the cut plane, you must consider all the places that may involve transactions. Otherwise, the cut plane does not involve any database operations, which occupy a lot of resources and cannot be released.

2. when using rmi, if multiple ip addresses exist on the server where the application is deployed, 127.0.0.1 confused connetion will be reported when the client connects to the service. In this case, you need to set the ip address registered by rmi, System parameter, system. setProperty ("java. rmi. server. hostname "," XXX. XXX. XXX. XXX "); of course, this setting should be before rmi registration.

3. rmi traversal is a problem (for example, no route to host), but spring org. springframework. remoting. rmi. rmiServiceExporter provides servicePort attribute settings, that is, to set the service port. rmi uses a port to listen to the Service (registryPort) and a port for Communication (servicePort ), this firewall only needs to open the two ports.

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.