OJB.proprties & websphere

J

Jezzer

Hi all,

Sorry if this is the wrong group for this question (happy to be guided
to the correct one).

I'm new to Java, new to websphere, new to OJB. So naturally I'm having
problems getting them all to work!

When I run my OJB test the PersistenceBrokerFactory throws an exception
saying that the default attribute is not set in the jdbc connection
descriptor. This is puzzling because I have set the 'default=yes' in
the repository.xml file (is it this file? - sorry I'm working from
memory because all this stuff is on another pc).

I guess from this that for some reason my OJB.properties file is not
being read. Where should this file be? I've read that it is loaded from
the classpath - I'm not entirely clear on what this means...!

Where do I put this file?
If it is not found would I expect a more serious exception or would OJB
quietly carry on until I tried to create a PersistenceBroker?
Is there some way to get more info on this exception?

Thanks in advance,

Jezzer
 
J

Jezzer

Hi all,

Well, I found the solution. Turns out that I was missing the
repository_user.xml file! The error message is, of course, entirely
misleading.

I have a new question now - I need to be able to force OJB to re-use a
JDBC Connection that I have already created. I know I can extract the
Connection object from OJB but how can I force it to use one that
already exists? I'm doing this because we need to mix plain JDBC
updates and OJB updates and have them all committed together....

thanks for any help...

Jezzer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,058
Members
48,769
Latest member
Clifft

Latest Threads

Top