0
在glassfish 4.0中,我有一個使用@flowscope的工作JSF應用程序。 的流定義的例子如下:將Flowscope遷移到Glassfish 4.1
package flow;
import javax.enterprise.inject.Produces;
import javax.faces.flow.Flow;
import javax.faces.flow.builder.FlowBuilder;
import javax.faces.flow.builder.FlowBuilderParameter;
import javax.faces.flow.builder.FlowDefinition;
import javax.inject.Named;
@Named("sintesitransiti")
public class SintesiTransitiFlow {
private static final long serialVersionUID = -7623501087369765218L;
@Produces @FlowDefinition
public Flow defineFlow(@FlowBuilderParameter FlowBuilder flowBuilder) {
String flowId = "sintesitransiti";
flowBuilder.id("", flowId);
flowBuilder.viewNode("sintesitransiti", "/dir1/sintesitransiti/sintesitransiti.xhtml").markAsStartNode();
flowBuilder.viewNode("SintesitransitiResult", "/dir1/sintesitransiti/List.xhtml");
flowBuilder.returnNode("taskFlowReturn1").
fromOutcome("/index.xhtml");
return flowBuilder.getFlow();
}
}
我升級到它隨的glassfish 4.1 netbeans的8.02。 在源代碼中我不得不改變一些導入,沒有其他改變。 流量計不再工作。我沒有注意到服務器日誌中的任何相關錯誤。在我看來,流注釋簡單地被丟棄。任何建議?
謝謝