i broke it down into OJB code only,
and in this testcase, i do not even change the mapping:

              MetadataManager mm = MetadataManager.getInstance();
              // tell the manager to use per thread mode
              mm.setEnablePerThreadChanges(true);

              // e.g we get a coppy of the global repository
              DescriptorRepository dr = mm.copyOfGlobalRepository();
              
              // now we can manipulate the metadata of the copy
              // .... do nothing

              // set the changed repository for this thread
              mm.setDescriptor(dr);
              
              org.apache.ojb.broker.query.Query q = 
                    (org.apache.ojb.broker.query.Query) 
                         new
QueryByCriteria(Class.forName("ibanx.doc.DocumentIF"), null, true);
                                           
              PersistenceBroker brokerImpl =
PersistenceBrokerFactory.defaultPersistenceBroker();

              Collection c = brokerImpl.getCollectionByQuery(q);

              // cleanup              
              brokerImpl.close();              
              brokerImpl = null;
              if(c!=null)
              {
                c.clear();
                c = null;
              }              
              dr = null;
              mm = null;

Roger Janssen


*************************************************************************
The information contained in this communication is confidential and is
intended solely for the use of the individual or entity to  whom it is
addressed.You should not copy, disclose or distribute this communication 
without the authority of iBanx bv. iBanx bv is neither liable for 
the proper and complete transmission of the information has been maintained
nor that the communication is free of viruses, interceptions or interference.

If you are not the intended recipient of this communication please return
the communication to the sender and delete and destroy all copies.

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

Reply via email to