All,
Should we all times use the Read lock when we manipulate a jdo for reading?
If yes, should we have to commit in order to release all locks or should we
abort the current transaction?
I thought it was important to systematically use the lock with all mode
(even READ) in order to
Hello All,
i have the following problem (maybe a configuration problem but i don't
know where).
Tables:
user (id,username)
role (id,rolename)
userrole (userid,roleid)
i use non-decomposed mapping with the PersistenceBroker API and
ManageableArrayList.
broker.beginTransaction();
Hi,
I upgraded from ojb0.9.5 to 1.0 rc4.
Some of my unit tests fail because sometimes foreign key values (1 - N relationship)
are not stored :
Example :
-
// Create productgroup
ProductGroup pg = new ProductGroupBean();
Hi Matthias,
Hi
I try again to get help from some one. We try to run
multiple users (up to 3000) to a webbased prototype that uses OJB and
runs on Websphere 4.x on z/OS. The Database is DB2.
Run the tests with one user works. Run the test with more
then one (50 or
100) we get
in moste
Hi Gus,
Yes, I hope to get my hands on the open JDO issues very soon!
Thomas
-Original Message-
From: Gus Heck [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 7:59 PM
To: OJB Users List
Subject: Re: JDO Bug (status please)
I just got bit by this, despite the fact I
Hi,
I debugged the OJB source code, and indeed the foreign
key value itself will be set to null if the related object
is not filled in. (PersistenceBrokerImpl - assertFkAssignment)
So my example works when the related object is filled in : ar.setProductGroup(pg)
Is there a workaround for this ?
I
Thanks for everyone, I just moved the files to WEB-INF/classes and worked.
Unfortunatelly, in the OJB.properties, I had to write the fully static
directory to the repository file running at Tomcat.
repositoryFile=../webapps/maritima/WEB-INF/classes/repository.xml
Is that right? There is
try using p6spy to check your access and queries into the database, as
db versions are diferent.
www.p6spy.com
Anish wrote:
Hi all,
i have an application which uses mysql and OJB. in the local
machine it runs. but when i uploaded to the server it doesnt. and
problem is that i cant view the
Hi all,
I would like to map an M:N relation WITH ATTRIBUTES but seem to be
unable to do it with OJB...
By WITH ATTRIBUTES I mean that there is typically some more fields in
the indirection table than just foreign keys.
Do I have to use 1:N N:1 mapping instead?
A dummy example:
Table
Rogerio Tambellini dijo:
Thanks for everyone, I just moved the files to WEB-INF/classes and worked.
Unfortunatelly, in the OJB.properties, I had to write the fully static
directory to the repository file running at Tomcat.
repositoryFile=../webapps/maritima/WEB-INF/classes/repository.xml
I
Hi,
- Original Message -
From: Armin Waibel [EMAIL PROTECTED]
To: OJB Users List [EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 8:41 PM
Subject: Re: deadlock in transaction.lock
Hi,
Jair da Silva Ferreira Júnior wrote:
Hi,
I am using ojb1.0_rc4, ODMG api with OJB
Hi Reda. I´m working on this problem through the implementation of specific
MtoNImplementors.
I dunno when I´ll be able to finish this.. but this is supposed to solve problems like
yours.
On Wed, 3 Dec 2003 13:22:54 +0100, Reda Benzair [EMAIL PROTECTED] escreveu:
De: Reda Benzair [EMAIL
Where would the Comment field be stored in the Java objects ? If you have
a separate Java class for the connection between Employees and Companies
which contains the Comment field, then you already have manual
decomposition (see
Hi Frank,
I upgraded from ojb0.9.5 to 1.0 rc4.
Some of my unit tests fail because sometimes foreign key values (1 - N
relationship) are not stored :
Example :
-
// Create productgroup
ProductGroup pg = new ProductGroupBean();
We are trying to deploy an application as a single jar file. But we cant
seem to get the OJB subsystem to load its files from inside the jar.
any suggestions?
Jason Pyeron
On Wed, 3 Dec 2003, Antonio Gallardo wrote:
Rogerio Tambellini dijo:
Thanks for everyone, I just moved the files to
Greetings OJB-users,
I am currently looking into a viable solution for the following problem:
I have two different connection-descriptors (and thus two different
jcdAliases, let's call them ALIAS1 and ALIAS2) pointing to the same
Oracle database but logged in with two different users (let's
Hi Martin,
with latest version from CVS (upcoming next release) it is possible to
define the ObjectCache per class/per jdbc-connection (and a default
cache in OJB.properties).
More info you can find in the ObjectCache documentation of CVS version.
Build docs with
bin\build.bat htmldoc
or
It still not working... :-(
Do I have to implement a store procedure and create OJB tables like
OJB_NEXTVAL_SEQ?
My repository.xml:
sequence-manager
className=org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl
attribute attribute-name=grabSize attribute-value=20/
Hello Armin,
Armin Waibel wrote:
with latest version from CVS (upcoming next release) it is possible to
define the ObjectCache per class/per jdbc-connection (and a default
cache in OJB.properties).
Excellent; thanks for the quick info. I was about to do a checkout from
CVS anyway to get the
Jason Pyeron wrote:
We are trying to deploy an application as a single jar file. But we cant
seem to get the OJB subsystem to load its files from inside the jar.
any suggestions?
I suggest you provide the list with error messages and details about
what you have tried that didn't work,
hi john,
do you have an up-to-date version of this patch you could post on the list ?
jakob
John wrote:
I figured that would fix it, but I also figured that was in there for a reason
and I didn't want to change something I didn't completely understand. That's
mainly why I asked why it had to
Greetings all,
I am attempting to get a simple inheritance structure working under OJB
1.0rc4 running under Jboss with postgres. Here's the background:
Repository.xml fragment:
class-descriptor
class=com.steelpagoda.fist.model.PersonImpl
table=people
!--
Hi everybody,
i've a problem of performance. OJB lasts more and more time to store objects
in my DataBase. I thougth it was due to objects but it steadily increases.
Is it a problem of memory (with java) or is it due to OJB ?
Hi all,
Each time when create a OQL Query with
OQLQuery query = odmg.newOQLQuery();
I get the following error message:
java.lang.NoClassDefFoundError: antlr/TokenStreamException
at org.apache.ojb.odmg.OJB.newOQLQuery(Unknown Source)
at
Hi,
I'm not able to create tables (OJB tables) and modify the column names,
so I cannot use SequenceManagerHighLowImpl, then I changed to
SequenceManagerNextValImpl hopping it would work. Unfortunatlly, it's
not working, but I discovery 1 problem, and I'd like to know how it
would be handled.
Hi folks,
I am trying to implement a 1:n association that I can navigate both ways.
I am already doing the 1 --- N navigation normaly.
But when I try do the N --- 1 navigation like being a 1:1 my eclipse is crashing
javaw...
How can I provide both way navigation to my 1:N associations ?
Original Message
Subject: How collection data stored in db
Date: Tue, 2 Dec 2003 20:33:22 +0100 (MET)
From: Damir Dulitz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
In the ojb tutorial (http://db.apache.org/ojb/tutorial3.html) there is
example for a 1:n mapping.
But how and where
Hey Wally,
So if I call broker.resolveAllReferences(obj); in my generic store method, I
should be able to remove my hack that stops OJB from setting my foreign keys
to null? I guess this may slow things down a little but I prefer to get rid
of my custom OJB code.
Graham
-Original
Hi,
I suspect that you have refresh=true creating an infinite loop. Try
removing at least one refresh attribute.
Wally
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 7:50 AM
To: [EMAIL PROTECTED]
Subject: 1:n associations -
That was it! Thanks to your help!
Rolf
-Ursprüngliche Nachricht-
Von: Jakob Braeuchi [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 3. Dezember 2003 21:17
An: OJB Users List
Betreff: Re: Problems with OQLQuery
hi rolf,
do you have antl.jar or antlr.debug.jar in your classpath ?
jakob
hi andy,
please try adding the following method to CollectionDescriptor
public FieldDescriptor[] getForeignKeyFieldDescriptors(ClassDescriptor aCld)
{
if (isMtoNRelation())
{
// BRJ: answer pkFields of referenced Class
return aCld.getPkFields();
}
Hi,
The deadlock occurs when locking the objects. More specifically, in the
first write-lock of the object which happens to persists it.
These are my locking properties in OJB.properties:
LockManagerClass=org.apache.ojb.odmg.locking.LockManagerDefaultImpl
I'm using Log4J instead of PoorMansLogging and could not figure out how
to remove the following debug from my logs
2003-12-03 12:02:11,124 DEBUG [Finalizer] Host: IP: Session: PINID:
UID: DEFAULT -
[EMAIL PROTECTED]
CACHE STATISTICS
Count of cached objects=0
lookups=0
failures=0
Hi all,
I'm trying to solve a small problem with the ODMG DList - we have created a
class called TypedSet inherited from the OJB DListImpl. That's all fine and
good, except when we have cleaned up all our objects there are a large number of
entries still in the OJB_DLIST and OJB_DLIST_ENTRIES
34 matches
Mail list logo