• 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
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

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
 
His brain is the size of a cherry pit! About the size of this ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic