use of org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionFactory in project narayana by jbosstm.
the class AdministrationTest method setUp.
public void setUp() throws Exception {
runServer.serverinit();
ConnectionFactory connectionFactory = ConnectionFactory.getConnectionFactory();
connection = connectionFactory.getConnection();
}
use of org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionFactory in project narayana by jbosstm.
the class CSControl method setUp.
public void setUp() throws Exception {
log.info("setUp");
String osName = (System.getProperty("os.name"));
isSunOS = (osName != null && "SunOS".equals(osName));
isWinOS = (osName != null && osName.toLowerCase().indexOf("win") >= 0);
REPORT_DIR = System.getProperty("TEST_REPORTS_DIR", ".");
CS_EXE = System.getProperty("CLIENT_SERVER_EXE", "./cs");
clientBuilder = new ProcessBuilder();
serverBuilder = new ProcessBuilder();
// clientBuilder.redirectErrorStream(true);
// serverBuilder.redirectErrorStream(true);
java.util.Map<String, String> environment = serverBuilder.environment();
// environment.clear();
environment.put("LD_LIBRARY_PATH", System.getenv("LD_LIBRARY_PATH"));
environment.put("BLACKTIE_CONFIGURATION_DIR", System.getenv("BLACKTIE_CONFIGURATION_DIR"));
environment.put("BLACKTIE_SCHEMA_DIR", System.getenv("BLACKTIE_SCHEMA_DIR"));
environment.put("JBOSSAS_IP_ADDR", System.getenv("JBOSSAS_IP_ADDR"));
environment.put("PATH", System.getenv("PATH"));
clientBuilder.environment().putAll(environment);
environment.put("LOG4CXXCONFIG", "log4cxx-CSTest-server.properties");
clientBuilder.environment().put("LOG4CXXCONFIG", "log4cxx-CSTest-client.properties");
if (connection == null) {
ConnectionFactory cf = ConnectionFactory.getConnectionFactory();
connection = cf.getConnection();
}
}
use of org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionFactory in project narayana by jbosstm.
the class BlacktieStompAdministrationServiceTest method setUp.
public void setUp() throws ConnectionException, ConfigurationException {
ConnectionFactory connectionFactory = ConnectionFactory.getConnectionFactory();
connection = connectionFactory.getConnection();
}
use of org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionFactory in project narayana by jbosstm.
the class TestNBF method setUp.
public void setUp() throws ConnectionException, ConfigurationException {
server.serverinit();
ConnectionFactory connectionFactory = ConnectionFactory.getConnectionFactory();
connection = connectionFactory.getConnection();
}
use of org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionFactory in project narayana by jbosstm.
the class AdministrationProxy method onConstruct.
public void onConstruct() throws ConfigurationException {
log.info("onConstruct load btconfig.xml");
XMLParser.loadProperties("btconfig.xsd", "btconfig.xml", prop);
ConnectionFactory cf = ConnectionFactory.getConnectionFactory();
connection = cf.getConnection();
}
Aggregations