Java – business logic of the client

Why do people say that business logic should be implemented on server-side code (such as EJB) rather than on client-side application code?

The example I think of is business object validation on EJB - based architecture Do you really have to delegate to an EJB, or can you run the object on the client before sending it to the server to save?

Solution

Validation can be done on the client to save round trips to the server But the server should also perform the same verification Ideally, you can reuse the same classes on the client and server sides

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>