<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://port25.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>HOW-TO: CONNECTING SQL SERVER 2005 JDBC to JBOSS</title><link>http://port25.technet.com/archive/2006/06/14/HOW_2D00_TO_3A00_-CONNECTING-SQL-SERVER-2005-JDBC-to-JBOSS.aspx</link><description>We have been working in the labs on doing some testing and integration of jBoss talking to a SQL server 2005 backend. We have seen some questions on how to connect a SQL Server in the Windows environment to jBoss. So I wrote a little how-to that describes</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 40109.1145)</generator><item><title>re: HOW-TO: CONNECTING SQL SERVER 2005 JDBC to JBOSS</title><link>http://port25.technet.com/archive/2006/06/14/HOW_2D00_TO_3A00_-CONNECTING-SQL-SERVER-2005-JDBC-to-JBOSS.aspx#27721</link><pubDate>Tue, 15 Sep 2009 09:50:14 GMT</pubDate><guid isPermaLink="false">af7480c4-26b7-468d-87b0-2acebabb473d:27721</guid><dc:creator>zAkMjGZExLkacJJY</dc:creator><description>&lt;p&gt;doors.txt;10;15&lt;/p&gt;
&lt;img src="http://port25.technet.com/aggbug.aspx?PostID=27721" width="1" height="1"&gt;</description></item><item><title>re: HOW-TO: CONNECTING SQL SERVER 2005 JDBC to JBOSS</title><link>http://port25.technet.com/archive/2006/06/14/HOW_2D00_TO_3A00_-CONNECTING-SQL-SERVER-2005-JDBC-to-JBOSS.aspx#4443</link><pubDate>Mon, 17 Dec 2007 05:08:44 GMT</pubDate><guid isPermaLink="false">af7480c4-26b7-468d-87b0-2acebabb473d:4443</guid><dc:creator>rtrask</dc:creator><description>&lt;p&gt;Whoops, I apologize for not doing a better of looking before I lept. :)&lt;/p&gt;
&lt;p&gt;It turns out that there is a recent thread that was started on this very topic. For the interested reader, here is the link.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.jboss.com/index.html?module=bb&amp;amp;op=viewtopic&amp;amp;t=125595"&gt;http://www.jboss.com/index.html?module=bb&amp;amp;op=viewtopic&amp;amp;t=125595&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://port25.technet.com/aggbug.aspx?PostID=4443" width="1" height="1"&gt;</description></item><item><title>re: HOW-TO: CONNECTING SQL SERVER 2005 JDBC to JBOSS</title><link>http://port25.technet.com/archive/2006/06/14/HOW_2D00_TO_3A00_-CONNECTING-SQL-SERVER-2005-JDBC-to-JBOSS.aspx#4442</link><pubDate>Mon, 17 Dec 2007 04:46:15 GMT</pubDate><guid isPermaLink="false">af7480c4-26b7-468d-87b0-2acebabb473d:4442</guid><dc:creator>rtrask</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm trying to get SQL Server 2005 with the latest Microsoft JDBC driver (released October 2007) configured for XA to work with JBoss 4.2.1 transactions. &lt;/p&gt;
&lt;p&gt;I get the feeling that I am plowing new ground, and I was wondering if any one else has had any success with even a remotely similar combination.&lt;/p&gt;
&lt;p&gt;I have had quite a bit of success with blue sky scenarios, but I am running into issues with recovery.&lt;/p&gt;
&lt;p&gt;This is the datasource configuration that I have been using.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;xa-datasource&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;jndi-name&amp;gt;DefaultDS&amp;lt;/jndi-name&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;track-connection-by-tx/&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;isSameRM-override-value&amp;gt;false&amp;lt;/isSameRM-override-value&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;xa-datasource-class&amp;gt;com.microsoft.sqlserver.jdbc.SQLServerXADataSource&amp;lt;/xa-datasource-class&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;xa-datasource-property name=&amp;quot;ServerName&amp;quot;&amp;gt;localhost&amp;lt;/xa-datasource-property&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;xa-datasource-property name=&amp;quot;DatabaseName&amp;quot;&amp;gt;jboss&amp;lt;/xa-datasource-property&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;xa-datasource-property name=&amp;quot;SelectMethod&amp;quot;&amp;gt;cursor&amp;lt;/xa-datasource-property&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;xa-datasource-property name=&amp;quot;User&amp;quot;&amp;gt;jboss&amp;lt;/xa-datasource-property&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;xa-datasource-property name=&amp;quot;Password&amp;quot;&amp;gt;jboss&amp;lt;/xa-datasource-property&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;xa-datasource-property name=&amp;quot;URL&amp;quot;&amp;gt;jdbc:sqlserver://localhost:1961&amp;lt;/xa-datasource-property&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;!-- sql to call when connection is created --&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;new-connection-sql&amp;gt;select 1&amp;lt;/new-connection-sql&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;!-- sql to call on an existing pooled connection when it is obtained from pool --&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;check-valid-connection-sql&amp;gt;select 1&amp;lt;/check-valid-connection-sql&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml --&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;metadata&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;type-mapping&amp;gt;MS SQLSERVER2000&amp;lt;/type-mapping&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/metadata&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;/xa-datasource&amp;gt;&lt;/p&gt;
&lt;p&gt;An example of what I am running into is as follows:&lt;/p&gt;
&lt;p&gt;following the directions in &lt;a rel="nofollow" target="_new" href="http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossTSRecovery"&gt;http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossTSRecovery&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When I run the test, the first step works perfectly. The transactions to the point where a transaction attempts to commit, and then blocks as appropriate. Then in the next step after initiating the recovery via Test -recover, it proceeds to DONE, but never recovers the transaction, and the entry remains in the Object Store.&lt;/p&gt;
&lt;p&gt;I'm new to Port 25, and I am not sure if this is the correct place to post this or not. Please forgive me if I am out of bounds here.&lt;/p&gt;
&lt;p&gt;Any help is greatly appreciated.&lt;/p&gt;
&lt;img src="http://port25.technet.com/aggbug.aspx?PostID=4442" width="1" height="1"&gt;</description></item><item><title>re: HOW-TO: CONNECTING SQL SERVER 2005 JDBC to JBOSS</title><link>http://port25.technet.com/archive/2006/06/14/HOW_2D00_TO_3A00_-CONNECTING-SQL-SERVER-2005-JDBC-to-JBOSS.aspx#3049</link><pubDate>Tue, 19 Sep 2006 02:54:41 GMT</pubDate><guid isPermaLink="false">af7480c4-26b7-468d-87b0-2acebabb473d:3049</guid><dc:creator>johndpalm</dc:creator><description>&lt;p&gt;Does the MS JDBC driver support SQL 2005 mirroring failover?&lt;/p&gt;
&lt;img src="http://port25.technet.com/aggbug.aspx?PostID=3049" width="1" height="1"&gt;</description></item><item><title>re: HOW-TO: CONNECTING SQL SERVER 2005 JDBC to JBOSS</title><link>http://port25.technet.com/archive/2006/06/14/HOW_2D00_TO_3A00_-CONNECTING-SQL-SERVER-2005-JDBC-to-JBOSS.aspx#2628</link><pubDate>Fri, 16 Jun 2006 00:14:39 GMT</pubDate><guid isPermaLink="false">af7480c4-26b7-468d-87b0-2acebabb473d:2628</guid><dc:creator>hjanssen</dc:creator><description>&lt;br&gt;Have you checked &lt;a rel="nofollow" target="_new" href="http://us2.php.net/mssql_connect"&gt;http://us2.php.net/mssql_connect&lt;/a&gt; ? If that does not have your anwser, let me know and give me the specifics on what it is you where trying to do and I can see if we can figure it out for for you at the labs here.&lt;br&gt;&lt;br&gt;Hank.&lt;br&gt;&lt;img src="http://port25.technet.com/aggbug.aspx?PostID=2628" width="1" height="1"&gt;</description></item><item><title>re: HOW-TO: CONNECTING SQL SERVER 2005 JDBC to JBOSS</title><link>http://port25.technet.com/archive/2006/06/14/HOW_2D00_TO_3A00_-CONNECTING-SQL-SERVER-2005-JDBC-to-JBOSS.aspx#2626</link><pubDate>Thu, 15 Jun 2006 08:29:10 GMT</pubDate><guid isPermaLink="false">af7480c4-26b7-468d-87b0-2acebabb473d:2626</guid><dc:creator>JonTheNiceGuy</dc:creator><description>Any chance of a similar howto for PHP? I've been trying on-and-off for about 4 years to do it, and never succeeded!&lt;br&gt;&lt;br&gt;Thanks :)&lt;br&gt;&lt;br&gt;Jon &amp;quot;The Nice Guy&amp;quot;&lt;img src="http://port25.technet.com/aggbug.aspx?PostID=2626" width="1" height="1"&gt;</description></item></channel></rss>