public SimpleAxis2Server ( String repoLocation, String confLocation) throws Exception { super(false); configContext = ConfigurationContextFactory .createConfigurationContextFromFileSystem(repoLocation, confLocation); }
/** * Users extending this class can override this method to supply a custom ConfigurationContext * * @return ConfigurationContext * @throws AxisFault */ protected ConfigurationContext createDefaultConfigurationContext() throws AxisFault { return ConfigurationContextFactory.createConfigurationContextFromFileSystem(null); } }
public SimpleMessageReceiver(String repoLocation, String confLocation, EventCallback callback) throws AxisFault{ configContext = ConfigurationContextFactory .createConfigurationContextFromFileSystem(repoLocation, confLocation); }
public SimpleAxis2Server ( String repoLocation, String confLocation) throws Exception { super(false); configContext = ConfigurationContextFactory .createConfigurationContextFromFileSystem(repoLocation, confLocation); }
/** * Users extending this class can override this method to supply a custom ConfigurationContext * * @return ConfigurationContext * @throws AxisFault */ protected ConfigurationContext createDefaultConfigurationContext() throws AxisFault { return ConfigurationContextFactory.createConfigurationContextFromFileSystem(null); } }
public static ConfigurationContext createConfigurationContextFromFileSystem(String path) throws AxisFault { return createConfigurationContextFromFileSystem(path, null); }
public static ConfigurationContext createConfigurationContextFromFileSystem(String path) throws AxisFault { return createConfigurationContextFromFileSystem(path, null); }
public Axis2BlockingClient(String clientRepository, String axis2xml) { try { configurationContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem( clientRepository != null ? clientRepository : DEFAULT_CLIENT_REPO, axis2xml != null ? axis2xml : DEFAULT_AXIS2_XML); configurationContextCreated = true; } catch (AxisFault e) { handleException("Error initializing Axis2 Blocking Client", e); } }
public void init() { try { if (configurationContext == null) { configurationContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem( clientRepository != null ? clientRepository : DEFAULT_CLIENT_REPO, axis2xml != null ? axis2xml : DEFAULT_AXIS2_XML); } } catch (AxisFault e) { handleException("Error initializing BlockingMessageSender", e); } }
private static ServiceClient createServiceClient() throws AxisFault { String repo = getProperty("repository", "client_repo"); if (repo != null && !"null".equals(repo)) { ConfigurationContext configContext = ConfigurationContextFactory. createConfigurationContextFromFileSystem(repo, repo + File.separator + "conf" + File.separator + "axis2.xml"); return new ServiceClient(configContext, null); } else { return new ServiceClient(); } }
private static ServiceClient createServiceClient() throws AxisFault { String repo = getProperty("repository", "client_repo"); if (repo != null && !"null".equals(repo)) { ConfigurationContext configContext = ConfigurationContextFactory. createConfigurationContextFromFileSystem(repo, repo + File.separator + "conf" + File.separator + "axis2.xml"); return new ServiceClient(configContext, null); } else { return new ServiceClient(); } }
public void init() { try { configurationContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem( clientRepository != null ? clientRepository : DEFAULT_CLIENT_REPO, axis2xml != null ? axis2xml : DEFAULT_AXIS2_XML); sc = new ServiceClient(configurationContext, null); } catch (AxisFault e) { String msg = "Error initializing BlockingMessageSender : " + e.getMessage(); log.error(msg, e); throw new SynapseException(msg, e); } }
private static ServiceClient createServiceClient() throws AxisFault { String repo = getProperty("repository", "client_repo"); if (repo != null && !"null".equals(repo)) { ConfigurationContext configContext = ConfigurationContextFactory. createConfigurationContextFromFileSystem(repo, repo + File.separator + "conf" + File.separator + "axis2.xml"); return new ServiceClient(configContext, null); } else { return new ServiceClient(); } }
/** * Returns a stub to the node agent service * * @return * @throws Exception */ protected NodeAgentServiceStub getStub() throws Exception { ConfigurationContext cc = ConfigurationContextFactory.createConfigurationContextFromFileSystem(repositoryPath, configFile); return new NodeAgentServiceStub(cc, serviceLocation); }
@Override protected void before() throws Throwable { port = PortAllocator.allocatePort(); configurationContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(repositoryPath); server = new SimpleHTTPServer(configurationContext, port); server.start(); }
public TestGetServiceKey() throws Exception { location = "http://localhost:8080/axis2/services/NodeAgentService"; ConfigurationContext cc = ConfigurationContextFactory.createConfigurationContextFromFileSystem( "../lib/external", "test/orca/nodeagent/tests/nosecurity/client.axis2.nosign.xml"); stub = new NodeAgentServiceStub(cc, location); keyStoreLocation = "test/orca/nodeagent/tests/security/known/client.jks"; authorityIP = "NA"; clientPassword = "clientkeypass"; clientPasswordChar = clientPassword.toCharArray(); clientStorePassword = "clientstorepass"; clientStorePasswordChar = clientStorePassword.toCharArray(); }
public TestAddAuthorityKey() throws Exception { location = "http://localhost:9123/axis2/services/NodeAgentService"; ConfigurationContext cc = ConfigurationContextFactory.createConfigurationContextFromFileSystem( "../lib/external", "test/orca/nodeagent/tests/nosecurity/client.axis2.nosign.xml"); stub = new NodeAgentServiceStub(cc, location); keyStoreLocation = "test/orca/nodeagent/tests/security/known/client.jks"; authorityIP = "192.168.1.1"; clientPassword = "clientkeypass"; clientPasswordChar = clientPassword.toCharArray(); clientStorePassword = "clientstorepass"; clientStorePasswordChar = clientStorePassword.toCharArray(); keyAlias = "clientkey"; }
public int run() throws Exception { System.out.println("here"); System.out.print(repositoryPath); System.out.print(configFile); ConfigurationContext cc = ConfigurationContextFactory.createConfigurationContextFromFileSystem(repositoryPath, configFile); NodeAgentServiceStub stub = new NodeAgentServiceStub(cc, serviceLocation); TestFuncElement tf = new TestFuncElement(); tf.setTestFuncElement(10); TestFuncResultElement trf = stub.testFunc(tf); System.out.println("testFunc result is: " + trf.getTestFuncResultElement()); return 0; }
public void run() throws Exception { ConfigurationContext cc = ConfigurationContextFactory.createConfigurationContextFromFileSystem(repositoryPath, configFile); NodeAgentServiceStub stub = new NodeAgentServiceStub(cc, serviceLocation); System.out.println("Connecting to service: " + serviceLocation); TestFuncElement tf = new TestFuncElement(); tf.setTestFuncElement(10); TestFuncResultElement trf = stub.testFunc(tf); System.out.println("TestFuncResult is: " + trf.getTestFuncResultElement()); }
public int run() throws Exception { ConfigurationContext cc = ConfigurationContextFactory.createConfigurationContextFromFileSystem(repositoryPath, configFile); NodeAgentServiceStub stub = new NodeAgentServiceStub(cc, serviceLocation); TestFuncElement tf = new TestFuncElement(); tf.setTestFuncElement(10); TestFuncResultElement trf = stub.testFunc(tf); System.out.println("TestFuncResult is: " + trf.getTestFuncResultElement()); return 0; }