Search in sources :

Example 1 with ConnectionFactory

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();
}
Also used : ConnectionFactory(org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionFactory)

Example 2 with ConnectionFactory

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();
    }
}
Also used : ConnectionFactory(org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionFactory)

Example 3 with ConnectionFactory

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();
}
Also used : ConnectionFactory(org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionFactory)

Example 4 with ConnectionFactory

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();
}
Also used : ConnectionFactory(org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionFactory)

Example 5 with ConnectionFactory

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();
}
Also used : ConnectionFactory(org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionFactory)

Aggregations

ConnectionFactory (org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionFactory)7 StringReader (java.io.StringReader)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 StringTokenizer (java.util.StringTokenizer)1 DocumentBuilder (javax.xml.parsers.DocumentBuilder)1 DocumentBuilderFactory (javax.xml.parsers.DocumentBuilderFactory)1 Response (org.jboss.narayana.blacktie.jatmibroker.xatmi.Response)1 X_OCTET (org.jboss.narayana.blacktie.jatmibroker.xatmi.X_OCTET)1 Document (org.w3c.dom.Document)1 InputSource (org.xml.sax.InputSource)1