Quantcast
Channel: Communication between a web app and a simple app - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Communication between a web app and a simple app

$
0
0

I've got 2 different web applications running.

'Web application A' has all the business logic layer services.
I need to invoke methods defined in 'Web application A' from 'Web application B'.

How can I use services(or methods) from 'Web application B' without sending
a http request ?

So far I've found that you can invoke a java programme as described in this question.
Execute a Java program from our Java program

I wonder which one is the right way. Call method by sending a http request or call some method directly.
Could you also tell me which one is better, and why ?

Edit
Could I use Springframework's remote invoking ?
http://static.springsource.org/spring/docs/2.0.x/reference/remoting.html
Which one is more desirable. Spring remoting or EJB ?
We are using Tomcat.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images