Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Professional Oracle WebLogic Server
|
BOOK: Professional Oracle WebLogic Server
This is the forum to discuss the Wrox book Professional Oracle WebLogic Server by Robert Patrick, Gregory Nyberg, Philip Aston with Josh Bregman, Paul Done; ISBN: 978-0-470-48430-2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Oracle WebLogic Server section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 2nd, 2009, 12:49 AM
Registered User
 
Join Date: Nov 2009
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default DTOs Insufficient w/ Contract-First Web Services ?

I have been hopping between chapters and haven’t read the book cover to cover (yet ;-)), so hopefully I’m not asking a question that is answered in a portion of the book I haven’t yet read. While I understand and like the DTO pattern for the most part, I was hoping to find some guidance for the situation where the business tier interface is a contract-first, Web Service (implemented as a SLSB). This leads to the issue of generated application domain classes (i.e., from the contractual WSDL) that don’t necessarily coincide w/ the application domain classes designed for the business logic and persistence layer, thus requiring translation. My current thinking is to put a 2nd façade layer between the web service implementation and the business service implementation, which will simply translate the service call arguments from WSDL generated domain objects to application domain objects and back. Is there some other more ‘standard’, best practice to address this situation?

Thanks!
 
Old December 2nd, 2009, 06:47 AM
Registered User
 
Join Date: Nov 2009
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi

The last section of chapter 9 partly discusses this and the upshot for Interface/Contract First development is don't try to share the JPA DTOs as a common data model for both the EJB layer and the Web Services Layer and likewise don't use JAX-WS annotations on your SLSBs to generate Web Services. By definition, if you start from your SLSBs you are doing Code First development not Contract/Interface Development for your Web Services. You will get no re-use of any XML Schemas used across your Web Services and other parts of your systems in your enterprise which need to use your common XML based business data definitions.

More info here:

HTH

Paul
The Following User Says Thank You to pkdone For This Useful Post:
sdavi1010 (December 31st, 2009)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 : Message Contract Program Example thsun BOOK: Professional WCF Programming: .NET Dev with Windows Communication Found ISBN: 9780470089842 16 January 11th, 2008 12:34 PM
Tracking of Contract Dates for Employees lushh Access 2 October 16th, 2006 03:50 AM
Web Services Error (Ch18) - No Web Disc. Info. ElPato BOOK: Beginning ASP.NET 1.0 2 April 13th, 2005 03:27 PM
Web Services qadeerahmad .NET Web Services 1 August 7th, 2004 11:46 AM
Web Services qadeerahmad Forum and Wrox.com Feedback 3 August 7th, 2004 01:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.