Forums Register Login

ETS Question doubt stateless bean

+Pie Number of slices to send: Send
Source: ETS (Enthuware)

Consider the following method of a stateless session bean. Which of the given options are correct regarding this method?


Options [Choose 1]
a) @PostConstruct
b) @Remove
c) business
d) DI method like setSesionContext
e) Invalid in a stateless session beam

ETS Answer: Business
I dont agree. Here is my explanation.
xxxx() method is doing a JNDI lookup on java:comp/env/jms/myQueueConnectionFactory. This lookup can be done
in PostConstruct(), PreDestroY(), Timeout callback method, business method, DI method like setSessionContext().
Hence answer is @PostConstruct,business method and DI method like setSessionContext().
Is my understanding correct?
+Pie Number of slices to send: Send
Experts/Ranchers, Please take time and reply.
So there I was, trapped in the jungle. And at the last minute, I was saved by this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1123 times.
Similar Threads
ETS Question doubts
Need info about servlet log file
Resource manager access
JMS running example with MD bean
Session Beans and SessionBean interface.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:46:04.