Hi,
I did this way and it works:
Connection conn = DatabaseRegistry.getDatabaseRegistry( jdo.getDatabaseName
() ).createConnection();
I hope it can help you.
Bye
Patrick
Konstantin
Krasovsky To: [EMAIL PROTECTED]
<tommi cc:
@ukrpost.net> Subject: [castor-dev] [JDO] SQL
Connection question
23.01.2002
11:42
Please
respond to
castor-dev
Hello All,
My Code:
{
org.exolab.castor.jdo.Database db;
java.sql.Connection con;
...
try{
con=(java.sql.Connection)
((org.exolab.castor.jdo.engine.DatabaseImpl)db).getConnection();
}
catch(Exception e){e.printStackTrace();}
}
}
Exception:
java.lang.NullPointerException
at
org.exolab.castor.jdo.engine.DatabaseImpl.getConnection(DatabaseImpl.java:628)
.....
Why ???
--
Best regards,
Konstantin mailto:[EMAIL PROTECTED]
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
