<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Exposing Functionality using Web Services and JEE</title>
	<atom:link href="http://www.techjava.de/topics/2010/01/functionality-web-services-jee/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techjava.de/topics/2010/01/functionality-web-services-jee/</link>
	<description>Journal on Java Technology</description>
	<lastBuildDate>Tue, 23 Aug 2011 08:02:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Simon Zambrovski</title>
		<link>http://www.techjava.de/topics/2010/01/functionality-web-services-jee/comment-page-1/#comment-17807</link>
		<dc:creator>Simon Zambrovski</dc:creator>
		<pubDate>Mon, 15 Feb 2010 14:09:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.techjava.de/?p=554#comment-17807</guid>
		<description>Both answers seem to require manual DTO hacking. You can try to use WebParam and WebResult tags, but these are for mapping two Java types to different XML Schema elements. Especially for the 2. you are right saying that this should be done not in the domain model: that&#039;s the reason for the additional DTO layer. 

In order to skip manual writing of 1:1 mappers I can only propose to use some MDSD techniques and essentually use a DSL for definition of the conceptual model, which can be easily translated to the domain model using JPA and to the DTO layer with corresponsding XmlBean Annotations.</description>
		<content:encoded><![CDATA[<p>Both answers seem to require manual DTO hacking. You can try to use WebParam and WebResult tags, but these are for mapping two Java types to different XML Schema elements. Especially for the 2. you are right saying that this should be done not in the domain model: that&#8217;s the reason for the additional DTO layer. </p>
<p>In order to skip manual writing of 1:1 mappers I can only propose to use some MDSD techniques and essentually use a DSL for definition of the conceptual model, which can be easily translated to the domain model using JPA and to the DTO layer with corresponsding XmlBean Annotations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arne</title>
		<link>http://www.techjava.de/topics/2010/01/functionality-web-services-jee/comment-page-1/#comment-17805</link>
		<dc:creator>Arne</dc:creator>
		<pubDate>Mon, 15 Feb 2010 11:13:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.techjava.de/?p=554#comment-17805</guid>
		<description>Great article, Simon, as always.

Some questions remain though. They all consider the use case that I want to publish different views of my domain model, all of them being a subset of the internal domain model.

1. How can I publish two subsets of my domain model with the @XmlType tag, one containing attribute A and B and one containing A only?

2. Is there a way to define those mappings in the webservice facade instead of the domain model? It feels misplaced there, because it is not the concern of an entity layer to publish something via an external interface.</description>
		<content:encoded><![CDATA[<p>Great article, Simon, as always.</p>
<p>Some questions remain though. They all consider the use case that I want to publish different views of my domain model, all of them being a subset of the internal domain model.</p>
<p>1. How can I publish two subsets of my domain model with the @XmlType tag, one containing attribute A and B and one containing A only?</p>
<p>2. Is there a way to define those mappings in the webservice facade instead of the domain model? It feels misplaced there, because it is not the concern of an entity layer to publish something via an external interface.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shuron</title>
		<link>http://www.techjava.de/topics/2010/01/functionality-web-services-jee/comment-page-1/#comment-17454</link>
		<dc:creator>shuron</dc:creator>
		<pubDate>Thu, 07 Jan 2010 14:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.techjava.de/?p=554#comment-17454</guid>
		<description>Happy that JEE evolved so far. I think now the combination of  EJB 3.x and Webs Services get really interesting for developers. Thank you Simon, great work!</description>
		<content:encoded><![CDATA[<p>Happy that JEE evolved so far. I think now the combination of  EJB 3.x and Webs Services get really interesting for developers. Thank you Simon, great work!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

