Hi Stefan,

the name you specify at

JDOManager jdo = JDOManager.createInstance("log")

refers to the name of the database configuration

<database name="test" engine="sapdb">

To get things to work you should use same name in jdo-conf and for createInstance. E.g. following should work:

JDOManager jdo = JDOManager.createInstance("foobar")

<database name="foobar" engine="sapdb">

Regards
Ralf


Stefan Lober schrieb:

Hello,

I have a problem with a simple JDO program.
This is the content of my configuration file
dbconfig.xml:
 <jdo-conf>
    <database name="test" engine="sapdb">
       <driver
class-name="com.sap.dbtech.jdbc.DriverSapDB"
url="jdbc:sapdb://localhost/log">
          <param name="user" value="creator"/>
          <param name="password" value="creator"/>
       </driver>
       <mapping href="person.xml"/>
    </database>
    <transaction-demarcation mode="local"/>
 </jdo-conf>

I try to execute the following code:

           // load the JDOManager configuration file
JDOManager.loadConfiguration("test/dbconfig.xml"); // construct a new JDOManager for 'mydb'
           JDOManager jdo =
JDOManager.createInstance("log");

The last code line generates the exception described
in the subject line.
A normal JDBC connection to the database works fine.
Any hints?

Thanks


        

        
                
___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de

-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to