1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| import java.io.IOException;
import javax.xml.stream.XMLStreamException;
import org.apache.tuscany.sca.host.embedded.SCADomain;
import org.xml.sax.SAXException;
public class Test {
public static void main(String argc[]) throws SAXException{
SCADomain scaDomain = SCADomain.newInstance("Noyau.composite");
Noyau kernel = scaDomain.getService(Noyau.class,"NoyauComponent");
try {
kernel.callChecker();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (XMLStreamException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
scaDomain.close();
}
} |
Partager