Hi again,
 
Armin, I'm using a new properties, based on the ojb guides.You can see in: 
http://fgbernardino.vo6.net/ojb.properties_1711.htm
 
My enviroment is JBoss 3.2.5, I'm using JNDI and DataSource. I'm using PB-Api, 
this way:
 
public BaseDAO(){
 try{
  broker = 
PersistenceBrokerFactoryFactory.instance().defaultPersistenceBroker();
  }catch(Exception e){
   e.printStackTrace();
  }
 }
 
 public void insert(Object object) throws DAOException{
  try {
   broker.beginTransaction();
   broker.store(object);
   broker.commitTransaction();
  } catch (Exception e) {
   try {
    broker.abortTransaction();
   } catch (TransactionNotInProgressException e1) {
    throw new DAOException(e);
   }
   throw new DAOException(e);
  } finally {
   broker.close();
  }
 }
 
 
If I use the
"PersistenceBrokerFactoryClass=
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl" ,
I can store the object but an error is showed:
http://fgbernardino.vo6.net/error_DefaultImpl_today.htm
 
But, if I change to 
"PersistenceBrokerFactoryClass=
org.apache.ojb.broker.core.PersistenceBrokerFactorySyncImpl" ,
I can't store the object, an error is showed when I do
"broker.beginTransaction()" :
http://fgbernardino.vo6.net/error_syncImpl.htm
 
I'm looking to .properties but I can't find nothing... 
Thanks a lot for your time and sorry about the links, but if I send an large 
email, it's return to me...
 
Thanks,
 
Fernando Bernardino

                
---------------------------------
Yahoo! Acesso Gr�tis - Internet r�pida e gr�tis. Instale o discador agora!

Reply via email to