Re: Result set closed! Help Urgent!

2006-09-19 Thread ABOU LINA
Hi, verify calling to pb.close, pb.commit transaction method : if you call pb.close or pb.commit transaction befor sending result of your query to your business layer you lost the result set. hope that help you. On 9/19/06, Vagula [EMAIL PROTECTED] wrote: Hi, I'm getting the

Can't generate primary key values for given Identity

2006-07-21 Thread ABOU LINA
Hi, i have an object that have two primary key. whene i try to make a search query using pk values as condition i got the message : Can't generate primary key values for given Identity i use ojb 1.0.3 thx in advance look in his mapping file : class-descriptor class

ERROR: Error while iterate ResultSet for query , Error setting field

2006-07-18 Thread ABOU LINA
Hi, i got this error using db-ojb-1.0.rc5.jar. thx in advance. in the mapping file : class =stat.module.diffusion.donnees.BenefDirect table =diff.BENEF field-descriptor id=1 name=code column=CODE jdbc-type=INTEGER primarykey=true / - in the table database

Re: Using two mapping file in the same project ?

2006-05-31 Thread ABOU LINA
On 5/25/06, Armin Waibel [EMAIL PROTECTED] wrote: ABOU LINA wrote: i tested the two way but i got the same problem : dtd not found . InputStream input = this.getClass ().getClassLoader().getResourceAsStream(descriptor2); MetadataManager mm = MetadataManager.getInstance

Re: Using two mapping file in the same project ?

2006-05-31 Thread ABOU LINA
It have a big impact !!! ; beacause in DTD they are lot of initialisation (default value) so here i tried all solutions :( if you can send me a example that work , i will be greatfull thx On 5/31/06, ABOU LINA [EMAIL PROTECTED] wrote: Hi, i need to use InputStream so i tested a lot

Re: Using two mapping file in the same project ?

2006-05-25 Thread ABOU LINA
); DescriptorRepository dr_1 = mm.readDescriptorRepository(input); at readDescriptorRepository(InputStream) i got the message error On 5/24/06, Armin Waibel [EMAIL PROTECTED] wrote: ABOU LINA wrote: is in the same place : project-name/appli-conf / mappin2.xml , repository.dtd and the project-name

Using two mapping file in the same project ?

2006-05-24 Thread ABOU LINA
Hi; i have two mapping file : repository1.xml and repository2.xml. the difference between these two file are the value of auto-* [auto-retrieve, auto-update ..] ; at runtime sometimes i need to use repository1.xml and somtimes the repository2.xml . what is the best and optimal solution about

Re: Using two mapping file in the same project ?

2006-05-24 Thread ABOU LINA
= PersistenceBrokerFactory.defaultPersistenceBroker(); so in this situation B got a broker with profile admin because MetaManager is a singleton. is right On 5/24/06, Armin Waibel [EMAIL PROTECTED] wrote: Hi, ABOU LINA wrote: Hi; i have two mapping file : repository1.xml and repository2

Re: Using two mapping file in the same project ?

2006-05-24 Thread ABOU LINA
That's very good idea using threadLocal :) , thx very much about these informations :). On 5/24/06, Armin Waibel [EMAIL PROTECTED] wrote: ABOU LINA wrote: thx for your reply . looking the example : // get MetadataManager instance (1) MetadataManager mm = MetadataManager.getInstance

Re: Using two mapping file in the same project ?

2006-05-24 Thread ABOU LINA
to make access to the mapping2.xmlfrom the classpath , but the parser used in ojb is looking the dtd from a base directory !!! any idea . thx in advance On 5/24/06, Armin Waibel [EMAIL PROTECTED] wrote: ABOU LINA wrote: That's very good idea using threadLocal :) , thx very much about

Re: Using two mapping file in the same project ?

2006-05-24 Thread ABOU LINA
[EMAIL PROTECTED] wrote: ABOU LINA wrote: I have a problem to load the new profile : 1. i put the mapping2.xml in the classpath of the project 2. i use the mm.readDescriptorRepository(InputStream map) insteadof (String map) i get : java.io.FileNoteFound : c:\eclipse\repository.dtd

Re: auto-* in runtime ?

2006-05-09 Thread ABOU LINA
Thank you very much Armin for your reply. we dont have a ojb plugin eclipse ?? On 5/8/06, Armin Waibel [EMAIL PROTECTED] wrote: Hi, ABOU LINA wrote: Hi, Q1. We can change the value of auto-retrieve (-update) at the runtime ??? All direct object metadata changes are global, thus all

auto-* in runtime ?

2006-05-08 Thread ABOU LINA
Hi, Q1. We can change the value of auto-retrieve (-update) at the runtime ??? Q2. if you have a list of suggestion about how to improve perfermance ojb / db2 , and methodologie of a best tuning ??? thx

Re: OJB : DB2 NATIVE JDBC DRIVER

2006-04-10 Thread ABOU LINA
think. so i replaced this value by th French EBCIDIC and it works fine. thx On 4/7/06, Charles Anthony [EMAIL PROTECTED] wrote: Hi Abou Lina, Caused by: java.sql.SQLException: INTERNAL ERROR: Creation of DB2Driver object for registering with DriverManager failed

OJB : DB2 NATIVE JDBC DRIVER

2006-04-06 Thread ABOU LINA
Hi; i use the native jdbc driver for DB2/AS400. i configure the ojb connection parameters like this : dbms=Db2 jdbc-level=2.0 driver=com.ibm.db2.jdbc.app.DB2Driver protocol=jdbc sub-protocol=db2 db-alias=localhost/DB2ADMIN user=test password=*** so with this configuration the web application

Re: OJB : DB2 NATIVE JDBC DRIVER

2006-04-06 Thread ABOU LINA
) at utile.migration.DataValidator.validateData(DataValidator.java:88) at utile.migration.DataValidator.execute(DataValidator.java:37) at utile.migration.DataValidator.main(DataValidator.java:144) 3. About my name Abou Lina = Lina's Father so Abou = Father and Lina is the name of my daughter

ResultSet.next() failed !!!!

2006-04-03 Thread ABOU LINA
Hi; 1. DB2 / AS400 2. Broker i made a search query that retrieve 5000 records from database DB2/AS400. i use getIteratorQuery , look this code please : 1. getting the broker 2. while (result.hasNext()) { // 5000 records obj = result.next() } 3. close the broker i got the error

OJB DB2 UDB, retrieving DATE ????

2006-03-30 Thread ABOU LINA
Hi; AS400 as server. DB2 UDB as database . in a table we have a record whith the date 2999-12-31. when using ojb to retreive this record, the value of date is returned null. with an sql tool we have be able to get this date with the instruction select char(datetoshow, ISO)... we have also

Urgent issue : OJB_HL_SEQ not valid for operation

2006-03-21 Thread ABOU LINA
Hi, ojb can't generate a sequence number for insert !!! i got this msg error whene deploying the war under AS400 and Websphere 6.0 : SQL failure while insert object data for class org.apache.ojb.broker.util.sequence.HighLowSequence, PK of the given object is [ tableName=global - default

Re: PB behavor of Collection item delete ?

2006-03-09 Thread ABOU LINA
Application i can't put RemovalAwareList directly inorder to keep the application independent of OJB classes ...) so what is the solution please ... without using ODMG ? Thanks On 3/7/06, Armin Waibel [EMAIL PROTECTED] wrote: Hi, ABOU LINA wrote: Hi, in ojb document

Re: PB behavor of Collection item delete ?

2006-03-09 Thread ABOU LINA
this migration easy and fast ??? 3. in your opinion, the probleme about deleting collection elements justify using ODMG instead of PB ??? 4. Best practice of ODMG and good examples ?? Thanks. On 3/9/06, Armin Waibel [EMAIL PROTECTED] wrote: Hi, ABOU LINA wrote: thank first

ODMG; SequenceManager

2006-03-09 Thread ABOU LINA
Hi, i have DB2 database; i want to make a sequence on primary key of each table and not a global sequence for all table ??? how can i do it ?? thx

Re: PB behavor of Collection item delete ?

2006-03-09 Thread ABOU LINA
i think the coste of using ODMG is very big only looking how in ODMG we query an object. in ODMG it use OQL (like SQL synthaxis where ) so is very diferent to PB wiche use Criteria to build a condition ! what do you think Mr Armine On 3/9/06, ABOU LINA [EMAIL PROTECTED] wrote: Hi

Re: NESTED OBJECT 1:n is possible ???

2006-03-08 Thread ABOU LINA
PROTECTED] wrote: ABOU LINA wrote: How can i use nested object in case of 1:n ?? it s possible in OJB Sorry, I don't understand your question. In OJB nested objects can be used group and encapsulate fields of persistent objects. http://db.apache.org/ojb/docu/guides/advanced-technique.html

PB behavor of Collection item delete ?

2006-03-07 Thread ABOU LINA
Hi, in ojb document : --- Say you use the PB to query an object O that has a collection attribute col with five elements a,b,c,d,e. Next you delete Objects d and e from col and store O again with PersistenceBroker.store(O); PB will store the remaining objects

Re: QueryByCriteria#addGroupBy question

2006-03-07 Thread ABOU LINA
Hi, in ojb document : --- Say you use the PB to query an object O that has a collection attribute col with five elements a,b,c,d,e. Next you delete Objects d and e from col and store O again with PersistenceBroker.store(O); PB will store the remaining objects

NESTED OBJECT 1:n is possible ???

2006-03-07 Thread ABOU LINA
How can i use nested object in case of 1:n ?? it s possible in OJB

Re: CONNECTION POOL

2006-02-24 Thread ABOU LINA
) ... 59 more I use DB2 as DATABASE On 2/23/06, ABOU LINA [EMAIL PROTECTED] wrote: Hi all, So in web application context (Tomcat), i want to configure OJB to make 10 pool connection to the database at the startup of the application. Normaly, whene we try to get new broker

CONNECTION POOL

2006-02-23 Thread ABOU LINA
Hi all, So in web application context (Tomcat), i want to configure OJB to make 10 pool connection to the database at the startup of the application. Normaly, whene we try to get new broker PersistenceBrokerFactory.defaultPersistenceBroker(); OJB retreive an existing and valide connection from

Re: URGENT please, : MAPPING BIDIRECTIONAL NAVIGATION 1:1 ??? ojb 1.0.3

2006-02-14 Thread ABOU LINA
. On 2/14/06, Armin Waibel [EMAIL PROTECTED] wrote: Hi, ABOU LINA wrote: Hi, i give you this sample example : in case AB [1:n] : the mapping of this bidiractional navigation is guaranted by the use of inverse-foreignkey : Mapping A classe

URGENT please, : MAPPING BIDIRECTIONAL NAVIGATION 1:1 ??? ojb 1.0.3

2006-02-13 Thread ABOU LINA
Hi, i give you this sample example : in case AB [1:n] : the mapping of this bidiractional navigation is guaranted by the use of inverse-foreignkey : Mapping A classe : collection-descriptor name=allB

Re: Speed issues

2006-02-13 Thread ABOU LINA
Hi, About read performance you can use : 1. getIterator instead of getCollection 2. or use proxy solution 3. using the cach of ojb another thing but i don't know how can we do it in OJB ; when OJB prepare a statement (for read) by default he make SELECT * FROM ... so i think if we have a

MAPPING BIDIRECTIONAL NAVIGATION 1:1 ??? ojb 1.0.3

2006-02-10 Thread ABOU LINA
Hi, i give you this sample example : in case AB [1:n] : the mapping of this bidiractional navigation is guaranted by the use of inverse-foreignkey : Mapping A classe : collection-descriptor name=allB