Hello,
I am using very simple test to create/retrieve class objects from local MS SQL Server
2000 Northwind sample database. I am NOT supposed to use connection pooling, so my
configuration file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<database name="Northwind" engine="sql-server">
<driver
url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=Northwind;SelectMethod=cursor"
class-name="com.microsoft.jdbc.sqlserver.SQLServerDriver">
<param name="name" value="<skip>"/>
<param name="password" value="<skip>"/>
</driver>
<mapping href="dbMap.xml" ></mapping>
</database>
This URL is fine for plain JDBC access and Castor is able to use it, too.
Here the question:
about 1-3 seconds after initial Castor SQL statements printout I am getting refusal
from naming service that Castor is calling somewhere
...
[CastorHelperTest on SQL Server Northwind] SQL for loading
testing.persistentlayer.SimpleCustomerDesc: SELECT
"CustomerDemographics"."CustomerDesc" FROM "CustomerDemographics" WHERE
"CustomerDemographics"."CustomerTypeID"=?
[CastorHelperTest on SQL Server Northwind] javax.naming.ServiceUnavailableException:
Caught exception when resolving initial reference=NameService [Root exception is
org.omg.CORBA.TRANSIENT: Connection refused: connect:host=<localhost>,port=2809 minor
code: 4942F301 completed: No]
...
then Castor works fine and loads requested objects from the local JDBC source...
Is something missing in my configuration?
Thank you.
Dmitry Semibratov.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev