This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes SOA-izing java app components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOA-izing java app components" Watch "SOA-izing java app components" New topic
Author

SOA-izing java app components

louise rochford
Ranch Hand

Joined: Apr 04, 2002
Posts: 119
We've got a few java apps and will have more as time goes on. We'd like to be able to use the business services that the apps provide within an overall SOA that will also include VB apps, COBOL programs etc.

The java apps are layered as you'd expect with presentation, business/domain & data access layers, but we've gone for using POJOs (& Spring framework) rather than EJBs.

It looks like the easiest / most standard way to use these in an SOA is to create a new set of objects, lets call them WebServiceFacades, to wrap the business objects and expose their functionality via coarse-grained methods. (The original business objects may well have fine-grained methods at the moment as they're only used locally.) We can then run the tools on the WebServiceFacades to create the WSDL, and then the dd & mapping files.
Finally we can package all the app code up in a jar / war, then an ear & deploy it on the server (WebSphere).

My boss is hung up on the idea of only having one instance of the code in production (not counting clusters).
Is this something we should worry about?
The code is source controlled, so I can see how we could manually manage different copies of the same app in production.
If the webservice code is deployed together with the webapp code, we'd only ever need one instance in production.

Is this the 'correct' way to go about it?
Can an ear contain code that acts as both a web service & a web app or does it have to be defined as one or the other?

I've seen plenty of low-level technical docs on web services (though limited experience) & plenty of high-level architecture SOA docs, but not much in between. What would be good is a code design-level description of how to make java web apps work in an SOA...
louise rochford
Ranch Hand

Joined: Apr 04, 2002
Posts: 119
Can anyone advise? Have I gone completely off track?
 
 
subject: SOA-izing java app components
 
Similar Threads
Query on SOA
Newbie - web service design assistance needed
Difference between SOA and JBI
WebServices versus EJB
New Article: Using Complex Types in Web Services