Hmm, am looking at tutorial and your code and found a couple minor
issues with the tutorial (which I wrote, ack!) where I didn't c&p the
finished code snippet into it (hmm, Anakia feature: intelligent include
of code snippets which it magically understands it needs).
Off the top of my head,
Hi Reinhard,
don't know which version of OJB you use (think
it's an older version), but in current version something
similar done when using 'validationQuery' attribute.
See
http://cvs.apache.org/viewcvs.cgi/db-ojb/src/java/org/apache/ojb/broker/
accesslayer/ConnectionFactoryPooledImpl.java
What
Armin
what happens when you set the connection pool to test connections
using these flags ?
If it finds dead connections
1. Does it drop them and reconnect them or just drop them ?
2. If it just drops them, what happens when the broker goes to
borrow from the pool and f
If you want to treat all objects "equally", they all have to have common
oid field. You can do that by having single persistable base class, but I
don't think that's "necessary".
|-+--->
| | battjt |
| | <[EMAIL PROTE
Hi Armin,
yes I think so. A 'refresh()' would make sense. Because there are a lot of
situations where the connection to the database can be lost. And when I look
in archive for similar situations, there are some of them. I saw, there is
just a 'connection.isClosed()' in
ConnectionFactoryConPooledI
Hi Alexander,
You're right. I've not used anonymous keys like this before (although, I
do use them in my app). Maybe I should look further into it!
Sorry I couldn't help-just thought I'd have a go ;)
Cheers,
Raymond
Alexander Prozor wrote:
Hello Raymond,
I think now if example is correct:
htt
Hello Raymond,
I think now if example is correct:
http://cvs.apache.org/viewcvs/db-ojb/xdocs/howto-use-anonymous-keys.xml?rev=HEAD&content-type=text/vnd.viewcvs-markup
Desk contains collection of things and reference to the finish .
It's almost identical to my app :(.
but for me it doesn't work.
B
Hi Alexander,
I think the problem here is your definition of the UserScreenDefinition
class in the mapping file. Basically, you have:
name="rootControlDef"
class-ref="efi.base.presentation.formdefinition.CompositeControlDefinition"
>
defined in the mappi
Hello Raymond,
child classes store in DB successfully.
problem exists only when I try to persist main class.
--
Best regards,
Alexandermailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTE
Hello Raymond,
sure, I've defined this field in mapping.
there are ddl and repository_user.xml files from this project.
RB> Is "userDefinitionScreenID" a field defined in your mapping? ie. this
RB> has to be the name attribute of a field-descriptor definition. Something
RB> like:
RB>
Hi Alexander
Is "userDefinitionScreenID" a field defined in your mapping? ie. this
has to be the name attribute of a field-descriptor definition. Something
like:
name="userDefinitionScreenID"
column="_idA"
jdbc-type="INTEGER"
access="anonymous"/>
Maybe if y
Hello All,
I've tried to use such scheme as described at :
http://cvs.apache.org/viewcvs/db-ojb/xdocs/howto-use-anonymous-keys.xml?rev=HEAD&content-type=text/vnd.viewcvs-markup
but I got such exception :(.
In few words my prog contains 3 classes
class A contains
collection B
collection C
B contai
> fixed the bogus sql bug.
> please use the latest SqlQueryStatement from repository.
Beautiful! It seems to work perfectly - I haven't been able to break it yet
;-)
> you should not use the name of a relationship in a user alias, in the
> best case it will have no effect ;)
Ah really? Well it
java.lang.Object doesn't have an ID field. Are you suggesting that I
change my datamodel to have a single peristable super class?
Joe
[EMAIL PROTECTED] wrote:
What you need to do, is create a class-descriptor that describes "Object",
and all it's persistent derivative objects. Then OIDs are
Hi,
In order to work I Had to put in the file build-torque.xml :
userid="my_real_user"
password="my_real_password"
instead of
userid="${databaseUser}"
password="${databasePassword}"
I have already checked the settings in profile\postgresql.profile .
junit (db-ojb-1.0.r
Armin,
Whew, thanks. Panic over. Still I am re-architecuring a bit for
performance so the original broker will be around long enough with it's
cache.
Proxy was associated with PBKey of the 'original' broker and try find
an open PB instance with the same PBKey for the current thread, else
PB-poo
When I try to do broker.store(Myobject.class), if a violation of Oracle
constrain occurs, OJB seems to eat up the error message and doesn't display
any warning or error message at all.
Is this the normal behavior of OJB or did I miss any thing?
Thank you!
Lucy
Hi David,
- Original Message -
From: "David Warnock" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 7:59 PM
Subject: Re: What broker gets used by proxies?
> Can anyone help answer this question:
>
> What broker is used to fill proxied collectio
What you need to do, is create a class-descriptor that describes "Object",
and all it's persistent derivative objects. Then OIDs are unique across
the whole system, and more imporantly when you load an Object.class with
OID 5, it will know it has to look at all the tables to find it.
|
Hello,
Is unicode supposed to work in oql queries?
For example I have: Select objects from com.xyz.Customer where name like
"???"
And I get a antlr.MismatchedCharException thrown by antlr.CharScanner to
OQLLexer.nextToken which rethrows it as a TokenStreamRecognitionException.
It appears to not
Has anyone used OJB with a commercial JDO implementation? (esp. Solar
Metric?) If so, could you give an idea of the work required to integrate
the two?
thanks,
Alex
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
Then how do I convert '5' into an object? Don't I still need to use a
org.apache.ojb.broker.Identity? How do I allocate an Identity if I don't
know the class?
Joe
Lance Eason wrote:
Just add an attribute "globalSequenceId" with a value of "true" to the entry for the sequence manager in your re
GentleFolk,
I'd love someone to point me to the junit example of the 1:1 association,
particularily one that stores the associated object tree. I've looked at
the OneToOneTest,PersistenceBrokerTest, and BrokerExamples
without a clue as to how it should be done. Maybe I don't understand,
but I'd
Hi again,
each thread have to use it's on PB
instance --> different connections
Normally the steps are:
0. get PB instance from pool
(1 - PB Creation)
2 - PB beginTransation
3 - PB store
4 - PB commitTransaction
5. do PB.close() in finally block to
return PB instance back to pool.
regards,
Armin
hi michael,
fixed the bogus sql bug.
please use the latest SqlQueryStatement from repository.
jakob
Michael Hart wrote:
Hi Jakob,
i did some tests with empty criteria and imo this works ok:
Oops... you're right - the example I gave was too minimal :-) Here's a
better one:
Criteria main_
Just add an attribute "globalSequenceId" with a value of "true" to the entry for the
sequence manager in your repository file.
-Original Message-
From: battjt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:06 PM
To: OJB Users List
Su
I'm still trying to port our applications from Poet to OJB.
Poet has a concept of an object ID, OID. I added the id as a field on
each of our objects and map that to the ID column from Poet. The
problem is that the OID is global. Given a long, Poet returns an
Object. 'Identity's in OJB are
Can anyone help answer this question:
What broker is used to fill proxied collections when the original broker
has been returned to the pool?
Thanks
David
If I do the following pseudo code what broker is used to fill the proxies?
get a broker
execute a query and get back some contact obje
no new status so far :-(
Edson Carlos Ericksson Richter wrote:
Any news?
Thanks,
Edson Richter
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.484 / Virus Database: 282 - Release Date: 27/5/2003
-
Hi Folks,
Just looking for a way to retrieve different views of data, the scenario
is this. I have a table (table1) with a relationship to another table
(table2), at times I may want to retrieve all the information from
table1 and the related information from table2, however, there are other
Hi Armin,
> -Messaggio originale-
> Da: Armin Waibel [mailto:[EMAIL PROTECTED]
> Inviato: mercoledì 28 maggio 2003 18.45
> A: OJB Users List
> Oggetto: Re: OJB System Test ISSUES
>
>
> Hi Pier,
>
> - Original Message -
> From: "Pierfranco Lai" <[EMAIL PROTECTED]>
> To: "'OJB Use
Any news?
Thanks,
Edson Richter
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.484 / Virus Database: 282 - Release Date: 27/5/2003
smime.p7s
Description: S/MIME cryptographic signature
hi michael,
you should not use the name of a relationship in a user alias, in the
best case it will have no effect ;)
when you do not define your own alias ojb uses the name of the
relationship as 'internal' alias.
i'll have a look at your problem using an empty criteria.
hth
jakob
Michael Hart
Hi Pier,
- Original Message -
From: "Pierfranco Lai" <[EMAIL PROTECTED]>
To: "'OJB Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 6:02 PM
Subject: OJB System Test ISSUES
>
> I've developed a application with Struts, OJB rc3, Oracle App Serv
OC4J 903
> and Oracle 8 DB.
>
>
Hi,
I am using OGMG and would like to construct queries based on date-time select
criteria, e.g.:
select d from foo.bar.Deployment where name="foobar" and startDate="Wed Dec 31
16:00:00 PST 1969"
However, the above does not work. The mapping for the startDate field (a java Date
object) is:
I've developed a application with Struts, OJB rc3, Oracle App Serv OC4J 903
and Oracle 8 DB.
Now I'm stress-testing the application with JMeter: 5 concurrent users with
3 different http request.
Some questions:
1)
It seems that the begin, commit and abort transaction funct have effect to
all th
Hi Michael,
I tried do that but pbx.getCause() is not PersistenceBrokerSQLException.
pbx.getSourceException() is instance of SQLException and the cause is
"Duplicate entry 'xx' for key2". I can use this message to do exception
handling. However, I was wandering if it is a generic way to find t
After using OJB on a number of web projects, I keep encountering the same
problem of updating partial object data from a struts form. for example, an
object might contain 10 fields, with one PK and a few FKs. the form however,
only contains 5 fields. Since the update action doesn't get a hold of th
38 matches
Mail list logo