Here's some of my test setup code.
Class.forName("org.hsqldb.jdbcDriver");
Connection con = DriverManager.getConnection("jdbc:hsqldb:.", "sa", "");
Implementation odmg = OJB.getInstance();
Database db = odmg.newDatabase();
db.open("repository_unit_hsqldb.xml", Database.OPEN_READ_WRITE);
Make sure that all of your properties and xml files are in your
classpath. Also, I had problems with some of the create table
statements for the ojb tables, because some of the fields were
LONGBLOB's instead of LONGVARCHAR's. I'm not sure if any of this will
help you, but it works for me.
Rex
-----Original Message-----
From: Marcus Ahnve [mailto:marcus.ahnve@;lecando.com]
Sent: Friday, October 18, 2002 4:41 AM
To: OJB Users List
Subject: Re: Hsqldb in memory
My db is set up by the testcase so they're in the same process. Could it
be a connection pooling thing? If several connections are made to the
"." db, will they find the same db?
Russell Smyth wrote:
> The problem you are (probably) having is one process creates the db,
but a
> different one
> is running the tests - so the db "dissapears" - in memory db only
lives in
> the process in
> which it is created.
>
> you could try modifying the build.xml and change all "fork" parameters
to
> "false" to force
> all running in a single process...
OK, I tried this but I got this instead:
[org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl] INFO:
Already created persistence broker instances: 0
[DEFAULT] FATAL: loader constraints violated when linking
org/xml/sax/XMLReader
class
------------- ---------------- ---------------
------------- Standard Error -----------------
java.lang.LinkageError: loader constraints violated when linking
org/xml/sax/XML
Reader class [....]
Ouch! Any clues?
Regards /Marcus
--
Marcus Ahnve email: [EMAIL PROTECTED]
Lecando AB Office: +46-(0)8-634 94 18
Sweden Mobile: +46-(0)70-462 19 18
www.lecando.com ICQ#: 4564879
PGP: 891C 2F84 7CA2 F9F7 9B87 EC2F D93B 961B 4441 9BA2
B941 DB1A
--
To unsubscribe, e-mail:
<mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:ojb-user-help@;jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>