wood burning stoves*
The moose likes Spring and the fly likes Using Interface in converting from EJB to Spring - Best Strategy? 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 "Using Interface in converting from EJB to Spring - Best Strategy?" Watch "Using Interface in converting from EJB to Spring - Best Strategy?" New topic
Author

Using Interface in converting from EJB to Spring - Best Strategy?

K Conway
Greenhorn

Joined: Feb 24, 2009
Posts: 6
Hi,

Looking for advice on best strategy...

We have a main business data object that is currently delivered via an EJB-based service to the front end applications. I'll call it a business DTO

Multiple applications use this main business DTO to perform their individual funtion; such as monthly reports, scenario generation, etc...

The business DTO contains hundreds of points of data, and is growing all of the time as more functionality from legacy systems is asked to be exposed on the web interface.

The problem comes in each time that a new piece of data is added to the business DTO. First the EJB service and all of its artifacts has to be rebuilt. Then, all applications that use that business data object must be rebuilt and regression tested... If not, they fail to deserialize the newest version of the business DTO.

So, question...

I have been tasked with cleaning this up and converting the EJB-based service to a Spring service.

Would using an interface help clean this up? Can I develop an interface that has getters/setters for the current data set, and then when the business DTO changes, the implementation object will change, but the interface will remain stable until each individual application needs to be updated and recompiled, then it will get the latest version of the interface, and the new implementation.

Of one note, we are using Websphere and are currently stuck using Java 1.4 for reasons that are out of my control, so upgrading is not an option currently.

Should I be doing this Spring service in Spring HTTPInvoker, or would I be better off using Spring-WS and a contract-first web service?

Any advice would be appreciated.

Thanks,

Kent



K Conway
Greenhorn

Joined: Feb 24, 2009
Posts: 6
Does anyone ever answer anything on Java Ranch? Third time I've posted, not one reply.

Am I doing something wrong?

Any suggestions on a forum to use where one might get some replies?

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Interface in converting from EJB to Spring - Best Strategy?