MCQs > IT & Programming > Java > An online shop employs a stateless session bean (named ‘Eshop’) to process the request. ‘Eshop’ Uses a declarative transaction management system. The following code is from the XML deployment descriptor file of the bean: Eshop com. solution. EshopHome com. Solution. Eshop com. Solution. EshopLocalHome<.local-home> com. Solution. EshopLocal com. Solution. eshopBean The session and transaction attributes are to be coded in the numbered 10 and 11. Which of the Following options should be used to make the bean work as expected?

Java MCQs

An online shop employs a stateless session bean (named ‘Eshop’) to process the request. ‘Eshop’

Uses a declarative transaction management system. The following code is from the XML deployment descriptor file of the bean:

  1. <ejb-jar>
  2. <enterprise-beans>
  3. <session>
  4.                <ejb-name>Eshop</ejb-name>
  5.                <home>com. solution. EshopHome</home>
  6.                <remote>com. Solution. Eshop</remote>
  7.                <local>com. Solution. EshopLocalHome<.local-home>
  8.                <local>com. Solution. EshopLocal</local>
  9.                <ejb-class>com. Solution. eshopBean</ejb-class>
  10.  
  11.  
  12. </session>
  13. </enterprise-beans>
  14. </ejb-jar>

The session and transaction attributes are to be coded in the numbered 10 and 11. Which of the

Following options should be used to make the bean work as expected?

Answer

Correct Answer: <session-type>Stateless</session-type> <transaction-type>Container</transaction-type>

Explanation:

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it