Package org.apache.tuscany.sca.node

Examples of org.apache.tuscany.sca.node.SCANode.destroy()


        SCANode node = SCANodeFactory.createNodeWithComposite("myapp.composite");
        MyClient myClient = node.getDomain().getService(MyClient.class, "MyClientComponent");
        myClient.aClientMethod();
        Thread.sleep(5000)// don't exit before callback arrives
        System.out.println("Closing the domain");
        node.destroy();
    }
}
View Full Code Here


            System.in.read();
        } catch (IOException e) {
            e.printStackTrace();
        }

        node.destroy();
        System.out.println("Callback server stopped");
    }

}
View Full Code Here

            System.in.read();
        } catch (IOException e) {
        }
       
        try {
            node.destroy();
        } catch (Exception e) {
            System.err.println("Exception stopping node");
            e.printStackTrace();
        }
       
View Full Code Here

            for(int j=0; j < 20; j++){
                Assert.assertEquals(calculatorServiceB.subtract(3, 2), 1.0);
                Assert.assertEquals(subtractServiceC.subtract(3, 2), 1.0);
            }
           
            node.destroy();
        }
       
        //com.ibm.jvm.Dump.HeapDump();         
    }         
}
View Full Code Here

                } catch (IOException e) {
                    e.printStackTrace();
               
            }
           
            node.destroy();
       
        } catch(Exception ex) {
            System.err.println("Exception in node - " + ex.getMessage());
            ex.printStackTrace(System.err);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.