• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

ejb question

 
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I'm all tasted up for a BLT! This tiny ad wants a monte cristo!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic