RE: Persistence frameworks

2003-11-19 Thread Taillefer, Troy (EXP)
Markus,

KISS = Keep it Simple Stupid 

it is a very important tenet because sometimes people like to overcomplicate things.

Troy


-Original Message-
From: Markus [mailto:[EMAIL PROTECTED]
Sent: November 19, 2003 3:38 AM
To: OJB Users List
Subject: Re: Persistence frameworks


Hello,
I've followed the descussion about hibernate and OJB.
 
> >>>Yes - that's probably the biggest difference between OJB and
> >>>Hibernate.
> >>>Hibernate want KISS, OJB want ultimate flexibility ;)

What does KISS mean? 
Please explain, I don't understand?

Kind regards,

Markus


-
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: OT Crap Signature : Was RE: problem with PB instances creation

2003-10-27 Thread Taillefer, Troy (EXP)
Charles,

Ok sorry to rag on you. I know all about stupid decisions that are out of my hands I 
doubt there is anyone who doesn't. Have a nice day.

Troy


-Original Message-
From: Charles Anthony [mailto:[EMAIL PROTECTED]
Sent: October 27, 2003 10:51 AM
To: 'OJB Users List'
Subject: OT Crap Signature : Was RE: problem with PB instances creation


Hi, 

I am well aware that my email signature is

a) Unwieldy
b) Ugly
c) Technically dodgy
d) A pain in the backside.

It is also questionable whether it has any legal significance whatsoever - I
am pretty sure it is totaly useless outside the UK.

However, I am unable to change it. 

It is appended on our server by my employer, who will not allow me to remove
it - I believe that we have to have it in order to get liability insurance.
I have strongly objected, but have given it up as a battle not worth
fighting. 

I submit that the help and contributions I have given on various mailing
lists over the last 4 years balances out the crap I have dumped on them.

In short - there's not alot I can do about it. Sorry.


Charles.

> -Original Message-----
> From: Taillefer, Troy (EXP) [mailto:[EMAIL PROTECTED]
> Sent: 27 October 2003 15:34
> To: OJB Users List
> Subject: RE: problem with PB instances creation
> 
> 
> Charles or whoever owns that weird signature,
> 
> This is a little of topic but I find your signature is a 
> little strange. Email is traveling across a public medium so 
> if it is unencrypted it is effectively public domain viewable 
> by anybody sniffing the net (regardless of what laws may 
> exist). Plus these emails are stored in a publicly viewable 
> archive so your claim to confidentiality is irrelevant. I 
> recommend you don't send any information deemed sensitive, 
> proprietary or confidential through unencrypted email to a 
> public mailing list.
> 
> 
> 
> -Original Message-
> From: Charles Anthony [mailto:[EMAIL PROTECTED]
> Sent: October 27, 2003 7:03 AM
> To: 'OJB Users List'
> Subject: RE: problem with PB instances creation
> 
> 
> Hi,
> 
> > 
> > Hello,
> > 
> > OK! It is a bit clearer for me, thanks.
> > Each time I want to use a broker I should do:
> > 
> > broker = PersistenceBrokerFactory.defaultPersistenceBroker();
> > //I use the broker
> > broker.close();
> 
> 
> Yes, this is the way it should be done.
>  
> > Is it better to do this EACH time I use the broker or ask for 
> > a broker one time (when the application start) and close 
> > after (all) the use?
> 
> It is better to do it each time. 
> 
> If this is an "issue" for you, I suggest you look at using 
> ODMG; it hides
> all broker usage from your application.
> 
> 
> > About the MAX number of broker in OJB.properties, is it a 
> > good way to set this number to 100 or even 1000?
> > 
> > Finally what is the exact meaning of this 2 log messages:
> > "Already created persistence broker instances: x"?
> > "Already created connections: 3 returning: ..."?
> 
> 
> I'm afraid I don't know precisely.. 
> 
> Cheers,
> 
> Charles.
>  
> > Thanks for your help
> > Sylvain
> > 
> > 
> > 
> > 
> > -Message d'origine-
> > De: Charles Anthony [mailto:[EMAIL PROTECTED]
> > Date: lundi, 27. octobre 2003 11:27
> > À: 'OJB Users List'
> > Objet: RE: problem with PB instances creation
> > 
> > 
> > Hi,
> > 
> > at line 27, you should repeat lines 9-13.
> > 
> > At line 10 
> > PersistenceBrokerFactory.defaultPersistenceBroker() asks the pool
> > for a broker, creating one *if* *necessary*. 
> > broker.close releases some resources from the broker, and  
> returns the
> > broker to the pool.
> > 
> > In other words, after you close the broker, you can no longer 
> > use it. You
> > must get another broker.
> > 
> > If you really need to know how many (active) brokers there 
> > are in the pool,
> > you should be able to do
> > 
> > PersistenceBrokerFactoryDefaultImpl factory =
> > (PersistenceBrokerFactoryDefaultImpl)
> > PersistenceBrokerFactoryFactory.instance();
> > int brokersInPool = factory.activePersistenceBroker();
> > 
> > Cheers,
> > 
> > Charles
> > 
> > > -Original Message-
> > > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED]
> > > Sent: 27 October 2003 10:17
> > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > Subject: RE: problem with PB instances creation
> > > 
> > > 
> > &

RE: problem with PB instances creation

2003-10-27 Thread Taillefer, Troy (EXP)
Charles or whoever owns that weird signature,

This is a little of topic but I find your signature is a little strange. Email is 
traveling across a public medium so if it is unencrypted it is effectively public 
domain viewable by anybody sniffing the net (regardless of what laws may exist). Plus 
these emails are stored in a publicly viewable archive so your claim to 
confidentiality is irrelevant. I recommend you don't send any information deemed 
sensitive, proprietary or confidential through unencrypted email to a public mailing 
list.



-Original Message-
From: Charles Anthony [mailto:[EMAIL PROTECTED]
Sent: October 27, 2003 7:03 AM
To: 'OJB Users List'
Subject: RE: problem with PB instances creation


Hi,

> 
> Hello,
> 
> OK! It is a bit clearer for me, thanks.
> Each time I want to use a broker I should do:
> 
> broker = PersistenceBrokerFactory.defaultPersistenceBroker();
> //I use the broker
> broker.close();


Yes, this is the way it should be done.
 
> Is it better to do this EACH time I use the broker or ask for 
> a broker one time (when the application start) and close 
> after (all) the use?

It is better to do it each time. 

If this is an "issue" for you, I suggest you look at using ODMG; it hides
all broker usage from your application.


> About the MAX number of broker in OJB.properties, is it a 
> good way to set this number to 100 or even 1000?
> 
> Finally what is the exact meaning of this 2 log messages:
> "Already created persistence broker instances: x"?
> "Already created connections: 3 returning: ..."?


I'm afraid I don't know precisely.. 

Cheers,

Charles.
 
> Thanks for your help
> Sylvain
> 
> 
> 
> 
> -Message d'origine-
> De: Charles Anthony [mailto:[EMAIL PROTECTED]
> Date: lundi, 27. octobre 2003 11:27
> À: 'OJB Users List'
> Objet: RE: problem with PB instances creation
> 
> 
> Hi,
> 
> at line 27, you should repeat lines 9-13.
> 
> At line 10 
> PersistenceBrokerFactory.defaultPersistenceBroker() asks the pool
> for a broker, creating one *if* *necessary*. 
> broker.close releases some resources from the broker, and  returns the
> broker to the pool.
> 
> In other words, after you close the broker, you can no longer 
> use it. You
> must get another broker.
> 
> If you really need to know how many (active) brokers there 
> are in the pool,
> you should be able to do
> 
> PersistenceBrokerFactoryDefaultImpl factory =
> (PersistenceBrokerFactoryDefaultImpl)
> PersistenceBrokerFactoryFactory.instance();
> int brokersInPool = factory.activePersistenceBroker();
> 
> Cheers,
> 
> Charles
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> > Sent: 27 October 2003 10:17
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: RE: problem with PB instances creation
> > 
> > 
> > Hello Thomas,
> > 
> > Is there a way to check how many instances are contained in 
> the pool?
> > 
> > You can find an example below.
> > You create a broker instance in line 10, right?
> > You use the broker instance first time in line 19. After this 
> > use you close() the instance.
> > But the problem is if you do the close() in line 25 when you 
> > use the broker for the second time in line 29 you have a 
> > ConnectionNotInProgressException.
> > 
> > Do I have to create a second broker?
> > Or do I have to call a broker from the pool? How?
> > 
> > Thanks for your help
> > Sylvain
> > 
> > 
> > 1 public class MyExample {
> > 2
> > 3 private PersistenceBroker broker;
> > 4
> > 5 public void test() {
> > 6   /**
> > 7   * Persistence Broker
> > 8   */
> > 9   try {
> > 10  broker = 
> > PersistenceBrokerFactory.defaultPersistenceBroker();
> > 11  } catch (Throwable t) {
> > 12  t.printStackTrace();
> > 13  }
> > 14
> > 15  Criteria crit = new Criteria();
> > 16  ...
> > 17
> > 18  try {
> > 19  broker.beginTransaction();
> > 20  //query 1...
> > 21  broker.commitTransaction();
> > 22  } catch (Throwable t) {
> > 23  broker.abortTransaction();
> > 24  } finally {
> > 25  broker.close();
> > 26  }
> > 27
> > 28  try {
> > 29  broker.beginTransaction();
> > 30  //query 2...
> > 31  broker.commitTransaction();
> > 32  } catch (Throwable t) {
> > 33  broker.abortTransaction();
> > 34  } finally {
> > 35  broker.close();
> > 36  }
> > 37  }
> > 38 }
> > 
> > 
> > -Message d'origine-
> > De: Thomas Mahler [mailto:[EMAIL PROTECTED]
> > Date: vendredi, 24. octobre 2003 18:17
> > À: OJB Users List
> > Objet: Re: problem with PB instances creation
> > 
> > 
> > Hi Sylvain,
> > 
> > [EMAIL PROTECTED] wrote:
> > > Hello,
> > >  
> > > I'm using OJB in my web application and I have some problem 
> > with PB instances creation.
> > >  
> > > Each time I want to read/write data from/to my database I 
> > create a PB intance:
> > > broker = PersistenceBrokerFactory.defaultPersistenceBroker();
> > >  
> > > The problem is that lot of PB instances a

RE: Of topic question -

2003-10-21 Thread Taillefer, Troy (EXP)
Joe,

To my knowledge this mailing uses ezmlm program http://www.ezmlm.org/  


Troy

-Original Message-
From: Joseph Campbell [mailto:[EMAIL PROTECTED]
Sent: October 21, 2003 2:36 PM
To: 'OJB Users List'
Subject: Of topic question -


Does anyone know what listserv software this list uses?
Joe
-- 
Dealing with failure is easy:  Work hard to improve.
Success is also easy to handle: You've solved the wrong
problem.  Work hard to improve.
- Alan Perlis
-
Joseph Campbell  | EMAIL: [EMAIL PROTECTED]
Staff Consultant | URL:   www.inventa.com
Inventa Technologies | PH:(856)914-5200
 | PGER:  (888)454-0876
-


-
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: Looking for advice on how to set up Xdoclet Ojb modules

2003-10-21 Thread Taillefer, Troy (EXP)
Thomas,

Thanks for the advice it is really apreciated I am very new to ASF/open source 
software tools (except of courtse apache web server). There is a lot of new literature 
coming out next month about open source tools such as junit and xdoclet but until then 
I guess I will be struggling a bit. At least I finally got the hang of ant.

Troy


-Original Message-
From: Thomas Dudziak [mailto:[EMAIL PROTECTED]
Sent: October 21, 2003 4:48 AM
To: OJB Users List
Subject: RE: Looking for advice on how to set up Xdoclet Ojb modules


You don't have to use the OJB CVS version, you only should use the xdoclet
module from the CVS (its newer than the one with rc4). If you use the
module with a stable release, then it might be that some generated
attributes in the XML descriptor are not recognized by OJB, but I think
this is only the case with versions older than rc4.
I'd strongly advise you to use the xdoclet jars supplied with the xdoclet
ojb module, or to use the CVS HEAD from xdoclet. First, the xdoclet CVS
HEAD is quite stable (at least concerning the xdoclet core and the major
modules like EJB), and secondly there might have been API changes since
the last stable release. It might work with the 1.2b3 release , but I
didn't test it (I know however that it does not work with 1.2b2 and
older). 

Tom



-
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: Looking for advice on how to set up Xdoclet Ojb modules

2003-10-20 Thread Taillefer, Troy (EXP)
Hi All,

I am looking for some advice on how to setup Xdoclet Ojb modules. The document says I 
have to build from the CVS source is it not possible to build from older more stable 
source code ? Another question is should the xdoclet jars included with ojb replace 
the Xdoclet jars ? I find the documentation really sparse any pointers would be 
greatly apreciated thanks.


Troy


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



RE: Thanks All

2003-10-15 Thread Taillefer, Troy (EXP)
Hi all I would just like to thank everyone for their replies and advice it solved my 
problems

Troy


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



RE: Ant

2003-10-15 Thread Taillefer, Troy (EXP)
Hi all,

I am unfamilar with Ant
I have question about build.sh junit, I know it uses Ant and reads build.xml makefile 
is there anyway I could pass
command line arguments -Xmx128m -Xss128m to the java command what modification would I 
have to make to build.xml ?
Thanks.


Troy


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



RE: Problem with junit target on Solaris 8 / Oracle 8i

2003-10-14 Thread Taillefer, Troy (EXP)
Hi All

This is my first post to this mailing list I am having problem running build.sh junit


I am running solaris 8 with oracle 8i (8.1.7)

I seem to run out of memory but I have no idea why I have 512 megs of ram and 883 megs 
of swap space here is my then end of the build log

[torque-insert-sql] 464 of 464 SQL statements executed successfully

junit-no-compile-no-prepare:
[junit] Running org.apache.obj.broker.AllTests
[junit] Tests run: 247, Failures: 20, Errors: 187, Time Elapsed: 56.07 sec
[junit] Exception in thread "main" java.lang.OutOfMemoryError



Then the process just seems to hang forever any help would be apreciated thanks


Troy


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