Re: OJB Setup in Eclipse Help Requested

2003-06-22 Thread Thomas Mahler
Hi Jim,

I'm, doing all my OJB development and debugging in eclipse. works great.
try to checkout OJB from the CVS server.
there are some special eclipse files that will help to build up the 
build path etc correctly.

Once you checked out everything from CVS follow these steps:
1. change to the eclipse-workspace/db-ojb directory
2. execute ant prepare-tutorials
3. edit the file target/test/ojb/repository_database.xml
   change the line dbalias=../OJB
   to dbalias=eclipse-workspace/db-ojb/target/test/OJB
4. start debugging from eclipse
I hope this gets you started,
Thomas
Jim Shingler wrote:
Hey All
 
Help,  I would like to be able to compile OBJ and Test directly in
Eclipse and run individual test.  Everything works fine as long as I use
the build.[bat][sh] file.
But I would like to use eclipse directly. 
 
Any Pointers would be greatly appreciated.
 
Jim Shingle



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: OJB Setup

2003-02-18 Thread Armin Waibel
Hi Lennart,

- Original Message -
From: Lennart Benoot [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 18, 2003 4:18 PM
Subject: OJB Setup


 Hi All,

 While trying to setup ObJectRelationalBridge, I created a test project
and
 copied all necesary files from the example in test1. Everything was
very
 clear. Then I copied code from tutorial 1:


  try
  {
  broker = PersistenceBrokerFactory.
  createPersistenceBroker(new
PBKey(repository.xml));
  }


 This failed over and over again. After half a day I started reading
the
 code. In PBKey.java it came to my attention that the filename
 repository.xml is not the parameter expected. Instead it seems that
it
 should be the name of the jdbc connection (jcd-alias). Am i right
here?

Yes!
Please use the long version of PBKey
constructor (new PBKey(jcdAlias,user,pw)) to
avoid running in a small bug occur when using new PBKey(jcdAlias).
This bug was fixed in CVS.

Sorry for the hassle, we did massive code changes from
0.9.8 to 0.9.9 and I forget to check the tutorial stuff.
It's on my todo list.

regards,
Armin


 regards,
 Lennart


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: OJB Setup

2003-02-18 Thread Ricardo Tercero Lozano

You could use

broker = PersistenceBrokerFactory.defaultPersistenceBroker();


 if you only want to connect from the default connection (and if you
only has one connection configured).


Ricardo.


-Mensaje original-
De: Lennart Benoot [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 18 de febrero de 2003 16:18
Para: [EMAIL PROTECTED]
Asunto: OJB Setup


Hi All,

While trying to setup ObJectRelationalBridge, I created a test project and 
copied all necesary files from the example in test1. Everything was very 
clear. Then I copied code from tutorial 1:


 try
 {
 broker = PersistenceBrokerFactory.
 createPersistenceBroker(new PBKey(repository.xml));
 }


This failed over and over again. After half a day I started reading the 
code. In PBKey.java it came to my attention that the filename 
repository.xml is not the parameter expected. Instead it seems that it 
should be the name of the jdbc connection (jcd-alias). Am i right here?

regards,
Lennart 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]