<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Bitter bites with Java</title>
	<atom:link href="http://venugopaal.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://venugopaal.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 11 Feb 2009 11:06:57 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='venugopaal.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/5c9bba232fc9e4e2d6558d65f4dbb5a9?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Bitter bites with Java</title>
		<link>http://venugopaal.wordpress.com</link>
	</image>
			<item>
		<title>JBoss5 exception: &#8220;Adding multiple last resources is disallowed..&#8221;</title>
		<link>http://venugopaal.wordpress.com/2009/02/11/jboss5-adding-multiple-last-resources-is-disallowed/</link>
		<comments>http://venugopaal.wordpress.com/2009/02/11/jboss5-adding-multiple-last-resources-is-disallowed/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 10:25:08 +0000</pubDate>
		<dc:creator>Venugopal S</dc:creator>
				<category><![CDATA[Jboss5]]></category>
		<category><![CDATA[Adding multiple last resources is disallowed jboss]]></category>
		<category><![CDATA[Could not enlist in transaction on entering meta-aware object]]></category>
		<category><![CDATA[jboss5+arjuna]]></category>
		<category><![CDATA[JMS rolledbackexception in jboss5]]></category>

		<guid isPermaLink="false">http://venugopaal.wordpress.com/?p=7</guid>
		<description><![CDATA[Hi,
Some of you might have come across the following strange exception when moving to Jboss5 from Jboss4.x.
Adding multiple last resources is disallowed. Current resource is [EMAIL
PROTECTED]
&#124; 16:17:18,000 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
&#124; 16:17:18,000 ERROR [JDBCExceptionReporter] Could not enlist in transaction
on entering meta-aware object!; &#8211; nested throwable:
(javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist
resource, see the previous [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=venugopaal.wordpress.com&blog=6231566&post=7&subd=venugopaal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="color:#000000;">Hi,</span></p>
<p><span style="color:#000000;">Some of you might have come across the following strange exception when moving to Jboss5 from Jboss4.x.</span></p>
<p><span style="color:#808080;">Adding multiple last resources is disallowed. Current resource is [EMAIL<br />
PROTECTED]<br />
| 16:17:18,000 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null<br />
| 16:17:18,000 ERROR [JDBCExceptionReporter] Could not enlist in transaction<br />
on entering meta-aware object!; &#8211; nested throwable:<br />
(javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist<br />
resource, see the previous warnings. tx=TransactionImple &lt; ac, BasicAction:<br />
-53e0d9e7:77e:469b7d96:41 status: ActionStatus.ABORT_ONLY &gt;); &#8211; nested<br />
throwable: (org.jboss.resource.JBossResourceException: Could not enlist in<br />
transaction on entering meta-aware object!; &#8211; nested throwable:<br />
(javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist<br />
resource, see the previous warnings. tx=TransactionImple &lt; ac, BasicAction:<br />
-53e0d9e7:77e:469b7d96:41 status: ActionStatus.ABORT_ONLY &gt;))<br />
| 16:17:18,000 FATAL [application] javax.persistence.PersistenceException:<br />
org.hibernate.exception.GenericJDBCException: Cannot open connection<br />
| javax.faces.el.EvaluationException: javax.persistence.PersistenceException:<br />
org.hibernate.exception.GenericJDBCException: Cannot open connection</span></p>
<p><span style="color:#000000;">This happens when :</span></p>
<p><span style="color:#000000;">1. You have 2 EAR files in a single server instance. Not just 2 ear files, but from within a transaction of a deployed EAR file, when you try to access the other EAR file, get some data from there and try to commit the transaction. This is not allowed in arjuna API (AFAIK). To fix this, edit JBOSS_HOME/server/default/conf/jbossjta-properties.xml and add the following line </span></p>
<p><span style="color:#0000ff;"> &lt;property name=&#8221;com.arjuna.ats.jta.allowMultipleLastResources&#8221; value=&#8221;true&#8221; /&gt;</span></p>
<p>The problem does not stop here..The datasource has to support it.</p>
<p>Modify the *ds.xml to look like this ( localtxdatasource would not work) :</p>
<p><span style="color:#0000ff;">&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br />
&lt;datasources&gt;<br />
&lt;xa-datasource&gt;<br />
&lt;jndi-name&gt;CatMgrDS&lt;/jndi-name&gt;<br />
&lt;xa-datasource-class&gt;com.mysql.jdbc.jdbc2.optional.MysqlXADataSource&lt;/xa-datasource-class&gt;<br />
&lt;xa-datasource-property name=&#8221;URL&#8221;&gt;jdbc:mysql://192.168.157.57:3306/30cm&lt;/xa-datasource-property&gt;<br />
&lt;xa-datasource-property name=&#8221;User&#8221;&gt;root&lt;/xa-datasource-property&gt;<br />
&lt;xa-datasource-property name=&#8221;Password&#8221;&gt;root&lt;/xa-datasource-property&gt;<br />
&lt;!&#8211; the minimum size of the connection pool &#8211;&gt;<br />
&lt;min-pool-size&gt;1&lt;/min-pool-size&gt;<br />
&lt;!&#8211; The maximum connections in a pool/sub-pool &#8211;&gt;<br />
&lt;max-pool-size&gt;4&lt;/max-pool-size&gt;<br />
&lt;/xa-datasource&gt;<br />
&lt;/datasources&gt;</span></p>
<p>Next step is to make sure you have the latest version of mysql-connector(in my case atleast). Versions prior to 5.1.10 doesn&#8217;t support XA datasource(ref :http://marc.info/?l=kandula-dev&amp;m=113945114400475&amp;w=2) I replaced my old mysql connector with the latest one.</p>
<p>Things should work fine then. will keep this writing up to date to my best possible extent <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color:#0000ff;"><br />
</span></p>
<p><span style="color:#000000;"><br />
</span></p>
<p><span style="color:#000000;"><br />
</span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/venugopaal.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/venugopaal.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/venugopaal.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/venugopaal.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/venugopaal.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/venugopaal.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/venugopaal.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/venugopaal.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/venugopaal.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/venugopaal.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=venugopaal.wordpress.com&blog=6231566&post=7&subd=venugopaal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://venugopaal.wordpress.com/2009/02/11/jboss5-adding-multiple-last-resources-is-disallowed/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/267e9d183cedca68c08852bcc4134381?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Venugopal S</media:title>
		</media:content>
	</item>
		<item>
		<title>JBoss4.0.5 to JBoss 5GA</title>
		<link>http://venugopaal.wordpress.com/2009/02/02/jboss405-to-jboss-5ga/</link>
		<comments>http://venugopaal.wordpress.com/2009/02/02/jboss405-to-jboss-5ga/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 11:01:03 +0000</pubDate>
		<dc:creator>Venugopal S</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://venugopaal.wordpress.com/?p=3</guid>
		<description><![CDATA[Hi,
Our application runs on Jboss4.0.5 for almost 2.5 years now. One thing that was appealing me the most with Jboss5 was its proved performance wrt JBoss Messaging. We have been using JBossMQ for long.
The day wasn&#8217;t pleasant when i started exploring Jboss5. It threw all strange errors and Exceptions to a newbie like me at [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=venugopaal.wordpress.com&blog=6231566&post=3&subd=venugopaal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hi,</p>
<p>Our application runs on Jboss4.0.5 for almost 2.5 years now. One thing that was appealing me the most with Jboss5 was its proved performance wrt JBoss Messaging. We have been using JBossMQ for long.</p>
<p>The day wasn&#8217;t pleasant when i started exploring Jboss5. It threw all strange errors and Exceptions to a newbie like me at the outset. Ok.. After about 3/4th of a week was spent, i was gaining grip on the new beast Jboss5 (finally).</p>
<p>You should not be bewildered initially. I would like to mention few things i learnt the very hard way.</p>
<p class="MsoNormal"><strong><span style="font-family:Times New Roman;font-size:medium;"><span style="font-weight:bold;font-size:14pt;">Migrating to  Jboss5:</span></span></strong></p>
<p class="MsoNormal"><strong><span style="font-family:Times New Roman;font-size:small;"><span style="font-weight:bold;font-size:12pt;"> </span></span></strong></p>
<ul type="disc">
<li class="MsoNormal"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;">XML files are strictly validated against the schema.  Hence we need to alter some of the XML files :</span></span></li>
</ul>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;">In <em><span style="font-style:italic;">application.xml</span></em> we have to replace </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;">&lt;application  xmlns=&#8221;http://java.sun.com/xml/ns/j2ee&#8221; version=&#8221;1.4&#8243;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> xmlns:xsi=&#8221;http://www.w3.org/2001/XMLSchema-instance&#8221; </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> xsi:schemaLocation=&#8221;http://java.sun.com /xml/ns/j2ee  http://java.sun.com/xml/ns/j2ee/application_1_4.xsd&#8221;&gt;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> &lt;display-name&gt;ss&lt;/display-name&gt;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"><strong>WITH</strong></span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;">&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br />
&lt;application xmlns=&#8221;http://java.sun.com/xml/ns/javaee&#8221;<br />
xmlns:xsi=&#8221;http://www.w3.org/2001/XMLSchema-instance&#8221;<br />
xsi:schemaLocation=&#8221;http://java.sun.com/xml/ns/javaee<br />
http://java.sun.com/xml/ns/javaee/application_5.xsd&#8221;<br />
version=&#8221;5&#8243;&gt;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"><strong><br />
</strong></span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;">And the &lt;description&gt; tag should be removed.<br />
</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;">In <em><span style="text-decoration:underline;"><span style="font-style:italic;">persistence.xml:</span></span></em></span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;">The root element was simple and plain. We  need to update it to</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;">&lt;persistence</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> xmlns=&#8221;http://java.sun.com/xml/ns/persistence&#8221;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> xmlns:xsi=&#8221;http://www.w3.org/2001/XMLSchema-instance&#8221;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> xsi:schemaLocation=&#8221;http://java.sun.com/xml/ns/persistence  http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd&#8221;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> version=&#8221;1.0&#8243;&gt;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><em><span style="text-decoration:underline;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;font-style:italic;">web.xml :</span></span></span></em><span style="text-decoration:underline;"> </span>Mixing &lt;servlet&gt; and &lt;servlet-mapping&gt; is not allowed in Jboss 5  and the dtd has to be updated to</p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;">&lt;!DOCTYPE  web-app</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> PUBLIC &#8220;-//Sun  Microsystems, Inc.//DTD Web Application 2.3//EN&#8221;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> &#8220;http://java.sun.com/dtd/web-app_2_3.dtd&#8221;&gt;</span></span></p>
<div style="margin-left:.25in;margin-right:0;border:medium medium 1pt none none solid 0 0 windowtext;padding:0 0 1pt;">
<p class="MsoNormal" style="border:medium none;padding:0;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
</div>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;">And in all the occurrences of </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;">this.queueConnectionFactory =  (QueueConnectionFactory) this.ctx</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> .lookup(&#8220;QueueConnectionFactory&#8221;);</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;">we need to replace with </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;">this.queueConnectionFactory =  (QueueConnectionFactory) this.ctx</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> .lookup(&#8220;ConnectionFactory&#8221;);</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><em><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;font-style:italic;">jboss-app.xml</span></span></em> which contains</p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;">&lt;!DOCTYPE  jboss-app</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> PUBLIC  &#8220;-//JBoss//DTD J2EE Application 1.4//EN&#8221;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> &#8220;http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd&#8221;&gt;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;">has to be updated with the latest dtd  as</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;">&lt;!DOCTYPE  jboss-app</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> PUBLIC  &#8220;-//JBoss//DTD Java EE Application 5.0//EN&#8221;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> &#8220;http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd&#8221;&gt;.</span></span></p>
<div style="margin-left:.25in;margin-right:0;border:medium medium 1pt none none solid 0 0 windowtext;padding:0 0 1pt;">
<p class="MsoNormal" style="border:medium none;padding:0;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
</div>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;">The annotations are a bit different in  Jboss 5.</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;">In a POJO class, we were using the  JoinColumn annotations like </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> @ManyToOne</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> @JoinColumn(name = &#8220;orderid&#8221;, insertable = false)</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;">which has to be modified to </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;">@ManyToOne</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> @JoinColumns({@JoinColumn(name =  &#8220;orderId&#8221;,referencedColumnName=&#8221;orderId&#8221;,insertable = false)}) </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;">referencedColumnName is a must in JBoss 5  for this annotation.</span></span></p>
<div style="margin-left:.25in;margin-right:0;border:medium medium 1pt none none solid 0 0 windowtext;padding:0 0 1pt;">
<p class="MsoNormal" style="border:medium none;padding:0;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;"> </span></span></p>
</div>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><strong><span style="font-family:Times New Roman;font-size:medium;"><span style="font-weight:bold;font-size:14pt;">For JMS  :</span></span></strong></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;">In case of Jboss4, all the JMS related  stuff had to go <em><span style="font-style:italic;">in  jbossmq-destinations-service.xml.</span></em></span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><em><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;font-style:italic;"> </span></span></em></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;">Sample element :</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;">&lt;mbean  code=&#8221;org.jboss.mq.server.jmx.Queue&#8221;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> name=&#8221;jboss.mq.destination:service=Queue,name=TotalOrderQueue&#8221;&gt;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> &lt;attribute  name=&#8221;JNDIName&#8221;&gt;queue/TotalOrderQueue&lt;/attribute&gt;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> &lt;attribute  name=&#8221;RedeliveryDelay&#8221;&gt;10000&lt;/attribute&gt;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> &lt;attribute name=&#8221;RedeliveryLimit&#8221;&gt;3&lt;/attribute&gt;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> &lt;depends  optional-attribute-name=&#8221;DestinationManager&#8221;&gt;jboss.mq:service=DestinationManager&lt;/depends&gt;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> &lt;/mbean&gt;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;">But in Jboss 5, Jboss messaging has  replaced JbossMQ. Jboss messaging is significantly faster than JbossMQ(Ref : <a href="http://www.jboss.org/file-access/default/members/jbossmessaging/freezone/docs/userguide-2.0.0.alpha1/html/performance.html">http://www.jboss.org/file-access/default/members/jbossmessaging/freezone/docs/userguide-2.0.0.alpha1/html/performance.html</a>).</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;font-size:small;"><span style="font-size:12pt;"> The configurations need to be tweaked a  bit to be read as follows (also the configuration filename has changed to  destinations-service.xml):</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;">&lt;mbean  code=&#8221;org.jboss.jms.server.destination.QueueService&#8221;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> name=&#8221;jboss.messaging.destination:service=Queue,name=TotalOrderQueue&#8221;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> xmbean-dd=&#8221;xmdesc/Queue-xmbean.xml&#8221;&gt;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> &lt;depends  optional-attribute-name=&#8221;ServerPeer&#8221;&gt;jboss.messaging:service=ServerPeer&lt;/depends&gt;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> &lt;depends&gt;jboss.messaging:service=PostOffice&lt;/depends&gt;</span></span></p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"> &lt;/mbean&gt; </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;">
<p class="MsoNormal" style="margin-left:.25in;"><span style="font-family:Times New Roman;color:blue;font-size:small;"><span style="font-size:12pt;color:blue;"><span style="color:#003300;">Hope this helps!</span><br />
</span></span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/venugopaal.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/venugopaal.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/venugopaal.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/venugopaal.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/venugopaal.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/venugopaal.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/venugopaal.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/venugopaal.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/venugopaal.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/venugopaal.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=venugopaal.wordpress.com&blog=6231566&post=3&subd=venugopaal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://venugopaal.wordpress.com/2009/02/02/jboss405-to-jboss-5ga/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/267e9d183cedca68c08852bcc4134381?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Venugopal S</media:title>
		</media:content>
	</item>
	</channel>
</rss>