Is it possible for an object to have a reflexive collection? ie a collection of
itselfs?
Eg, Class person has:
/**
* @ojb.collection element-class-ref="Person"
* indirection-table="friends"
* foreignkey="personId" remote-foreignkey="friendId"
* prox
ent);
> attachment.setActivity(activity);
> ...
>
> regards,
> Armin
>
> Daniel Perry wrote:
> > Not sure if this is really an bug, or just a 'feature', but
> things dont get
> > linked under certain curcumstances.
> >
> >
005 17:26
> To: OJB Users List
> Subject: Re: PB linking problem
>
>
> On 11/4/05, Daniel Perry <[EMAIL PROTECTED]> wrote:
> > Not sure if this is really an bug, or just a 'feature', but
> things dont get
> > linked under certain curcumstances.
> >
&g
Not sure if this is really an bug, or just a 'feature', but things dont get
linked under certain curcumstances.
I have two objects: activity, and attachment.
An activity has a collection of attachments.
/**
* @ojb.collection element-class-ref="com.netcase.pol.bo.Attachment"
s in class file) to
people using it properly!
Daniel.
> -Original Message-
> From: Thomas Dudziak [mailto:[EMAIL PROTECTED]
> Sent: 07 September 2005 15:36
> To: OJB Users List
> Subject: Re: Boolean2IntFieldConversion with TINYINT
>
>
> On 9/7/05, Daniel Perry &l
B Users List
> Subject: Re: Boolean2IntFieldConversion with TINYINT
>
>
> On 9/7/05, Daniel Perry <[EMAIL PROTECTED]> wrote:
>
> > The following works fine:
> >
> > /**
> > * @ojb.field jdbc-type="INTEGER"
> > *
> >
> conversion
er 2005 09:18
> To: OJB Users List
> Subject: Re: [junk] Re: Boolean2IntFieldConversion with TINYINT
>
>
> On 9/7/05, Daniel Perry <[EMAIL PROTECTED]> wrote:
> > What i mean, is that you cant do:
> >
> > > name="deleted"
> > column="deleted&q
ject: [junk] Re: Boolean2IntFieldConversion with TINYINT
>
>
> Daniel Perry wrote:
>
> > Boolean2IntFieldConversion mapped as a TINYINT - it MUST be INTEGER!!!
> I don't know what you exactly mean but we use this and it works out fine.
>
>name="deleted"
>
A warning to anyone else who might try this:
Just been struggling with IllegalArgumentExceptions on boolean fields.
Anyway, it turns out that you cant have a boolean with
Boolean2IntFieldConversion mapped as a TINYINT - it MUST be INTEGER!!!
Daniel.
-
> -Andrew
>
>
>
> > -Original Message-
> > From: Daniel Perry [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 01, 2005 10:38 AM
> > To: OJB Users List
> > Subject: xdoclet module with Java 1.5
> >
> > Hi,
> >
> > I&
Hi,
I'm trying to use the OJB xdoclet module (from 1.0.3 download) with java 5
generics.
The following:
ArrayList generic = new ArrayList();
gives an error:
[ojbdoclet] Error parsing File C:\java\pol\src\java\Test.java:Encountered
"<" at
line 11, column 27.
[ojbdoclet] Was expecting one of:
OJB warns you every time you write to the database without doing so in a
transaction.
If you dont have any need for a transaction, then thats acceptable... but it
will WARN you!
It's considered best practice to perform writes in a transaction, especially
when there are multiple associated writes!
Pypec [mailto:[EMAIL PROTECTED]
> Sent: 22 December 2004 12:56
> To: ojb-user@db.apache.org
> Subject: Re: Using proxies with ODMG.
>
>
> Dnia środa, 22 grudnia 2004 12:02, Daniel Perry napisał:
> > What code is trying to cast it?
> >
> > Are you casting the r
I dont think such a list exists. What sort of security vunerabilities are
you talking about? Due to the nature of OJB i cant think of any security
vunerabilities it could suffer? OJB doesnt store any data itself. Any
vunerabilities i can think of would be introduced by a database server ojb
is u
What code is trying to cast it?
Are you casting the result to "tutor.ojb.testproxy.Actor" or an interface
that this class implements?
The reference should be to the Actor class, but when you retrieve the
object, you cannot cast it to Actor, as it will be a proxy of actor, which
implements the sam
+1
Works a treat. Especially with proxied collections as they are only loaded
as they are read, so you can just use the object and it wont load the
collections, but as soon as you access one it will load it. As JSPs only
access the object as a bean via reflection, you can always replace it with
dif
Taken from: http://db.apache.org/ojb/docu/guides/query.html#Report+Queries
Report Queries
Report queries are used to retrieve row data, not 'real' business objects. A
row is an array of Object. With these queries you can define what attributes
of an object you want to have in the row. The attribut
> Hi,
>
> I believe the reason that you've not had any answers on questions relating
> to OJB-JDO plugin is that few people are using it.
Yup. Never tried it. I tend to stick to the PB api, and make a little use
of the ODMG API. I find the PB api to have much better performance. Yeah i
know it'
Not sure if there's an easier way, but you can modify the criteria/query
used in collection descriptors by writing a class that implements
QueryCustomizer. This class can do anything with the
Criteria/QueryByCriteria in use.
Then specify it in your collection-descriptor:
Note you can pass att
that is of help to someone,
Daniel.
> -----Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: 08 December 2004 10:32
> To: OJB Users List
> Subject: RE: p6spy
>
>
> Well, i added:
> com.mysql.jdbc.Driver a = new com.m
> when resolving the path meeting.pdp.createdBy ojb looks for a
> collection- or
> reference-descriptor called 'meeting' and it uses the referenced
> class to reolve
> further path-segements 'pdp'. so if the class referenced by
> 'meeting' does
> not have a reference-descriptor named 'pdp' ojb
No problem...
Instead of doing:
broker = PersistenceBrokerFactory.defaultPersistenceBroker();
Use
broker = PersistenceBrokerFactory.createPersistenceBroker(new
PBKey("jcdAlias"));
Where jcdAlias is the alias you gave the connection in
repository_database.xml.
I'm pretty sure you can do it using
Have you got a default connection-descriptor set up in
repository_database.xml properly?
Are OJB.properties/repository***.xml (x4) all in classpath?
Daniel.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: 08 December 2004 10:50
> To: [EMAIL PROTECTED]
>
It apprears that ojb doesnt like criteria at depths that go beyond an
extent.
My criteria is:
crit.addEqualTo("behaviourId", new Integer(id));
crit.addLessThan("rating", new Integer(1));
crit.addEqualTo("meeting.pdp.createdBy", new Integer(mid));
And this generates the following sql (shortened!):
it seems to be working. In the faq i found it
doesnt mention that you need to copy this file into the classpath!
Daniel.
> -Original Message-
> From: Armin Waibel [mailto:[EMAIL PROTECTED]
> Sent: 07 December 2004 19:28
> To: OJB Users List
> Subject: Re: p6spy
>
>
Simple question - how do i use p6spy?
I've recompiiled ojb with p6spy, and set mysql as the 'real' driver. I've
copied the jar file and p6spy's jar.
I've changed my repository to use p6spy (see below), and added the driver:
But i get the error:
[org.apache.ojb.broker.accesslayer.Connectio
s, but has extents
which do.
When i get back in an hour or so, i will try to get pspy6 to work, and
figure this out!
Daniel.
> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: 07 December 2004 15:35
> To: OJB Users List
> Subject: Circular criteria
&
I've got a bit of an odd criteria i need to specify, but i cant seem to get
it to work.
A has a reference to B, B has a reference to C. C had a reference to D. D
has a collection of Cs and a reference to the currentC.
I need to obtain all As where their C (via B) is current. Ie. such that
a.get
> [java] org.xml.sax.SAXParseException: Relative URI "jdo.dtd"; kann
> nicht ohne eine Basis-URI aufgel÷st werden.
My german aint great, but i think it means it cant find jdo.dtd Do you have
this file locally as i think you need it!
Daniel.
> -Original Message-
> From: [EMAIL PROTE
I'm dont think you can map one type to many tables. You can map extents
where you have more than one subclass, each mapped to a different table, and
then access the extent type - but i dont think it will like mapping multiple
tables to the exact same type.
I am, however, fairly sure that you can
E;
to:
return EMPTYCOLLEC;
This is causing it to change an empty vector into null on reloading the
class.
Thanks,
Daniel.
> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: 26 October 2004 15:55
> To: OJB Users List
> Subject: Bug in IntList2Va
Do you have "repoistory_internal.xml" as well? Or did you just miss this out
from the list below?
Daniel.
> -Original Message-
> From: Phillip Blevins [mailto:[EMAIL PROTECTED]
> Sent: 02 December 2004 16:13
> To: OJB Users List
> Subject: Re: OJB can't open database
>
>
> Tom,
>
> for my
7;somthing dont look right'. And
then INFO and DEBUG for development/debugging. However that doesnt
necessarily apply to everyone!
What are other peoples thoughts?
Daniel.
>
> regards,
> Armin
>
>
> Daniel Perry wrote:
> > I too have noticed these warnings. I have a couple
I too have noticed these warnings. I have a couple of apps where i have
used no transactions (as they seem pretty pointless for the apps in
question - all 'shared' data is read-only), and they are generating a LOT of
these messages as there is a lot of data access. This adds too much noise
to the
f ojb always someone answered me very soon ,
> as in this case , for very complicate thinks too.
> So I have to thanks all are involved in this work that is great
> Hasta luego
>
> -Mensaje original-
> De: Daniel Perry [mailto:[EMAIL PROTECTED]
> Enviado el
I believe this is because you have auto-retrieve="false" in the reference
descriptors. If you set these to true, the objects will be loaded.
Daniel.
> -Original Message-
> From: Alessandro Colantoni [mailto:[EMAIL PROTECTED]
> Sent: 24 November 2004 14:05
> To: 'OJB Users List'
> Subject
I second this, i have OJB deployed with 6 apps running in my tomcat dev
server. I never use shared libraries as it causes too much hassle - each
app has it's own OJB jar - and some are different versions.
If you've not got any shared jars, can you post a stack trace and a bit more
info about what
> the quickstart application (ojb-blank, with e.g. tutorial1 within)
>
> This should be runable withount _any_ domain-knowledge (except:
> Operating System Basics).
>
> If a team did not achieve that, then I name it: failure.
What??? OJB is most definately NOT designed for people without any domai
D]
> Subject: Re: [QUICKSTART] - A OJB quickstart similar to hibernate
>
>
> Daniel Perry wrote:
> [...] - (comments)
>
> Sorry, i cannot discuss essential project mechanics again.
>
> -
>
> [general remark]
>
> My main questions here is:
>
> Can the tea
> A team member suggested me to wait for your results.
>
> Thus, I expected of course a notification on this forum.
>
> > But the developer list contains a notification.
>
> I am a user - and as such I monitor only the user forum.
Your trying to contribute to the enhancement of OJB??? that makes
> Edson Carlos Ericksson Richter wrote:
> > Check "Java Tools documentation" in Java docs (downloaded separately).
>
> [I'm not interested in the documentation, but in the design-rationales.
> This is more out of curisity.]
I've often wondered if sun just got lazy :)
I think it's just that its ano
> >Thats ok, but be very careful with sequence managers - i know
> most of them
> >are NOT happy with other apps doing inserts! see:
> >http://db.apache.org/ojb/docu/guides/sequencemanager.html
> >
> >
> yes I have not Other solution I can not convert Webapp 2 to use same Ojb
> cache or OJB.
Thats
I think these comments would be fair for a commercial product, but you have
to remember that this is the open-source world, and people arnt paid to
answer questions in forums, it's entirely voulantary. When i'm not too busy
i often respond to messages on various lists (when i know the answer). My
> Hi All
> I use OJB for my Webapp Application ( Webapp1 + Tomcat + OJB+ Oracle) ,
> is very grood performance BUT
> I haver other Webapp 2 do not use the OJB but use same Tomcat and Oracle
> (Webapp2 + Tomcat + Oracle )
Thats ok, but be very careful with sequence managers - i know most of them
a
uld release
> the closed connection instance and I will do a minor refactoring of
> CollectionProxyDefaultImpl to handle the used PB instance more strict.
>
>
> regards,
> Armin
>
>
> Daniel Perry wrote:
>
> > I believe that I have solved this problem, and tha
|| (!isInLocalTransaction() && !isAlive(con)) )
Daniel.
> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: 02 November 2004 11:14
> To: OJB Users List
> Subject: RE: SQLExcpetion
>
>
> Once again our app has started getting these errors (s
Once again our app has started getting these errors (see trace below). It
seems to be happening after several days of operation.
The problem always seems to happen when iterating over a proxied collection
in a jsp (using jakarta JSTL c:forEach tag).
See comments below:
> Is the error always caus
t"
> proxy="true">
>
>
>
> If you know of a way for the foreign key to point from referrer_id to
> referral_id let me know.
>
> Thanks again.
>
>
> Charlie
>
>
>
> Daniel Perry said the following on 10/26/2004 4:24 AM:
>
&
I've just come accross a bug in class:
org.apache.ojb.broker.accesslayer.conversions.IntList2VarcharFieldConversion
.
On line 56 it currently has:
return NULLVALUE;
It should be:
return EMPTYCOLLEC;
The bug causes it to store a null value when it should store an em
If i'm understanding you, you want an Account to have a List/Collection of
Accounts?
That shouldnt be a problem. Just add a collection descriptor in the normal
fashion and it will give you that collection:
You can add a reference descriptor for 'parent' aswell. Note the proxy will
stop
the connection pool? As it's only when the
system has been running for a while that i see these errors, i figure if i
clear the pool every half hour, it should stop it!
Daniel.
> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: 11 October 2004 16:20
As far as i am aware (and i'm not a guru, and havnt used OQL for a long
while - i ditched it in favor of straing Criteria and QueryByCriteria code),
it should look like:
select id, a.b from MyClass order by a.b, id;
However, from what i remember OJB seems to ignore the select part, so you
proba
October 2004 16:59
> To: OJB Users List
> Subject: Re: HighLowSequenceManager chaos
>
>
> Hi Daniel,
>
> Daniel Perry wrote:
> > My repository_internal.xml didnt have the ObjectCacheEmptyImpl
> cache set up
> > for the hl_seq class, so it would have been using
quence-name="base-sequence"
> />
> ...
>
>
>name="id"
> column="ID"
> jdbc-type="INTEGER"
> primarykey="true"
> autoincrement="true"
> sequence-name="base-sequence"
&
.
> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: 18 October 2004 15:43
> To: OJB Users List
> Subject: RE: HighLowSequenceManager chaos
>
>
> Duh, cant use native - it's not extent-aware :(
>
> So, highlow seems to be working when i
twice!).
Could it be anything to do with caching of the HighLowSequence object?
Daniel.
> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: 18 October 2004 15:27
> To: OJB Users List
> Subject: RE: HighLowSequenceManager chaos
>
>
> Ok, so it i
alue equal to
> the max_key - 1. Then the max_key is increased by the grab size, and the
> sequence manager continues to issue primary keys until it exhausts the
> sequence again.
>
> Pulat
>
> Daniel Perry wrote:
> > Hi,
> > I've been trying to debug some prob
Hi,
I've been trying to debug some problems in our software, and it seems that
the High Low Sequence Manager has gone a bit mad!
I am seeing some wierd stuff going on - the sequence manager has NO
settings, so should be acting in the default configuration. The OJB_HL_SEQ
is showing grabsizes of 2
rned", sending trash in
> my network...
>
> Just my 2c,
>
> Richter
>
> Daniel Perry escreveu:
>
> >Hi all,
> >
> >One of our systems has been running fine (live) for the last few
> weeks until
> >yesterday when for about half an hour it starte
Hi all,
One of our systems has been running fine (live) for the last few weeks until
yesterday when for about half an hour it started randomly crashing. Since
then it has been fine! The (partial) exception trace is below. From what i
can figure the problem is coming from dud mysql connections.
I have it working in tomcat 5 and 4.
Is this under linux or windows?
Have you checked file permissions? (especially if XP and tomcat service ?)
Have you tried running tomcat in user mode rather than service?
Daniel.
> -Original Message-
> From: WHIRLYCOTT [mailto:[EMAIL PROTECTED]
>
It have it working fine (now), but i have encountered 'issues'.
The main problem i had was that although you use "localhost" in the jdbc
connection url, mysql doesnt think it is localhost.
So if you try to use a user that is restricted to localhost it doesnt work.
Instead you have to use the ful
There are endless ways of handling this "web transaction" problem. I dont know of any
patterns that fit all problems.
OJB could handle the transation for you:
You start a tranaction.
Load some data. (and lock it)
Store transaction in session.
User edit's the data and submits it.
You commit t
ss I would have to list all other
> classes as extents of this one.
>
> What does this mean for the performance of OJB? will OJB now query all
> 110 tables to find the right object?
>
> Since I know quite easily based on the first 3 letters of the OID what
> type it is, can I some
What about using an extent and having both types extend it. It would pick
the right class based on whichever table has an item with that primary key.
Daniel.
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Sebastian
> Sent: 02 June 2004 17:07
> To: [EMAIL PROTECTED]
I'm using latest stable mysql 4 with ojb and havn't had any trouble at all
with mysql.
No idea about your other problem!
Daniel.
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Paolo Salvan
> Sent: 01 June 2004 12:05
> To: [EMAIL PROTECTED]
> Subject: OJB and MySQL?
ceBroker.getCollecti
> onByQuery(DelegatingPersistenceBroker.java:331)
>
> d. You say that I should use an 'extra' attribute in class 'CityVO' to
> represent the 'foreign key' in the table. But, in my opinion, this breaks
> with OO design, as I am usi
I ended up spending time trying to understand proxies... confusing stuff
when you start out with ojb... these days it's making a little more sense :)
a. yes, it has to be of type StateProxy (the interface) as ojb will try to
instanciate it with a proxy object that implements the interface. If you
> Sent: 20 May 2004 09:45
> To: OJB Users List
> Subject: Re: Interfaces and collection-proxies
>
>
> hi daniel,
>
> when you use a collection-proxy tho whole collection is proxied
> so there's no
> need to define an interface for the contained classes.
>
The collection descriptor needs to be in the 1 side, not the n side...
eg.
say you had project - task mapping (1 - n respectively)
If in the task table you have fk_project_id, and project has id, and in your
classes Project.java has id and tasks field, and Task.java has projectId,
and in the rep
I know that I need to use interfaces for classes if they are proxied
individually, but if I am only proxying collections, do the items I am
proxying need to implement any interfaces?
Thinking about it with hindsight, I would assume not, and I can get rid of
dozens of needless interfaces! Can some
It's ok...
found the fix in BrokerHelper.java in cvs.
Daniel.
-Original Message-
From: Daniel Perry [mailto:[EMAIL PROTECTED]
Sent: 10 May 2004 12:35
To: OJB Users List
Subject: collection proxy gives sql error
sorry... not sure why i replied then... monday morning...
Upgraded t
addOrderByAscending("b.name");
Make sure you use capitalisation as per your repository.xml - normally why
things dont work for me on first try!
Daniel.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 10 May 2004 10:23
To: [EMAIL PROTECTED]
Subject: Setting add
sorry... not sure why i replied then... monday morning...
Upgraded to RC6, and everything seemed to be fine. until now :)
One bit of code (that grabs a list - proxied collection) causes some nasty
sql errors. Upon calling the .size() method it generates some sql (I'll
hazard a guess of a COUN
Upgraded to RC6, and everything seemed to be fine. until now :)
One bit of code (that grabs a list - proxied collection) causes some nasty
sql errors. Upon calling the .size() method it generates some sql (I'll
hazard a guess of a COUNT query) without a group by statement.
I seem to remember
y have been put to cache, so another thread
could find partial materialized objects, is fixed in rc6 and CVS head.
It's only speculation (maybe it's only a simple prefetching problem).
Do the same problem occur when a per broker cache was used
(ObjectCachePerBrokerImpl)?
regards,
Arm
Our large project is now reaching maturity, and is being trialed with some
users finally! Despite quite large object trees, it is performing well (our
strategy is proxying collections only). But we are having a few problems
with collection proxies.
Every now and then (it really is random!) acces
Our large project is now reaching maturity, and is being trialed with some
users finally! Despite quite large object trees, it is performing well (our
strategy is proxying collections only). But we are having a few problems
with collection proxies.
Every now and then (it really is random!) acces
ess to my value object the solution with the
one-element-list doesn't quite cut it for me ..
I'd quite like to see an inverse-foreign-key in a relation descriptor.
Any chance this is upcoming ?
Cheers,
Stefan
Daniel Perry wrote:
> I cant seem to figure out bi-directional references.
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 referenc
I looked at jasper reports, but it seemed difficult to do what i needed
(normal structured reports, and some very unstructured stuff)
Firstly i went down the iText route (java pdf library). Wouldnt do the same
again with hindsight - not enough control over positioning/margins
especially in tables
I take it that if you close the app, and load it again then the task
appears?
If so, i'd guess it's down to caching. I had this problem, although i'd
assumed that this was a 'feature'.
After each insert do:
PersistenceBroker broker =
PersistenceBrokerFactory.defaultPersistenceBroker();
broker.c
OQL style queries.
-Brian
On Apr 13, 2004, at 6:46 AM, Daniel Perry wrote:
> From my experience of using both (i ended up doing an ODMG -> OTM
> conversion!):
>
> Note that i dont any of the more complicated stuff - just storing
> object
> trees, collections, etc, and queryin
>From my experience of using both (i ended up doing an ODMG -> OTM
conversion!):
Note that i dont any of the more complicated stuff - just storing object
trees, collections, etc, and querying the database. Also i dont use locking
atall (one thing odmg does better i believe).
Go with OTM.
ODMG us
I am using this in a complex app (due to idiot admin users deleting stuff
they shouldnt!). All objects have a boolean (mapped to int) "deleted". For
all queries i look for objects with deleted=false. For relationships, i
wrote a querycustomizer which adds deleted=false to collections. (see below
OQL queries are different from sql.
You need to do something more like:
query.create("select ANYTHING from " + YOURCLASS.class.getName() +" where
id=null");
ANYTHING is ignored as far as I can tell so you really can put anything!
YOURCLASS is the name of the class you are querying (NOT THE TABLE
This has brought up an interesting question for me.
I am NOT using any anonymous keys, but i like the principle of them.
The majority of my work is web-based. Therefore, by not having PKIDs it's
much harder to pass references between requests.
Does anyone have any simple solutions to this problem?
>>If you want to start with the Java source (and have control over it), then
>>the easiest way would be to use the XDoclet module, in which case it
>>bascially amounts to adding special javadoc tags to your source code, and
>>then invoking an ant task in your build file that creates the repositor
to import some data from an existing MySQL database.
So it's pretty much "switching which database OJB uses".
Thanks,
Daniel.
-Original Message-
From: Gus Heck [mailto:[EMAIL PROTECTED]
Sent: 27 January 2004 00:49
To: OJB Users List
Subject: Re: HSQLDB -> MySQL 4 transit
I have an application that I need to move from OJB to MySQL 4, and I have a
couple of questions.
1. Can I (with any necessary SQL compatibility changes) just use the same
SQL I used to create the hsqldb database to create the MYSQL database? or
should I regenerate the SQL for the core tables? I a
I want to query the database and retrieve a specific manager, and only their
employees whoose training (boolean) matches the requirement. Instead of
getting one manager with the x (out of y) employees, i get x managers.
My code is: (getObjectsByType) is just a query by criteria shortcut.
Criteria
I've now bodged the ConnectionFactoryPooledImpl so that it monitors all jdbc
connections created, and releaseAllResources() now kills any unclosed
connections.
Probably not going to affect anyone not using hsqldb embedded (or any other
database that can only be opened once at a time). One side ef
After adding some lots of "System.out.println"s to
ConnectionFactoryPooledImpl, it would appear that somewhere OJB is not
returning a connection to the pool. When releaseAllResources() is called,
it calls close() on the GenericObjectPool. When this happens,
GenericObjectPool has one active connec
> this will not work, because this creates a new ConnectionFactory instance.
>From what i can make out, ConnectionFactoryFactory will always return the
same ConnectionFactory instance as it only creates a new 'singleton'
ConnectionFactoryFactory if static singleton is null, and then only creates
ons even if the connection pool is closed?
Thanks,
Daniel.
- Original Message -
From: "Daniel Perry" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 08, 2004 5:20 PM
Subject: ConnectionFactoryPooledImpl -> release
The releaseAllResources method in ConnectionFactoryPooledImpl is not
releaseing database connections.
I've been trying to debug it, but dont understand how the objectpool works,
and am now stumped.
This is causing big problems for my app as i have an embedded hsqldb which
needs to be released so
08, 2004 3:50 PM
Subject: Re: AW: j2ee.jar
> Are you talking about j2ee 1.3 or 1.4? because I've never been able to
> find the 1.4 jar without the whole app server...
>
> -Clay
>
> > You have to download the J2EE SDK!
> >
> > Cheers, André
> >
> >
&g
Not sure if i'm being rather inept, but i cant find the j2ee.jar file on suns site.
Do i have to download the entire J2EE SDK? or can i get this file on it's own?
Thanks,
Daniel.
I'm having a problem trying to release database connections.
Here's what i understand of how it works
I assume the PB opens data connections when it's first used. A
connectionfactoryfactory is created, and connections are opened by the
connectionfactory.
Now, to shut down the database, i releas
ying
> a persistent object outside of a transaction and forcing changes back
> in.
>
> -Brian
>
> On Jan 7, 2004, at 5:49 AM, Daniel Perry wrote:
>
> > I was just reading the tutorial on the PB API, and came accross a
> > slight error:
> > In the "D
1 - 100 of 130 matches
Mail list logo