java - N-tier Architecture in Spring -
i want develop enterprise level application using spring mvc in presentation layer , spring in business logic layer , hibernate in info access layer.
but want maintain presentation layer in web server, multiple business logic layer in multiple server , info access layer in physical server means want found n tier solution using spring mvc.
i able separate layer in architecture. problem solution work on single server. cant architecture multiple physical server.
suppose that, controller utilize @autowired annotation inject object of business logic layer. how can found scheme controller talks business logic layer on network , business logic layer talks info access layer on network well.
if can describe solution in details helpful me.
thanks...
you should able split code quite easily. let's phone call info access layer "data provider" service , business logic layer "business service".
now, have decide kind of network protocol going use.
these days rest popular 1 , easy setup rest endpoints spring mvc (use @restcontroller on server , resttemplate on client). can utilize rmi if want couple services (data provider , business service) using same java code (interfaces, dtos etc.)
java spring spring-mvc
No comments:
Post a Comment