Problem with OJB-JDO plugin and proxy classes

2004-05-04 Thread Alexandre BOISSEAU
Hi, I have problems when using proxy class : With the tutorial example : Loading of Article objects for a given ProductGroup works correctly, but when I try to load Article objects only, the search always returns nothing. Removing proxy from Article class-descriptor fixes the problem (search

Re: client-server Object Caching

2004-05-04 Thread Armin Waibel
Hi Amol, I read your previous posts carefully too, but I'm not sure that I can help. Amol Pophale wrote: Hi All, Please read carefully and suggest me solution. I am working with one MNC s/w company.My application is web-based client-server application in which client and server are on different

Re: client-server Object Caching

2004-05-04 Thread Amol Pophale
Hi Armin, Thanks anyway for the reply read inline comments with block letters. Regards, Amol --- Armin Waibel [EMAIL PROTECTED] wrote: Hi Amol, I read your previous posts carefully too, but I'm not sure that I can help. Amol Pophale wrote: Hi All, Please read carefully and suggest

Re: Problem with OJB-JDO plugin and proxy classes

2004-05-04 Thread Brian McCallister
I believe, though lack first hand knowledge, that Thomas M. said the JDORI plugin doesn't work with proxies. That is its big drawback =( -Brian On May 4, 2004, at 4:16 AM, Alexandre BOISSEAU wrote: Hi, I have problems when using proxy class : With the tutorial example : Loading of Article

RE: client-server Object Caching

2004-05-04 Thread Guillaume Nodet
I think the only way for the client to be aware of server-side modifications to the database is to use a distributed cache (OSCache, Swarmcache, jcs, ...). The other way is, as Armin mentionned, not to use cache at all on the client. For other tools to do o/r mapping see

RE: How to test db connection on application startup

2004-05-04 Thread Guillaume Nodet
The validation query is used by ojb when it retrieve a connection from the pool. It launches the validation query and if it fails, the connection is discarded and it tries to borrow a new connection from the pool. here is a snippet of the code i use to ensure the connection to the database is

Object Cache ERRORS! With ODMG! Please help!

2004-05-04 Thread Georg Klima
Hello! I don't know what I do wrong? Tried all the tutorials, they work, use the same hsqldb as in the tutorials (earlier tried with mysql). jdbc-connection-descriptor jcd-alias=default default-connection=true platform=hsqldb

OJB EJB on Weblogic using Oracle

2004-05-04 Thread Zhou, Andrew
Hi Guys, Just new to this OJB world. Quite exciting. Well I am trying to create a simple stateless session bean using OJB to do database related work. My environment is as follows, Weblogic 7.2 SP2 OJB 1.0.rc3 Oracle9i So far I can get the object back through OJB, but I get in trouble when I do

1:1 bi-directional reference

2004-05-04 Thread Daniel Perry
I cant seem to figure out bi-directional references. Am I being thick? or do they not exist? I have two objects in a database, which need to be associated with each other (optionally). ClassB has a property ClassA me, and int meId. meId is mapped as an int, and me is mapped as a reference

RE: OJB EJB on Weblogic using Oracle - PB update problem

2004-05-04 Thread Zhou, Andrew
Now I strip out all logic from EJB session bean to a stand alone application and now my update also do not work. I am wondering if any setup wrong in OJB.properties or repository My repository look like, jdbc-connection-descriptor jcd-alias=repository.xml

Re: 1:1 bi-directional reference

2004-05-04 Thread Stefan Schlösser
Hi, Me too ! I'd like to add that if you model it with 2 fk's you'll get into a nice update problem. How do you ensure that the to fk's are consistent ? You'll have to program something manually. Since I use a generic access to my value object the solution with the one-element-list doesn't

Re: OJB EJB on Weblogic using Oracle

2004-05-04 Thread Armin Waibel
Hi Andrew, Zhou, Andrew wrote: Hi Guys, Just new to this OJB world. Quite exciting. Well I am trying to create a simple stateless session bean using OJB to do database related work. My environment is as follows, Weblogic 7.2 SP2 OJB 1.0.rc3 Oracle9i rc3 is really outdated (recommend to update to

Re: OJB EJB on Weblogic using Oracle - PB update problem

2004-05-04 Thread Armin Waibel
Hi Andrew, Zhou, Andrew wrote: Now I strip out all logic from EJB session bean to a stand alone application and now my update also do not work. you set 'useAutoCommit=0' in your standalone app. This is problematic because OJB does not try to change the autoCommit state. If in your DB

Re: Object Cache ERRORS! With ODMG! Please help!

2004-05-04 Thread Armin Waibel
Hi Georg, this isn't a cache problem. The CCE is caused by line result = (ManageableCollection) collectionClass.newInstance(); All specified collection classes must implement interface ManageableCollection, more see

RE: OJB EJB on Weblogic using Oracle - PB update problem

2004-05-04 Thread Zhou, Andrew
Armin Thanks for your reply. I made some progress on debugging my problem. Instea of set useAutoCommit=1, I did my test by do a direct INSERT. Amazing my java application works. I can see new row created in table. Seems like as long as I touch key-field OJB will figure that there is difference

Re: client-server Object Caching

2004-05-04 Thread Armin Waibel
Hi again, Amol Pophale wrote: ... So you use PB-api only for read-only operations and persist objects via the server - right? And on the server you don't use OJB? Can you describe a little more? YES U ARE ABSOLUTELY CORRECT I AM MOT USING OJB ON SERVER SIDE. ... I CANT FIRE QUERIES EVERYTIME ON

RE: OJB EJB on Weblogic using Oracle - PB update problem

2004-05-04 Thread Zhou, Andrew
One more find, I am doing a silly update, the field I try to update is not even configured in repository-.xml! That is why it never get committed to database! -Original Message- From: Zhou, Andrew Sent: Tuesday, May 04, 2004 12:08 PM To: OJB Users List Subject: RE: OJB EJB on

Re: OJB EJB on Weblogic using Oracle - PB update problem

2004-05-04 Thread Armin Waibel
Zhou, Andrew wrote: One more find, I am doing a silly update, the field I try to update is not even configured in repository-.xml! That is why it never get committed to database! this is called the human factor ;-) Armin -Original Message- From: Zhou, Andrew Sent: Tuesday, May

Re: java.lang.ExceptionInInitializerError

2004-05-04 Thread Fiona Magner
Hi, I had a similar problem when I started up with OJB and it took me nearly a week to figure it out :) I think it could be that your OJB.properties file is not being seen by your application. So you might either need to put it in your classpath or else set your working directory to the same

N:M relations problem/question - unwanted deletions

2004-05-04 Thread Emmanuel Mascarenas
Hi Armin, I'm using db-ojb-1.0.rc6 and I change the collection-class as you write, but it still deteting the object, I'm also change the auto-update and auto-delete with every possible value (true,fasle,none) and this not chage the result. Object code: /** @ojb.collection *