Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring 3 in distributed environment

 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have to use Spring 3 in distributed environment. We have following two applications
1. Application 1 - Spring MVC based application to support GUI
2. Application 2 - A complex transaction application(based on Spring 3 core) which provides web services, scheduling mechanism and connection with JCAPS.

If Application 1 and Application 2 deployed as two separate applications the how do we call Application 2 from Application 1? And how do we do session management?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends entirely on how you implement the service, as does session management, if it even applies to your architecture.
 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are going in totally different direction. I am not implementing Service and time being put session Management aside.
What is the best way to have a synchronous call from Spring MVC to Application2?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How am I going in a totally different direction? You asked about session management, and you said that application 2 provided web services.

What you *didn't* say was how application 2 is *exposing* those services, which makes it impossible to answer.
 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I believe you are considering Application 2 provides web services so Application 1 will use it to connect. No that is not the question - how do Application 1 can connect to Application 2 using simple TCP/IP protocol. Application2 is in cluster mode. Application 1 is create a GUI and then it will call the Application 2 to complete teh request. This is a synchronous call and wanted to know how it can be implemented by using Spring MVC and Core Spring on WAS 7.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By using any of the RMI methods supported by Java, including RMI, JMS, a regular web service, etc.

You really need to decide how you're going to expose app 2's functionality.
 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about using EJBs then using RMI or web services?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic