1 24 25 package org.objectweb.cjdbc.scenario.horizontal; 26 27 import java.sql.Connection ; 28 29 import org.objectweb.cjdbc.driver.ControllerInfo; 30 import org.objectweb.cjdbc.scenario.templates.HorizontalRAIDb1WithCacheTemplate; 31 import org.objectweb.cjdbc.scenario.tools.testlet.UpdateTestLet; 32 33 41 public class SeparateURLScenario extends HorizontalRAIDb1WithCacheTemplate 42 { 43 48 public void testControllers() throws Exception 49 { 50 ControllerInfo[] c2 = new ControllerInfo[]{new ControllerInfo("localhost", 51 25323)}; 52 53 Connection con2 = getCJDBCConnection(c2); 54 UpdateTestLet let = new UpdateTestLet(con2); 55 let.set(UpdateTestLet.UPDATED_COLUMN_VALUE, "25323"); 56 let.execute(); 57 58 ControllerInfo[] c1 = new ControllerInfo[]{new ControllerInfo("localhost", 59 25322)}; 60 Connection con1 = getCJDBCConnection(c1); 61 let = new UpdateTestLet(con1); 62 let.set(UpdateTestLet.UPDATED_COLUMN_VALUE, "25322"); 63 let.execute(); 64 } 65 66 } | Popular Tags |