1

I have a 2 Glassfish server and a database server on another host. The frontend is running JSP with some Javascript and the backend is using Hibernate to communicate with the database.

The appserver is very resourse intensive so I want to separate the webserver (JSP, View part) and the backend (EJB, Logic part) into different machines.

How do I do this, more practically? The JSP is relying on the EJB to update the view - so should I introduce a rest-api server between the webserver and the appserver so the can communicate? Is this a good architecture?

Sandeep Shah
  • 169
  • 4
  • 11

1 Answers1

0

One of the key value propositions of EJB is the remoting interface via RMI. Here is a good breakdown of RMI vs other remoting over HTTP (like REST or SOAP).

Here is a google search for EJB / RMI tutorials. There are lots out there.

Community
  • 1
  • 1
Rob Conklin
  • 8,806
  • 1
  • 19
  • 23