URL url = Thread.currentThread().getContextClassLoader().getResource("appclient/simpleresource/application-client.xml");
//URL jbossClientURL = Thread.currentThread().getContextClassLoader().getResource("appclient/jboss-client.xml");
URL jbossClientURL = null;
ApplicationClientDD xml = ClientLauncher.loadXML(url, jbossClientURL);
String mainClassName = SimpleResourceClient.class.getName();
String applicationClientName = "appclient-simpleresource-client"; // must match JNDI name in jboss-client.xml or display-name in application-client.xml
String args[] = { };
ClientLauncher.launch(xml, mainClassName, applicationClientName, args);