Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

Advantage of EJB

It is said that EJB abstract the business logic from the Servlets. Every Entity Bean method invocation requires ejbLoad and ejbStore to be called before and after the method invocation respectively. However this could result in an increased network traffic between the database server and EJB server frequently. What in case if we manage to write the SQL queries in the servlet itself and manage transactions explicitly. Does it mean that EJB is used to ease transaction management and distribute objects across network , though system response time may come down ?
0
ashish_wani
Asked:
ashish_wani
1 Solution
 
isaacipCommented:
Yes, the lower speed of the network due to the increased traffic is the TRADEOFF to speed up the web development by ease transaction management and distributing objects across network.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now