db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/tutorial2 Application.java
Date Mon, 24 Feb 2003 18:13:43 GMT
arminw      2003/02/24 10:13:43

  Modified:    src/test/org/apache/ojb/tutorial2 Application.java
  Log:
  fix bug, now use the jcdAlias
  
  Revision  Changes    Path
  1.3       +3 -14     db-ojb/src/test/org/apache/ojb/tutorial2/Application.java
  
  Index: Application.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/tutorial2/Application.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Application.java	21 Aug 2002 19:50:27 -0000	1.2
  +++ Application.java	24 Feb 2003 18:13:43 -0000	1.3
  @@ -1,6 +1,7 @@
   package org.apache.ojb.tutorial2;
   
   import org.apache.ojb.broker.PersistenceBrokerFactory;
  +import org.apache.ojb.broker.TestHelper;
   import org.apache.ojb.broker.singlevm.PersistenceBrokerConfiguration;
   import org.apache.ojb.broker.util.configuration.ConfigurationException;
   import org.apache.ojb.broker.util.ui.AsciiSplash;
  @@ -24,21 +25,9 @@
   
   	static
   	{
  -        try
  -        {
  -            databaseName =
  -                ((PersistenceBrokerConfiguration) PersistenceBrokerFactory
  -                    .getConfigurator()
  -                    .getConfigurationFor(null))
  -                    .getRepositoryFilename();
  -        }
  -        catch (ConfigurationException e)
  -        {
  -            databaseName = "repository.xml";
  -        }
  -	    
  +        databaseName = TestHelper.DEF_DATABASE_NAME;
   	}
  -	
  +
   
       /**
        * Application constructor comment.
  
  
  

Mime
View raw message