addLike questions

2006-08-01 Thread reda benzair
Hello everyone, I have a problem with "like". my DataBase =Oracle Ojb= 1.0.3 I would like search on my table all file name start with number and i use *SQL LIKE* it works, but when I used the *AddLike("filename",'[0-9]%')* or *crit.addSql("AO.MDL_FILENAME LIKE '[0-9]%')*; do not work. What

Re: Multible webapps on tomcat using ojb

2005-01-18 Thread Reda Benzair
hello solution you can use OJB whith JNDI tomcat resources ! you add defaultBroket to server.xml ressources and alle webapp can acces to same repository.xml I'm running 2 seperate apps in one Tomcat server. Both use ojb to access the db. With one app this works fine. But the second app uses the s

new instance ObjectCache all time

2004-12-20 Thread Reda Benzair
Reda Benzair wrote: Hi all I have problem to use the ObjectCacheFactory is very low tu user my application I have all time the loading and creating new ObjectCache instance, I do not know too much for what and why I have All time New instance for ObjectCache are that you had a reasons for

Re: Best Practise for OJB

2004-11-18 Thread Reda Benzair
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *Reda BENZAIR** *Software Analyst **SmartJog S.A* *Phone: +33 (0)1 4996 6324 Fax: +33 (0)1 4996 6323 [EMAIL PROTECTED] <

Best Practise for OJB

2004-11-18 Thread Reda Benzair
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 ) My Problem when Webapp 2 (Update or Insert) in the Data Base the result is no 't v

Re: Problem Memory Tomcat and OJB

2004-10-28 Thread Reda Benzair
Hi! We are running OJB on our production serveur (tomcat 4.1.30 in this case). The JVM was running troubles after running a while so I've modified my app to count objects that are loaded : we have a static Map (key=class.getName(), value=count) that counts the total number of live instances

Re: java.lang.NullPointerException for SqlQueryStatement

2004-10-11 Thread Reda Benzair
Reda Benzair wrote: Jakob Braeuchi wrote: hi reda, the problem is imo that the subqueries are not extent aware (as mentioned in the other post about splitCriteria). i suggest you separate the queries. the first one retrieves all the ids and the second uses these ids in an IN-clause

java.lang.NullPointerException for SqlQueryStatement

2004-10-08 Thread Reda Benzair
Hi, I am facing a problem you already encountered, but don't seem to find a solution. *SUMMARY* I would like to include a reportQuery that returns only one attribute inside a Criteria : *EXISTING* Using OJB 1.0, on JDK 1.4.2 (with Tomcat 4.1.30) Tables: * A Company has a name * An Employee

Re: OutOfMemoryError

2004-09-30 Thread Reda Benzair
Armin Waibel wrote: Hi, Reda Benzair wrote: Hello Please can anyone tell me why this problem or what is solution I have an application Web tomcat + OJB + oracle and I have 2 Go of memory available for the RAM I have big problem of memory with OJB but very rondom, because ojb send me

OutOfMemoryError

2004-09-30 Thread Reda Benzair
Hello Please can anyone tell me why this problem or what is solution I have an application Web tomcat + OJB + oracle and I have 2 Go of memory available for the RAM I have big problem of memory with OJB but very rondom, because ojb send me this error I use proxy on my repository in or

sharing Cache by 2 application

2004-07-09 Thread Reda Benzair
Hi all, How to make for sharing one ojb cache whith 2 application and what is the special configuration for Ojb.properties and repository.xml I have TOMCAT +Oracle and Webapp 1 + Webapp 2 but I would be user one repository, one cache application 1 -

Use one OJB cache for 2 application

2004-07-08 Thread Reda Benzair
Hello Can I use only one OJB cache for two applications How to make and what is the special configuration I have TOMCAT +Oracle and Webapp 1 + Webapp 2 but I would be user one repository, one cache Thank you for the answer - To

Sorry error to forward message !

2004-03-04 Thread Reda Benzair
Reda Benzair wrote: suite à une discution dans OJB forum il y un autil tres interessant Open Source pour la suppervission au niveau du JDBC interessant de voir ça si en peut l'integer chez nous http://www.irongrid.com/catalog/product_info.php?products_id=32 Charles Anthony wrote: Hi, I&

un outil interessant pour la supervission des statment JDBC

2004-03-04 Thread Reda Benzair
s and conditions: www.hpdsoftware.com/disclaimer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *Reda BENZAIR** *Software Analyst *** *Phone: +33 (0)1 4996 6324 Fax: +33 (0)1 4996 6405 Mobile: +33 (0)6 6240

Re: problem ClassCastException for "addThisListenerTo"

2004-02-26 Thread Reda Benzair
Hi Martin thank you for your answer I will see that solution thank All ! Martin Kalén wrote: Reda Benzair wrote: Hi All I have problem for the classCastException in my repository file I use collections all my collection-descriptor use the proxy=true ! [...] why this error , my

Re: proxy loading issue from rc4 -> rc5

2004-02-17 Thread Reda Benzair
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *Reda BENZAIR** *Software Analyst *** *Phone: +33 (0)1 4996 6324 Fax: +33 (0)1 4996 6405 Mobile: +33 (0)6 6240 61

random crashes in OJB RC5 ClassCastException for addThisListenerTo

2004-02-13 Thread Reda Benzair
I am experimenting random crashes in OJB RC5 : ClassCastException in QueryReferenceBroker$PBCollectionProxyListener.addThisListenerTo(CollectionProxy ) trying to cast into CollectionProxy: protected void addThisListenerTo(Object listenedObject) { + /*MODIFICATION AWAITING OJB'sTEA

Problem in PBCollectionProxyListener during CollectionProxy prefetching

2004-02-06 Thread Reda Benzair
: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *Reda BENZAIR** *Software Analyst *** *Phone: +33 (0)1 4996 6324 Fax: +33 (0)1 4996 6405 Mobile: +33 (0)6 6240 6192 [EMAIL PROTECTED] <mailto:[EMAIL PROTEC

il faut voir au niveau upgrade to RC5, ClassCastException on getCollectionByQuery

2004-02-06 Thread Reda Benzair
or additional commands, e-mail: [EMAIL PROTECTED] ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *Reda BENZAI

dernier réponse :::: upgrade to RC5, ClassCastException on getCollectionByQuery

2004-02-06 Thread Reda Benzair
--- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

problem ClassCastException for "addThisListenerTo"

2004-02-06 Thread Reda Benzair
Hi All I have problem for the classCastException in my repository file I use collections all my collection-descriptor use the proxy=true ! error is protected void addThisListenerTo(Object listenedObject) { _listenedCollection = (CollectionProxy) listenedObject; _

Re: Connection: Socket Close Exception

2004-01-12 Thread Reda Benzair
THROW : Socket Close exception broker.getObjectByQuery(q); -- *Reda BENZAIR** *Software Analyst *** *Phone: +33 (0)1 4996 6324 Fax: +33 (0)1 4996 6405 Mobile: +33 (0)6 6240 6192 [EMAIL PROTECTED] <mailto:[EMAIL PROTEC

FW: [pdi]RE: [detail] reload Object ? ? (Problem Cache)

2003-12-29 Thread Reda Benzair
e object (same Identity/PK) OJB materialize a new object instance. Reda Benzair wrote: > You're right. Sorry. > > The third line is the one I get after I call pb.clearCache(). And it's > the one I would rather get instead of line 2. > I add a similar test case to tes

[detail] reload Object ? ? (Problem Cache)

2003-12-29 Thread Reda Benzair
Problem Cache) Hi, in your example only 2 System.out.println(..) lines performed, but 3 lines are printed?! Do you forget one println() statement? regards, Armin Reda Benzair wrote: > Hi all, > > > > I have a -simple?- question about OJB cache: > > > > How can I

RE: reload Object ? ? (Problem Cache)

2003-12-26 Thread Reda Benzair
printed?! Do you forget one println() statement? regards, Armin Reda Benzair wrote: > Hi all, > > > > I have a -simple?- question about OJB cache: > > > > How can I force refreshing an object? Typically is there a method like > PB.refreshObject(Object o)? -I k

reload Object ? ? (Problem Cache)

2003-12-22 Thread Reda Benzair
Hi all, I have a -simple?- question about OJB cache: How can I force refreshing an object? Typically is there a method like PB.refreshObject(Object o)? -I know of course this one doesn't exist...- To be more precise, I have someting like this: PersistenceBroker pb = PersistenceBr

mapping M:N relation WITH ATTRIBUTES

2003-12-08 Thread Reda Benzair
. 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 Be

mapping M:N relation WITH ATTRIBUTES

2003-12-03 Thread Reda Benzair
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 Emplo