Results 1 to 3 of 3

Thread: Separate Web layer in other server

  1. #1
    Join Date
    Dec 2011
    Posts
    7

    Default 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...

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    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).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Dec 2011
    Posts
    7

    Default

    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
  •