You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by lr...@apache.org on 2010/02/15 18:35:10 UTC
svn commit: r910276 -
/tuscany/sca-java-2.x/trunk/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java
Author: lresende
Date: Mon Feb 15 17:35:09 2010
New Revision: 910276
URL: http://svn.apache.org/viewvc?rev=910276&view=rev
Log:
Fixing mispelled environment variable name used to provide ODE Runtime DB path
Modified:
tuscany/sca-java-2.x/trunk/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java
Modified: tuscany/sca-java-2.x/trunk/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java?rev=910276&r1=910275&r2=910276&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java (original)
+++ tuscany/sca-java-2.x/trunk/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java Mon Feb 15 17:35:09 2010
@@ -69,6 +69,8 @@
* @version $Rev$ $Date$
*/
public class EmbeddedODEServer {
+ private static final String TUSCANY_IMPL_BPEL_DBLOCATION = "TUSCANY_IMPL_BPEL_DBLOCATION";
+
protected final Log __log = LogFactory.getLog(getClass());
private boolean _initialized;
@@ -152,19 +154,19 @@
URL dbLocation = null;
// An environment variable to set the path to the DB
- String dbFile = System.getenv("TUSCANY_IMPL_BPEL_DBLOCATION");
+ String dbFile = System.getenv(TUSCANY_IMPL_BPEL_DBLOCATION);
if( dbFile != null ) {
try {
locationFile = new File(dbFile).getParentFile();
} catch (Exception e ) {
- System.out.println("Environment variable TUSCANY_IMPL_BPEL_LOCATION has the wrong format: " + dbFile);
+ System.out.println("Environment variable " + TUSCANY_IMPL_BPEL_DBLOCATION + " has the wrong format: " + dbFile);
System.out.println("Exception is: " + e.getClass().toString() + " " + e.getMessage());
} // end try
} else {
dbLocation = getClass().getClassLoader().getResource("jpadb");
if (dbLocation == null) {
throw new ODEInitializationException("Couldn't find database in the classpath:" +
- " try setting the TUSCANY_IMPL_BPEL_LOCATION environment variable");
+ " try setting the " + TUSCANY_IMPL_BPEL_DBLOCATION + " environment variable");
}
// Handle OSGI bundle case
if( dbLocation.getProtocol() == "bundleresource" ) {