THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
<jsp:useBean id="SCADomainInstance" class="org.apache.tuscany.host.embedded.SCADomainBean" scope="application"> <jsp:setProperty name="SCADomainInstance" property="deployableComposite" value="Calculator.composite" /> </jsp:useBean> ... <% SCADomain domain = (SCADomain) application.getAttribute("SCADomain"); CalculatorService calculatorService = domain.getService(CalculatorService.class, "CalculatorServiceComponent"); %> |
Optional attributes can be defined by using the <jsp:setProperty> calls.
Question: When the SCADomain is stopped ? when the application goes out of scope and the garbage collection process the termination of the SCADomain. Is this OK ?
...