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.