[jboss-svn-commits] JBL Code SVN: r8400 - labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/listeners

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Dec 19 07:29:51 EST 2006


Author: mark.little at jboss.com
Date: 2006-12-19 07:29:48 -0500 (Tue, 19 Dec 2006)
New Revision: 8400

Added:
   labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/listeners/ListenerManagerBrokenXntegrationTest.java
   labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/listeners/juddi-unittest.properties
Removed:
   labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/listeners/ListenerManagerIntegrationTest.java
Log:
Removed integration test.

Copied: labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/listeners/ListenerManagerBrokenXntegrationTest.java (from rev 8399, labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/listeners/ListenerManagerIntegrationTest.java)
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/listeners/ListenerManagerIntegrationTest.java	2006-12-19 12:26:16 UTC (rev 8399)
+++ labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/listeners/ListenerManagerBrokenXntegrationTest.java	2006-12-19 12:29:48 UTC (rev 8400)
@@ -0,0 +1,269 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.soa.esb.listeners;
+
+import static org.junit.Assert.assertTrue;
+
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.URI;
+import java.sql.DriverManager;
+import java.sql.Statement;
+import java.util.Properties;
+import java.util.Random;
+import java.util.UUID;
+
+import junit.framework.Assert;
+import junit.framework.JUnit4TestAdapter;
+
+import org.apache.log4j.Logger;
+import org.apache.log4j.xml.DOMConfigurator;
+import org.jboss.internal.soa.esb.couriers.DeliverOnlyCourier;
+import org.jboss.soa.esb.addressing.Call;
+import org.jboss.soa.esb.addressing.EPR;
+import org.jboss.soa.esb.addressing.eprs.FileEpr;
+import org.jboss.soa.esb.couriers.CourierFactory;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.listeners.ListenerManager;
+import org.jboss.soa.esb.listeners.ListenerUtil;
+import org.jboss.soa.esb.listeners.message.EsbListenerController;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.esb.message.format.MessageFactory;
+import org.jboss.soa.esb.testutils.FileUtil;
+import org.jboss.soa.esb.testutils.HsqldbUtil;
+import org.jboss.soa.esb.testutils.TestEnvironmentUtil;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class ListenerManagerBrokenXntegrationTest 
+{
+/*
+	@BeforeClass
+	public static void setUp() throws Exception
+	{
+		_logger.info("Writing temp files to "+TMP_DIR);
+
+    	// delete this one just to make sure asserts take the new ones
+    	_returnFile.delete();
+    	
+    	// initialize registry
+    	runBeforeAllTests();
+    	
+	}
+	
+	@AfterClass
+	public static void tearDown() throws Exception
+	{
+    	_returnFile.delete();
+
+    	Thread.sleep(2000);
+    	if ("org.hsqldb.jdbcDriver".equals(mDbDriver))
+			HsqldbUtil.stopHsqldb(mDbUrl, mDbUsername, mDbPassword);
+	}
+	
+	@Test
+	public void allTests() throws Exception
+	{
+		String winOrUnix = (isWindows()) ? "Win" : "Unix";
+		for (String file : new String[]
+		    {
+				"/esbListenerFtp.xml"
+				,"/esbListenerFile"+winOrUnix+".xml"
+				,"/esbListenerJms.xml"
+			})
+		{
+			_logger.info("___Test for FILENAME: "+file+" starting ____________________");
+			oneTest(file);
+			_logger.info("___Test for FILENAME: "+file+" FINISHED ____________________");
+		}
+	} //________________________________	
+	
+	private void oneTest(String fileName) throws Exception 
+    {
+		// Write wome messages to EPR obtained from configuration file
+		String configFile = getClass().getResource(fileName).getFile();
+		ConfigTree tree = ConfigTree.fromInputStream(new FileInputStream(configFile));
+		ConfigTree eprElement = tree.getAllChildren()[0].getFirstChild("EPR");
+		EPR toEPR = ListenerUtil.assembleEpr(eprElement);
+		if (toEPR instanceof FileEpr)
+		{
+			// take inputSuffix as outputSuffix for initial message sending
+			eprElement.setAttribute(FileEpr.POST_SUFFIX_TAG,eprElement.getAttribute(FileEpr.INPUT_SUFFIX_TAG));
+			eprElement.setAttribute(FileEpr.INPUT_SUFFIX_TAG,null);
+			toEPR = ListenerUtil.assembleEpr(eprElement);
+		}
+		
+		String THE_TEXT 		= "___Config="+fileName+"___ Message Content ___"; 
+		
+		int howMany = 10;  // how many messages do you want to send before the listener comes up
+		DeliverOnlyCourier sender = CourierFactory.getCourier(toEPR);
+		Message message = MessageFactory.getInstance().getMessage();
+		message.getHeader().setCall(new Call(toEPR));
+		message.getBody().setContents(THE_TEXT.getBytes());
+		for (int i1=0; i1<howMany; i1++)
+		{
+			URI uri = new URI(UUID.randomUUID().toString());
+			message.getHeader().getCall().setMessageID(uri);
+			sender.deliver(message);
+		}
+		
+		_returnFile.delete();
+		// launch listener manager in a child thread
+		_manager = ListenerUtil.launchManager(configFile, true);
+		_logger.debug(" Waiting for all child listeners to start");
+		_manager.waitUntilReady();
+		_logger.debug(" All child listeners ready");
+
+		// JUST FOR THIS TEST:
+		// Give your listener some time to process queued messages (see howMany above)
+		// Time allowed, and maxThreads in config file will impact how many messages
+		// will be processed, and how many will remain unprocessed
+		Thread.sleep(150*howMany);
+		
+		_logger.debug("going to EndRequested");
+		_manager.requestEnd();
+		_logger.debug("back from EndRequested");
+		
+		Assert.assertEquals(THE_TEXT, stringFromFile(_returnFile));
+		_returnFile.delete();
+    }
+	
+	static void bytesToFile(File file, byte[] text) throws Exception
+	{
+		OutputStream out = new FileOutputStream(file);
+		out.write(text);
+		out.close();
+	} //________________________________
+
+	static String stringFromFile(File file) throws Exception
+	{
+		ByteArrayOutputStream out = new ByteArrayOutputStream();
+
+		FileInputStream	inp = new FileInputStream(file);
+		byte[] ba = new byte[1000];
+		int iQ;
+		while (-1 != (iQ=inp.read(ba)))
+			if (iQ > 0)
+				out.write(ba,0,iQ);
+		inp.close();
+		
+		out.close();
+		return out.toString();
+	} //________________________________
+	
+	public static void runBeforeAllTests()
+	{
+		try {
+			DOMConfigurator.configure(TestEnvironmentUtil.getUserDir("product","../product") + "etc/test/resources/log4j.xml");
+			TestEnvironmentUtil.setESBPropertiesFileToUse("product","../product");
+			//Set the juddi properties file in System so juddi will pick it up later and use the test values.
+			String juddiPropertiesFile = "/org/jboss/soa/esb/services/registry/juddi-qatest.properties";
+			System.setProperty("juddi.propertiesFile", juddiPropertiesFile);
+			//Read this properties file to get the db connection string
+			Properties props = new Properties();
+			InputStream inStream = Class.class.getResourceAsStream(juddiPropertiesFile);
+			props.load(inStream);
+			mDbDriver    = props.getProperty("juddi.jdbcDriver");
+			mDbUrl       = props.getProperty("juddi.jdbcUrl");
+			mDbUsername  = props.getProperty("juddi.jdbcUsername");
+			mDbPassword  = props.getProperty("juddi.jdbcPassword");
+			
+			String database="not tested yet";
+			if ("org.hsqldb.jdbcDriver".equals(mDbDriver)) {
+				database = "hsqldb";
+				//Bring up hsql on default port 9001
+				HsqldbUtil.startHsqldb(TestEnvironmentUtil.getUserDir("product","../product") + "build/hsqltestdb", "juddi");
+			} else if ("com.mysql.jdbc.Driver".equals(mDbDriver)) {
+				database = "mysql";
+			} //add and test your own database..
+			
+			//Get the registry-schema create scripts
+			String sqlDir = TestEnvironmentUtil.getUserDir("product","../product") + "install/jUDDI-registry/sql/" + database + "/";
+			//Drop what is there now, if exists. We want to start fresh.
+			String sqlDropCmd      = FileUtil.readTextFile(new File(sqlDir + "drop_database.sql"));
+			String sqlCreateCmd    = FileUtil.readTextFile(new File(sqlDir + "create_database.sql"));
+			String sqlInsertPubCmd = FileUtil.readTextFile(new File(sqlDir + "insert_publishers.sql"));
+			
+			try {
+				Class.forName(mDbDriver);
+			} catch (Exception e) {
+				System.out.println("ERROR: failed to load " + database + " JDBC driver.");
+				e.printStackTrace();
+				return;
+			}
+			java.sql.Connection con = DriverManager.getConnection(mDbUrl, mDbUsername, mDbPassword);
+			Statement stmnt = con.createStatement();
+			stmnt.execute(sqlDropCmd);
+			stmnt.execute(sqlCreateCmd);
+			stmnt.execute(sqlInsertPubCmd);
+			
+		} catch (Throwable e) {
+			e.printStackTrace();
+			System.out.println("We should stop testing, since we don't have a db.");
+			assertTrue(false);
+		}
+	}
+	public static junit.framework.Test suite() {
+		return new JUnit4TestAdapter(ListenerManagerIntegrationTest.class);
+	}
+
+	private static boolean isWindows() 
+		{ return System.getProperty("os.name").toLowerCase().contains("window"); }
+	private static final String TMP_DIR	= isWindows() ? "/temp" : "/tmp";
+
+	private static Logger _logger			= Logger.getLogger(ListenerManagerIntegrationTest.class);
+
+	static File _returnFile			= new File(TMP_DIR,"ListenerManagerOutput.txt");
+
+	
+	EsbListenerController	_esbListController;
+	ListenerManager			_manager;
+
+    private static String mDbDriver;
+	private static String mDbUrl;
+	private static String mDbUsername;
+	private static String mDbPassword;
+
+	public static class MockMessageAwareAction
+	{
+		Random _rand = new Random(System.currentTimeMillis());
+	    ConfigTree _config;
+	    public MockMessageAwareAction(ConfigTree config) { _config = config; } 
+	    public Message writeToDisk (Message message) throws Exception 
+	    {
+	    	String id = message.getHeader().getCall().getMessageID().toASCIIString();
+	    	long lSleep = Math.abs(_rand.nextInt())%300;
+	    	_logger.info("Random sleep on "+Thread.currentThread()+"="+lSleep+"-Message id="+id);
+	    	Thread.sleep(lSleep);
+	    	bytesToFile(_returnFile, message.getBody().getContents());
+	    	return message;
+	    } // ________________________________
+
+	} // ___________________________________________________
+*/
+}

Deleted: labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/listeners/ListenerManagerIntegrationTest.java
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/listeners/ListenerManagerIntegrationTest.java	2006-12-19 12:26:16 UTC (rev 8399)
+++ labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/listeners/ListenerManagerIntegrationTest.java	2006-12-19 12:29:48 UTC (rev 8400)
@@ -1,269 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.soa.esb.listeners;
-
-import static org.junit.Assert.assertTrue;
-
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.net.URI;
-import java.sql.DriverManager;
-import java.sql.Statement;
-import java.util.Properties;
-import java.util.Random;
-import java.util.UUID;
-
-import junit.framework.Assert;
-import junit.framework.JUnit4TestAdapter;
-
-import org.apache.log4j.Logger;
-import org.apache.log4j.xml.DOMConfigurator;
-import org.jboss.internal.soa.esb.couriers.DeliverOnlyCourier;
-import org.jboss.soa.esb.addressing.Call;
-import org.jboss.soa.esb.addressing.EPR;
-import org.jboss.soa.esb.addressing.eprs.FileEpr;
-import org.jboss.soa.esb.couriers.CourierFactory;
-import org.jboss.soa.esb.helpers.ConfigTree;
-import org.jboss.soa.esb.listeners.ListenerManager;
-import org.jboss.soa.esb.listeners.ListenerUtil;
-import org.jboss.soa.esb.listeners.message.EsbListenerController;
-import org.jboss.soa.esb.message.Message;
-import org.jboss.soa.esb.message.format.MessageFactory;
-import org.jboss.soa.esb.testutils.FileUtil;
-import org.jboss.soa.esb.testutils.HsqldbUtil;
-import org.jboss.soa.esb.testutils.TestEnvironmentUtil;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-public class ListenerManagerIntegrationTest 
-{
-/*
-	@BeforeClass
-	public static void setUp() throws Exception
-	{
-		_logger.info("Writing temp files to "+TMP_DIR);
-
-    	// delete this one just to make sure asserts take the new ones
-    	_returnFile.delete();
-    	
-    	// initialize registry
-    	runBeforeAllTests();
-    	
-	}
-	
-	@AfterClass
-	public static void tearDown() throws Exception
-	{
-    	_returnFile.delete();
-
-    	Thread.sleep(2000);
-    	if ("org.hsqldb.jdbcDriver".equals(mDbDriver))
-			HsqldbUtil.stopHsqldb(mDbUrl, mDbUsername, mDbPassword);
-	}
-	
-	@Test
-	public void allTests() throws Exception
-	{
-		String winOrUnix = (isWindows()) ? "Win" : "Unix";
-		for (String file : new String[]
-		    {
-				"/esbListenerFtp.xml"
-				,"/esbListenerFile"+winOrUnix+".xml"
-				,"/esbListenerJms.xml"
-			})
-		{
-			_logger.info("___Test for FILENAME: "+file+" starting ____________________");
-			oneTest(file);
-			_logger.info("___Test for FILENAME: "+file+" FINISHED ____________________");
-		}
-	} //________________________________	
-	
-	private void oneTest(String fileName) throws Exception 
-    {
-		// Write wome messages to EPR obtained from configuration file
-		String configFile = getClass().getResource(fileName).getFile();
-		ConfigTree tree = ConfigTree.fromInputStream(new FileInputStream(configFile));
-		ConfigTree eprElement = tree.getAllChildren()[0].getFirstChild("EPR");
-		EPR toEPR = ListenerUtil.assembleEpr(eprElement);
-		if (toEPR instanceof FileEpr)
-		{
-			// take inputSuffix as outputSuffix for initial message sending
-			eprElement.setAttribute(FileEpr.POST_SUFFIX_TAG,eprElement.getAttribute(FileEpr.INPUT_SUFFIX_TAG));
-			eprElement.setAttribute(FileEpr.INPUT_SUFFIX_TAG,null);
-			toEPR = ListenerUtil.assembleEpr(eprElement);
-		}
-		
-		String THE_TEXT 		= "___Config="+fileName+"___ Message Content ___"; 
-		
-		int howMany = 10;  // how many messages do you want to send before the listener comes up
-		DeliverOnlyCourier sender = CourierFactory.getCourier(toEPR);
-		Message message = MessageFactory.getInstance().getMessage();
-		message.getHeader().setCall(new Call(toEPR));
-		message.getBody().setContents(THE_TEXT.getBytes());
-		for (int i1=0; i1<howMany; i1++)
-		{
-			URI uri = new URI(UUID.randomUUID().toString());
-			message.getHeader().getCall().setMessageID(uri);
-			sender.deliver(message);
-		}
-		
-		_returnFile.delete();
-		// launch listener manager in a child thread
-		_manager = ListenerUtil.launchManager(configFile, true);
-		_logger.debug(" Waiting for all child listeners to start");
-		_manager.waitUntilReady();
-		_logger.debug(" All child listeners ready");
-
-		// JUST FOR THIS TEST:
-		// Give your listener some time to process queued messages (see howMany above)
-		// Time allowed, and maxThreads in config file will impact how many messages
-		// will be processed, and how many will remain unprocessed
-		Thread.sleep(150*howMany);
-		
-		_logger.debug("going to EndRequested");
-		_manager.requestEnd();
-		_logger.debug("back from EndRequested");
-		
-		Assert.assertEquals(THE_TEXT, stringFromFile(_returnFile));
-		_returnFile.delete();
-    }
-	
-	static void bytesToFile(File file, byte[] text) throws Exception
-	{
-		OutputStream out = new FileOutputStream(file);
-		out.write(text);
-		out.close();
-	} //________________________________
-
-	static String stringFromFile(File file) throws Exception
-	{
-		ByteArrayOutputStream out = new ByteArrayOutputStream();
-
-		FileInputStream	inp = new FileInputStream(file);
-		byte[] ba = new byte[1000];
-		int iQ;
-		while (-1 != (iQ=inp.read(ba)))
-			if (iQ > 0)
-				out.write(ba,0,iQ);
-		inp.close();
-		
-		out.close();
-		return out.toString();
-	} //________________________________
-	
-	public static void runBeforeAllTests()
-	{
-		try {
-			DOMConfigurator.configure(TestEnvironmentUtil.getUserDir("product","../product") + "etc/test/resources/log4j.xml");
-			TestEnvironmentUtil.setESBPropertiesFileToUse("product","../product");
-			//Set the juddi properties file in System so juddi will pick it up later and use the test values.
-			String juddiPropertiesFile = "/org/jboss/soa/esb/services/registry/juddi-qatest.properties";
-			System.setProperty("juddi.propertiesFile", juddiPropertiesFile);
-			//Read this properties file to get the db connection string
-			Properties props = new Properties();
-			InputStream inStream = Class.class.getResourceAsStream(juddiPropertiesFile);
-			props.load(inStream);
-			mDbDriver    = props.getProperty("juddi.jdbcDriver");
-			mDbUrl       = props.getProperty("juddi.jdbcUrl");
-			mDbUsername  = props.getProperty("juddi.jdbcUsername");
-			mDbPassword  = props.getProperty("juddi.jdbcPassword");
-			
-			String database="not tested yet";
-			if ("org.hsqldb.jdbcDriver".equals(mDbDriver)) {
-				database = "hsqldb";
-				//Bring up hsql on default port 9001
-				HsqldbUtil.startHsqldb(TestEnvironmentUtil.getUserDir("product","../product") + "build/hsqltestdb", "juddi");
-			} else if ("com.mysql.jdbc.Driver".equals(mDbDriver)) {
-				database = "mysql";
-			} //add and test your own database..
-			
-			//Get the registry-schema create scripts
-			String sqlDir = TestEnvironmentUtil.getUserDir("product","../product") + "install/jUDDI-registry/sql/" + database + "/";
-			//Drop what is there now, if exists. We want to start fresh.
-			String sqlDropCmd      = FileUtil.readTextFile(new File(sqlDir + "drop_database.sql"));
-			String sqlCreateCmd    = FileUtil.readTextFile(new File(sqlDir + "create_database.sql"));
-			String sqlInsertPubCmd = FileUtil.readTextFile(new File(sqlDir + "insert_publishers.sql"));
-			
-			try {
-				Class.forName(mDbDriver);
-			} catch (Exception e) {
-				System.out.println("ERROR: failed to load " + database + " JDBC driver.");
-				e.printStackTrace();
-				return;
-			}
-			java.sql.Connection con = DriverManager.getConnection(mDbUrl, mDbUsername, mDbPassword);
-			Statement stmnt = con.createStatement();
-			stmnt.execute(sqlDropCmd);
-			stmnt.execute(sqlCreateCmd);
-			stmnt.execute(sqlInsertPubCmd);
-			
-		} catch (Throwable e) {
-			e.printStackTrace();
-			System.out.println("We should stop testing, since we don't have a db.");
-			assertTrue(false);
-		}
-	}
-	public static junit.framework.Test suite() {
-		return new JUnit4TestAdapter(ListenerManagerIntegrationTest.class);
-	}
-
-	private static boolean isWindows() 
-		{ return System.getProperty("os.name").toLowerCase().contains("window"); }
-	private static final String TMP_DIR	= isWindows() ? "/temp" : "/tmp";
-
-	private static Logger _logger			= Logger.getLogger(ListenerManagerIntegrationTest.class);
-
-	static File _returnFile			= new File(TMP_DIR,"ListenerManagerOutput.txt");
-
-	
-	EsbListenerController	_esbListController;
-	ListenerManager			_manager;
-
-    private static String mDbDriver;
-	private static String mDbUrl;
-	private static String mDbUsername;
-	private static String mDbPassword;
-
-	public static class MockMessageAwareAction
-	{
-		Random _rand = new Random(System.currentTimeMillis());
-	    ConfigTree _config;
-	    public MockMessageAwareAction(ConfigTree config) { _config = config; } 
-	    public Message writeToDisk (Message message) throws Exception 
-	    {
-	    	String id = message.getHeader().getCall().getMessageID().toASCIIString();
-	    	long lSleep = Math.abs(_rand.nextInt())%300;
-	    	_logger.info("Random sleep on "+Thread.currentThread()+"="+lSleep+"-Message id="+id);
-	    	Thread.sleep(lSleep);
-	    	bytesToFile(_returnFile, message.getBody().getContents());
-	    	return message;
-	    } // ________________________________
-
-	} // ___________________________________________________
-*/
-}

Added: labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/listeners/juddi-unittest.properties
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/listeners/juddi-unittest.properties	2006-12-19 12:26:16 UTC (rev 8399)
+++ labs/jbossesb/trunk/product/core/listeners/tests/src/org/jboss/soa/esb/listeners/juddi-unittest.properties	2006-12-19 12:29:48 UTC (rev 8400)
@@ -0,0 +1,69 @@
+# jUDDI Registry Properties (used by RegistryServer)
+# see http://www.juddi.org for more information
+
+# The UDDI Operator Name
+juddi.operatorName = jUDDI.org
+
+# The i18n locale default codes
+juddi.i18n.languageCode = en
+juddi.i18n.countryCode = US
+
+# The UDDI DiscoveryURL Prefix
+juddi.discoveryURL = http://localhost:8080/juddi/uddiget.jsp?
+
+# The UDDI Operator Contact Email Address
+juddi.operatorEmailAddress = admin at juddi.org
+
+# The maximum name size and maximum number
+# of name elements allows in several of the
+# FindXxxx and SaveXxxx UDDI functions.
+juddi.maxNameLength=255
+juddi.maxNameElementsAllowed=5
+
+# The maximum number of UDDI artifacts allowed
+# per publisher. A value of '-1' indicates any 
+# number of artifacts is valid (These values can be
+# overridden at the individual publisher level).
+juddi.maxBusinessesPerPublisher=25
+juddi.maxServicesPerBusiness=20
+juddi.maxBindingsPerService=10
+juddi.maxTModelsPerPublisher=100
+
+# jUDDI Authentication module to use
+juddi.auth = org.apache.juddi.auth.DefaultAuthenticator
+
+# jUDDI DataStore module currently to use
+juddi.dataStore = org.apache.juddi.datastore.jdbc.JDBCDataStore
+
+# use a dataSource (if set to false a direct 
+# jdbc connection will be used.
+juddi.isUseDataSource=false
+juddi.jdbcDriver=org.hsqldb.jdbcDriver
+juddi.jdbcUrl=jdbc:hsqldb:hsql://localhost/juddi
+juddi.jdbcUsername=sa
+juddi.jdbcPassword=
+# jUDDI DataSource to use
+juddi.dataSource=java:comp/env/jdbc/juddiDB
+
+# jUDDI UUIDGen implementation to use
+juddi.uuidgen = org.apache.juddi.uuidgen.DefaultUUIDGen
+
+# jUDDI Cryptor implementation to use
+juddi.cryptor = org.apache.juddi.cryptor.DefaultCryptor
+ 
+# jUDDI Validator to use
+juddi.validator=org.apache.juddi.validator.DefaultValidator
+
+# jUDDI Proxy Properties (used by RegistryProxy)
+juddi.proxy.adminURL = http://localhost:8080/juddi/admin
+juddi.proxy.inquiryURL = http://localhost:8080/juddi/inquiry
+juddi.proxy.publishURL = http://localhost:8080/juddi/publish
+juddi.proxy.transportClass = org.apache.juddi.proxy.AxisTransport
+juddi.proxy.securityProvider = com.sun.net.ssl.internal.ssl.Provider
+juddi.proxy.protocolHandler = com.sun.net.ssl.internal.www.protocol
+
+# JNDI settings (used by RMITransport)
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+  




More information about the jboss-svn-commits mailing list