RE : OJB and RMI

2004-06-15 Thread Jean-Baptiste BRIAUD
A thread problem ?
Does your problem occurs the first call or only next one ?


Jean-Baptiste BRIAUD  SYSDEO
  www.sysdeo.com
software engineer  www.eclipsetotale.com

 -Message d'origine-
 De : Bradford Pielech [mailto:[EMAIL PROTECTED]
 Envoyé : mardi 15 juin 2004 16:34
 À : OJB Users List
 Objet : OJB and RMI
 
 Hello all:
 
 I am having running into a problem. I have an RMI server which intends to
 make calls to MySQL, using PersistencBroker. It fails when I call:
 
 
 PersistenceBroker pbroker =
 PersistenceBrokerFactory.defaultPersistenceBroker();
 
 
 with:
 -
 [BOOT] ERROR: Creation of PersistenceBrokerFactory (PBF) instance failed,
 can't get PBF class object
 ---
 
 If I remove RMI from the equation, everything works fine, i.e. the
 PersistenceBroker calls succeed.  With RMI, the Remote Server gets a
 NoClassDefFoundError For the PersistenceBrokerFactory.
 
 Is there possibly anything in the OJB configuration that might affect this
 environment?  Has anyone else been able to get OJB to work in this
 scenario?
 
 Thanks,
 Brad
 
 
 
 -
 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]



Prefetch dynamic change

2003-02-21 Thread Jean-Baptiste BRIAUD
Hello,

Is it possible to dynamicly change value of auto-XXX 
(auto-delete, auto-retrieve, ...) specified in the repository-user.xml ?

By dynamicly I mean in Java code. Say in the xml file there is the
default version, but in Java code I'd like to change value for one shot.
Note that I don't want to modify the xml file.

is org.apache.ojb.broker.metadata a way to a solution ?

I was able by this way to obtain value store in the repository xml file,
but is it possible to change values (any values ?) without writing to
the file ?

   Thanks !

__
Jean-Baptiste BRIAUDSysdeo
Software engineer   www.sysdeo.com
 www.eclipsetotale.com


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




RE : ojb v0.9.9 problem

2003-02-19 Thread Jean-Baptiste BRIAUD
You have to use the JDC-ALIAS attribute in the database declaration of
the repository.xml.
In the code use it instead of the repository xml file name in the API.
This seem to be a change since 0.9.9.

   Hope this help.

__
Jean-Baptiste BRIAUDSysdeo
Software engineer   www.sysdeo.com
 www.eclipsetotale.com

 -Message d'origine-
 De : Ferran Parra [mailto:[EMAIL PROTECTED]] 
 Envoyé : mercredi 19 février 2003 18:29
 À : OJB Users List
 Objet : Re: ojb v0.9.9 problem
 
 
 Hi,
 this is my repository.xml
 
 ?xml version=1.0 encoding=UTF-8?
 !-- This is a sample metadata repository for the ObJectBridge System.
  Use this file as a template for building your own mappings--
 
 !-- defining entities for include-files --
 !DOCTYPE descriptor-repository SYSTEM repository.dtd [ 
 !ENTITY database SYSTEM repository_database.xml !ENTITY 
 internal SYSTEM repository_internal.xml !ENTITY junit 
 SYSTEM repository_junit.xml !ENTITY user SYSTEM 
 repository_user.xml !ENTITY ejb SYSTEM repository_ejb.xml ]
 
 
 descriptor-repository version=0.9.9 
 isolation-level=read-uncommitted
 
 !-- include all used database connections --
 database;
 
 !-- include mappings for JUnit tests --
 !-- This could be removed (with !ENTITY entry), if 
 junit test suite was not used --
 !-- junit; --
 
 !-- include ojb internal mappings here --
 internal;
 
 !-- include user defined mappings here --
 user;
 
 !-- include mappings for the EJB-examples --
 !-- ejb; --
 
 /descriptor-repository
 
 and is in the WEB-INF/classes of a tomcat 4.1.18
 
 - Original Message -
 From: Ryan Vanderwerf [EMAIL PROTECTED]
 To: OJB Users List [EMAIL PROTECTED]
 Sent: Wednesday, February 19, 2003 6:26 PM
 Subject: RE: ojb v0.9.9 problem
 
 
  Sounds like repository.xml isn't in your classpath.
 
  -Original Message-
  From: Ferran Parra [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 19, 2003 11:25 AM
  To: OJB Users List
  Subject: ojb v0.9.9 problem
 
  Hi people, i have an error to try:
  db.open(repository.xml, Database.OPEN_READ_WRITE);
 
  org.odmg.ODMGException: OJB can't open database 
 repository.xml Borrow 
  broker from pool failed: Creation of a new PB instance failed
 
  Any idea??
  thanks advanced
  Ferran Parra
 
  Departament de Noves Tecnologies
  MUBIMEDIA S.L.
  --
  [EMAIL PROTECTED]
  Mallorca, 275, 1r 2a
  08008 BARCELONA
  T. (+34) 93 215 21 91
  F. (+34) 93 215 41 21
 
 
  
 -
  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]
 
 


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