Code: Select all
@Remote(SfSBeanRemote.class)
public class SfSBean implements SfSBeanRemote {
//valid code...
}
public interface SfSBeanRemote {
void processData();
}
Thanks
Moderator: admin
Code: Select all
@Remote(SfSBeanRemote.class)
public class SfSBean implements SfSBeanRemote {
//valid code...
}
public interface SfSBeanRemote {
void processData();
}
Code: Select all
@EJB static SfSBean sfs
Code: Select all
//it works
@EJB
SfsBeanRemote remoteViewOfBean;
Code: Select all
//it won't work as this bean only exposed as a remote view according to this question.
@EJB
SfsBean noInterfaceViewOfBean;
using writable static field is forbidden. Injection is kind of writing, so it shouldn't work.An enterprise bean must not use read/write static fields. Using read-only static fields is allowed. Therefore, it is recommended that all static fields in the enterprise bean class be declared as final.
Users browsing this forum: No registered users and 1 guest