s***8 发帖数: 1136 | 1 import javax.ejb.*;
import javax.annotation.*;
import javax.persistence.*;
______________
public class HelloBean {
public void hello() {
...
}
}
Which of the following annotations can be added to the blank to make
HelloBean a valid EJB bean class (there may be more than one correct answers
)?
A, @Stateless
B, @Stateful
C, @Singleton
D, @EJB
E, @Entity
F, @ManagedBean
G, All of the above
H, None of the above | q*********u 发帖数: 280 | 2 abde
cheat sheet一把,ms没有singleton和ManagedBean
import javax.ejb.*;
import javax.annotation.*;
import javax.persistence.*;
______________
public class HelloBean {
public void hello() {
...
}
}
Which of the following annotations can be added to the blank to make
HelloBean a valid EJB bean class (there may be more than one correct answers
)?
A, @Stateless
B, @Stateful
C, @Singleton
D, @EJB
E, @Entity
F, @ManagedBean
G, All of the above
H, None of the above
【在 s***8 的大作中提到】![](/moin_static193/solenoid/img/up.png) : import javax.ejb.*; : import javax.annotation.*; : import javax.persistence.*; : ______________ : public class HelloBean { : public void hello() { : ... : } : } : Which of the following annotations can be added to the blank to make
| s***8 发帖数: 1136 | 3 abc
Singleton is new in ejb 3.1, ManagedBean is new in Java EE 6.
@EJB declares a ejb-ref, not ejb bean class.
@Entity declares a persistence entity, which is not EJB. | q*********u 发帖数: 280 | 4 哟呵,3.1, ee6, 好题阿。。。
abc
Singleton is new in ejb 3.1, ManagedBean is new in Java EE 6.
@EJB declares a ejb-ref, not ejb bean class.
@Entity declares a persistence entity, which is not EJB.
【在 s***8 的大作中提到】![](/moin_static193/solenoid/img/up.png) : abc : Singleton is new in ejb 3.1, ManagedBean is new in Java EE 6. : @EJB declares a ejb-ref, not ejb bean class. : @Entity declares a persistence entity, which is not EJB.
| q*********u 发帖数: 280 | 5 接着贴阿,再接再厉
import javax.ejb.*;
import javax.annotation.*;
import javax.persistence.*;
______________
public class HelloBean {
public void hello() {
...
}
}
Which of the following annotations can be added to the blank to make
HelloBean a valid EJB bean class (there may be more than one correct answers
)?
A, @Stateless
B, @Stateful
C, @Singleton
D, @EJB
E, @Entity
F, @ManagedBean
G, All of the above
H, None of the above
【在 s***8 的大作中提到】![](/moin_static193/solenoid/img/up.png) : import javax.ejb.*; : import javax.annotation.*; : import javax.persistence.*; : ______________ : public class HelloBean { : public void hello() { : ... : } : } : Which of the following annotations can be added to the blank to make
|
|