<?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: JAXB Castor Comparison</title>
	<atom:link href="http://www.factorypattern.com/jaxb-castor-comparison/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.factorypattern.com/jaxb-castor-comparison/</link>
	<description>Just another Object Oriented Weblog</description>
	<lastBuildDate>Sat, 07 Jan 2012 02:36:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Amin</title>
		<link>http://www.factorypattern.com/jaxb-castor-comparison/comment-page-1/#comment-397</link>
		<dc:creator>Amin</dc:creator>
		<pubDate>Mon, 28 Nov 2011 11:02:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.factorypattern.com/?p=4#comment-397</guid>
		<description>Another case is : when u have a huge code base already in production and all model classes are already existing , same object may be going to JMS ,  Database or some analytic&#039;s. etc 

now for XML 
we would not use generated classes - means manually writing annotations to hundred of model classes . which are also used by other layers they have to do testing as well .</description>
		<content:encoded><![CDATA[<p>Another case is : when u have a huge code base already in production and all model classes are already existing , same object may be going to JMS ,  Database or some analytic&#8217;s. etc </p>
<p>now for XML<br />
we would not use generated classes &#8211; means manually writing annotations to hundred of model classes . which are also used by other layers they have to do testing as well .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amin</title>
		<link>http://www.factorypattern.com/jaxb-castor-comparison/comment-page-1/#comment-396</link>
		<dc:creator>Amin</dc:creator>
		<pubDate>Mon, 28 Nov 2011 10:55:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.factorypattern.com/?p=4#comment-396</guid>
		<description>&quot;For Castor you need to manage the XML file containing the bindings, to configure the application to read it from some where, … etc. On the other side fot JAXB you have everything in the generated class. JAXB seems better here.&quot;


I have used castor on many projects and from what i see is this is Actually an issue with JAXB not any feature.. 

reason is : 1 we are forced to have annotated classes and it relies on generated classes , from maintenance perspective , its much better to have a binding /mapping file since it is one place where u have all your mappings , vs its spread through out your model classes and n number of classes have to be changed - which also means more testing expense . 

In case of Complex object structures with inheritance  -- to understand how object is mapped to xml i would have to open objects and read annottaions and assuume the xml and which is very impractical 

if xml structure changes we can manage it in most cases just by modifying mapping xml . 

It also seems to be dependent on schema which is a good feature but shud be an option not mandatory</description>
		<content:encoded><![CDATA[<p>&#8220;For Castor you need to manage the XML file containing the bindings, to configure the application to read it from some where, … etc. On the other side fot JAXB you have everything in the generated class. JAXB seems better here.&#8221;</p>
<p>I have used castor on many projects and from what i see is this is Actually an issue with JAXB not any feature.. </p>
<p>reason is : 1 we are forced to have annotated classes and it relies on generated classes , from maintenance perspective , its much better to have a binding /mapping file since it is one place where u have all your mappings , vs its spread through out your model classes and n number of classes have to be changed &#8211; which also means more testing expense . </p>
<p>In case of Complex object structures with inheritance  &#8212; to understand how object is mapped to xml i would have to open objects and read annottaions and assuume the xml and which is very impractical </p>
<p>if xml structure changes we can manage it in most cases just by modifying mapping xml . </p>
<p>It also seems to be dependent on schema which is a good feature but shud be an option not mandatory</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ziletka</title>
		<link>http://www.factorypattern.com/jaxb-castor-comparison/comment-page-1/#comment-387</link>
		<dc:creator>Ziletka</dc:creator>
		<pubDate>Tue, 26 Jul 2011 18:43:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.factorypattern.com/?p=4#comment-387</guid>
		<description>Hi,
thanks for your post.

I have additional reason for Castor: When you use a lot of similar web services in your application you can map different XSD files (with the same definition) to one object.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
thanks for your post.</p>
<p>I have additional reason for Castor: When you use a lot of similar web services in your application you can map different XSD files (with the same definition) to one object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aforCastor</title>
		<link>http://www.factorypattern.com/jaxb-castor-comparison/comment-page-1/#comment-385</link>
		<dc:creator>aforCastor</dc:creator>
		<pubDate>Fri, 10 Jun 2011 13:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.factorypattern.com/?p=4#comment-385</guid>
		<description>I tried castor with objects and was able to get xmls although mapping didnot work perfectly.
jaxb w&#039;d be pain.
Jaxb-2 is using annotations and is dynamic like castor(probaly using reflection like castor now)

but castor had all that long time back. :)

castor commiters, pls. add annotations support to kep jaxB folks quiet.</description>
		<content:encoded><![CDATA[<p>I tried castor with objects and was able to get xmls although mapping didnot work perfectly.<br />
jaxb w&#8217;d be pain.<br />
Jaxb-2 is using annotations and is dynamic like castor(probaly using reflection like castor now)</p>
<p>but castor had all that long time back. <img src='http://www.factorypattern.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>castor commiters, pls. add annotations support to kep jaxB folks quiet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sir Fabel</title>
		<link>http://www.factorypattern.com/jaxb-castor-comparison/comment-page-1/#comment-113</link>
		<dc:creator>Sir Fabel</dc:creator>
		<pubDate>Fri, 11 Sep 2009 22:14:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.factorypattern.com/?p=4#comment-113</guid>
		<description>JAXB is part of the JDK =&gt; nothing to download, except if you would like to use an &quot;early access&quot; release.
JAXB is maintained by Sun and hence has a more certain future and a better support (documentations, forums, etc).
Did you see all the plugins available?

I tried Castor... and really now, since I use JAXB, I cannot see why I would go back to Castor...</description>
		<content:encoded><![CDATA[<p>JAXB is part of the JDK =&gt; nothing to download, except if you would like to use an &#8220;early access&#8221; release.<br />
JAXB is maintained by Sun and hence has a more certain future and a better support (documentations, forums, etc).<br />
Did you see all the plugins available?</p>
<p>I tried Castor&#8230; and really now, since I use JAXB, I cannot see why I would go back to Castor&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmi</title>
		<link>http://www.factorypattern.com/jaxb-castor-comparison/comment-page-1/#comment-6</link>
		<dc:creator>Jimmi</dc:creator>
		<pubDate>Thu, 17 Apr 2008 16:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.factorypattern.com/?p=4#comment-6</guid>
		<description>Hi,

I like this post, I really liked your suggestion, when we should use castor or  JAXB.

&quot;Considering those points I would go for Castor if I would need a simple XML serialization. I’d use JAXB only if I would have to use something more from Java Web Services Developer Pack.&quot;

Thanks,
Jimmi
www.rialight.com</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I like this post, I really liked your suggestion, when we should use castor or  JAXB.</p>
<p>&#8220;Considering those points I would go for Castor if I would need a simple XML serialization. I’d use JAXB only if I would have to use something more from Java Web Services Developer Pack.&#8221;</p>
<p>Thanks,<br />
Jimmi<br />
<a href="http://www.rialight.com" rel="nofollow">http://www.rialight.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

