2 Replies Latest reply on Dec 6, 2006 12:17 AM by Gus Gu

    Is it possible to create a generics SFSB

    Gus Gu Expert

      Hi all,

      I am wondering whether it is possible to create a generics SFSB like:

      @Stateful
      @Name("experimentEditor")
      @Scope(ScopeType.CONVERSATION)
      public class ExperimentEditorBean<T> implements ExperimentEditor<T> {
      
       T instance;
       ......
      }

      Then I try to use a SLSF to pass a concrete T instance to the SFSB, but I don't have any idea how to code it. Any guidance? I really appreciate it.