• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb question

 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Code
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>testBean/TestBean</ejb-name>
<home>testBean.TestHome</home>
<remote>testBean.TestRemote</remote>
<ejb-class>testBean.TestBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>

<assembly-descriptor>
<container-transaction>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
Given the above deployment descriptor fragment, which one of the following describes the behavior of this bean?
Choice 1
The bean uses a custom primary key.
Choice 2
The bean is forced to passivate after ten seconds.
Choice 3
The bean implementation class is not part of a Java package.
Choice 4
This bean may execute without a transaction context.
Choice 5
This bean is re-entrant.
 
Eduard Manas
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The correct answer is choice 4, as the bean is deployed with transactional attribute 'Supports', which means that it MAYBE executed without transactional contexts. Choices 1 and 5 are false because they only apply to entity beans.
Eduard
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic