PrepAway - Latest Free Exam Questions & Answers

Which sequence of statements below is TRUE?

JSR109 defines the life cycle of a Service Implementation Bean in the Web container.
Which sequence of statements below is TRUE?

PrepAway - Latest Free Exam Questions & Answers

A.
1. The Web container calls the method annotated with javax.annotation.PostConstruct annotation.
2. The web container creates a new instance of the Service Implementation Bean.
3. The web container may pool method ready instances of a Service Implementation Bean and dispatch a
method request on any instance in a method ready state.
4. For the web container with JAX-WS runtime, the method annotated with javax.annotation.PreDestroy is
called.

B.
1. The web container creates a new instance of the Service Implementation Bean.
2. For web containers with JAX-WS runtime, the container calls the method annotated with
javax.annotation.PostConstruct annotation.
3. The web container may pool method ready instances of a Service Implementation Bean and dispatch a
method request on any instance in a method ready state.
4. For the web container with JAX-WS runtime, the method annotated with javax.annotation.PreDestroy is
called.

C.
1. The web container creates a new instance of the Service Implementation Bean.
2. For web containers with JAX-WS runtime, the container calls the method annotated with
javax.annotation.PostConstruct annotation.
3. The web container may pool method ready instances of a Service Implementation Bean and dispatch a
method request on any instance in a method ready state.
4. For the web container with JAX-WS runtime, the method annotated with javax.annotation.PrePassivate.
is called.

D.
1. The Web container calls the method annotated with javax.annotation.PostActivate annotation.
2. The container creates a new instance of the Service Implementation Bean.
3. The web container may pool method ready instances of a Service Implementation Bean and dispatch a
method request on any instance in a method ready state.
4. For the web container with JAX-WS runtime, the method annotated with javax.annotation.PrePassivate
is called.


Leave a Reply