-
Nov 8th, 2012, 12:09 PM
#1
Separate Web layer in other server
Hi guys,
I hope to find someone can help to me with this question.
How can I separate the Web and service layers of my Spring application in different App servers, say, Jboss?
I want to have a Jboss with the Service and Dao layers of the application, and other Jboss with only de Web layer. Something like use @Remote and @Local facades with EJB.
How can I do this? It's possible with Spring? Some articles that do you can suggest?
Thanks in advance...
-
Nov 9th, 2012, 01:15 AM
#2
The first rule of distributed computing/components - Don't...
But if you really must you can use Spring Remoting (explained in the reference guide) to access beans on the other server (there are different implementations which is best suitable depends on you). Another solution could be to use Spring Integration to tie both systems together, you could create an outbound-gateway on the client side (web) and another inbound-gateway on the server and use JMS in between (or gemfire/rabbitmq etc).
-
Nov 9th, 2012, 10:21 AM
#3
Is a good approach, and I need to read now about Remoting, so, thank you very much for the tip.
Then, at the end, the solution is to implement the same way in such EJB works.
I will to implement some proof od concept...
Last edited by jesfre; Nov 9th, 2012 at 10:26 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules