This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Calling Spring fron Non-spring application

Jan 6th, 2012, 01:04 AM

Hi guys,

I am going to make a component that will communicate with an external partner. Other in-house applications will use my component to call services at this partner.

I am considering either using an EJB that these applications would access, or using Spring. If I go for an EJB they would simply do a lookup as usual, but what is the equivalent in Spring? What is the preferred strategy in Spring when other applications need to call a Spring Service. Note that these clients may not be Spring-applications.

Web services, MQ are other possible options where systems running on different technologies communicate with each other. There are some other factors that you must keep in mind before you choose an approach.
Is the call from external application stateful or stateless? Do you expect the transaction to be propagated with the calls? etc.
If you can give more details about the application you are looking to develop, that might help.