Not only will this reduce network overhead, but within EJBs, it also critically reduces the number of database calls by creating a single transaction context for the entire business function.
这种方法不但能够降低网络开销,而且在EJB内部通过为整个业务功能创建一个事务环境也可以大大地减少对数据库的访问次数。
This is especially true in SOA where the business context of the service consumer is not necessarily known by the user or application creating the data.
在SOA环境中,创建数据的用户或应用程序不需要了解服务消费者的业务上下文,所以这个问题尤其突出。
You can make the returned value available in the JSP page by creating a JSP variable with the setAttribute() method of the JSP context.
通过使用 JSP 上下文的 setAttribute() 方法创建一个 JSP 变量,您可以使返回值在 JSP 页面上可用。
应用推荐