Hallo Leute,
ich habe ein Problem mir @Create Annotation. Hier ist meine Struktur.
Ich benutze
JBoss 4.2.3
Seam 2.2
JBossTools 3.1
Eclipse 3.5
und bekommen keine Fehler bei @Remote oder @Destroy. Aber bei @Create in Intefece bekomme ich folgende Fehlermeldung
" Only component class can have @Create method "init"
Bei Deploy oder Runtime bekomme ich keine Fehler. Alles funtionirt super. Aber bei meine Wokspace stehlt immer ein rotes x.
Beste Grüße.
ich habe ein Problem mir @Create Annotation. Hier ist meine Struktur.
Ich benutze
JBoss 4.2.3
Seam 2.2
JBossTools 3.1
Eclipse 3.5
und bekommen keine Fehler bei @Remote oder @Destroy. Aber bei @Create in Intefece bekomme ich folgende Fehlermeldung
" Only component class can have @Create method "init"
Bei Deploy oder Runtime bekomme ich keine Fehler. Alles funtionirt super. Aber bei meine Wokspace stehlt immer ein rotes x.
Beste Grüße.
Code:
@Local public interface BvKundeBrowse<E, F>{ void refreshResults(); @Create public void init(); @Remove @Destroy void destroy(); } @Stateful @Name("bvKundeBrowse") @Scope(value=ScopeType.SESSION) public class BvKundeBrowseBean implements BvKundeBrowse<.., ..> { .... @Create public void init(){ ... } @Remove @Destroy void destroy(){ } }
Comment