aspose file tools*
The moose likes Spring and the fly likes Spring 3 in distributed environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring 3 in distributed environment" Watch "Spring 3 in distributed environment" New topic
Author

Spring 3 in distributed environment

Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

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

Joined: Sep 29, 2008
Posts: 12617

It depends entirely on how you implement the service, as does session management, if it even applies to your architecture.
Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Nov 03, 2001
Posts: 626

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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Nov 03, 2001
Posts: 626

How about using EJBs then using RMI or web services?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring 3 in distributed environment