Since blocking is true, most likely your connection parameters are wrong
and it can't get a connection.

check:

driver is listed in JdbcProvider mbean

you can connect from standalone program using exactly the driver, url,
username, password in your conf.

Note that use of the jdbc-odbc bridge is strongly discouraged.

david jencks

On 2001.10.10 13:03:02 -0400 David Treves wrote:
> Hi,
> 
> I am running JBoss 2.4.0 and I wish to integrate it with MS Sql Server. I
> went through the documentation, but it seems like I am missing
> something...
> 
> I added the relevant <MBean>" to jboss.jcml and the definition of the
> Minerva connection pool, but when I test it and run the server it is
> stucked on the line where it is trying to run that service/thread.
> 
> The MBean I added is:
> 
> <mbean code="org.jboss.jdbc.XADataSourceLoader"
> name="DefaultDomain:service=XADataSource,name=SQLServerPool">
>     <attribute 
>name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl</attribute>
>     <attribute name="PoolName">SQLServerPool</attribute>
>     <attribute name="URL">jdbc:odbc:ejb</attribute>
>     <attribute name="JDBCUser">sa</attribute>
>     <attribute name="Password">mamamia</attribute>
>     <attribute name="Properties"></attribute>
>     <attribute name="GCMinIdleTime">1200000</attribute>
>     <attribute name="MaxSize">10</attribute>
>     <attribute name="GCEnabled">false</attribute>
>     <attribute name="InvalidateOnError">false</attribute>
>     <attribute name="TimestampUsed">false</attribute>
>     <attribute name="Blocking">true</attribute>
>     <attribute name="GCInterval">120000</attribute>
>     <attribute name="IdleTimeout">1800000</attribute>
>     <attribute name="IdleTimeoutEnabled">false</attribute>
>     <attribute name="LoggingEnabled">false</attribute>
>     <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
>     <attribute name="MinSize">0</attribute>
>   </mbean>
> 
> and the  line where the initializing process is stucked at is:
> 
> [XADataSourceLoader] Started
> [XADataSourceLoader] Starting
> [SQLServerPool] XA Connection pool SQLServerPool bound to
> java:/SQLServerPool
> 
> 
> Any idea why that happens?
> 
> Thanks in advance,
> David.
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html; charset=windows-1255">
> <META content="MSHTML 5.50.4807.2300" name=GENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=#ffffff>
> <DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2>I am running JBoss 2.4.0 and I wish to
> integrate it 
> with MS Sql Server. I went through the documentation, but it seems like I
> am 
> missing something...</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2>I added the relevant &lt;MBean&gt;" to 
> jboss.jcml</FONT><FONT face=Arial size=2>&nbsp;and the definition of the
> Minerva 
> connection pool, but when I test it and run the server it is stucked on
> the line 
> where it is trying to run that service/thread.</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2>The MBean I added is:</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2>&lt;mbean
> code="org.jboss.jdbc.XADataSourceLoader" 
> 
>name="DefaultDomain:service=XADataSource,name=SQLServerPool"&gt;<BR>&nbsp;&nbsp;&nbsp;
> 
> &lt;attribute 
> 
>name="DataSourceClass"&gt;org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp;
> 
> &lt;attribute 
> 
>name="PoolName"&gt;<STRONG>SQLServerPool</STRONG>&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp;
> 
> &lt;attribute 
> name="URL"&gt;jdbc:odbc:ejb&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp; 
> &lt;attribute name="JDBCUser"&gt;sa&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp;
> 
> &lt;attribute name="Password"&gt;mamamia&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp;
> 
> &lt;attribute name="Properties"&gt;&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp;
> 
> &lt;attribute 
> name="GCMinIdleTime"&gt;1200000&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp; 
> &lt;attribute name="MaxSize"&gt;10&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp;
> 
> &lt;attribute name="GCEnabled"&gt;false&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp;
> 
> &lt;attribute 
> name="InvalidateOnError"&gt;false&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp;
> 
> &lt;attribute 
> name="TimestampUsed"&gt;false&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp; 
> &lt;attribute name="Blocking"&gt;true&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp;
> 
> &lt;attribute 
> name="GCInterval"&gt;120000&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp; 
> &lt;attribute 
> name="IdleTimeout"&gt;1800000&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp; 
> &lt;attribute 
> name="IdleTimeoutEnabled"&gt;false&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp;
> 
> &lt;attribute 
> name="LoggingEnabled"&gt;false&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp; 
> &lt;attribute 
> name="MaxIdleTimeoutPercent"&gt;1.0&lt;/attribute&gt;<BR>&nbsp;&nbsp;&nbsp;
> 
> &lt;attribute name="MinSize"&gt;0&lt;/attribute&gt;<BR>&nbsp; 
> &lt;/mbean&gt;</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2>and the </FONT>&nbsp;<FONT face=Arial
> size=2>line 
> where the initializing process is stucked at is:</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2>[XADataSourceLoader] 
> Started<BR>[XADataSourceLoader] Starting<BR>[SQLServerPool] XA Connection
> pool 
> SQLServerPool bound to java:/SQLServerPool</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2>Any idea why that happens?</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2>Thanks in advance,</FONT></DIV>
> <DIV><FONT face=Arial size=2>David.</FONT></DIV></BODY></HTML>
> 

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to