• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

two questions regarding SCBCD test

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have two questions.
1) Can a method be a part of the exclude-list as well as be present in one of the method-permission tags. More relavantly..what will happen if we say
<exclude-list><method>*</exclude-list></method> and then we specificly assign a method to a role using a method-permission tag....what will be the output.

2) I read somewhere that if a CMT stateful session bean implements SessionSynchronizer interface then the only allowed trans-attributes are "Mandatory" "Required" and "RequiresNew". Is this true. I know it makes sense to have a transaction in such a case but...is this restriction true....purely from the point of view of the exams. :-)

Thanks in advance
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


1) Can a method be a part of the exclude-list as well as be present in one of the method-permission tags. More relavantly..what will happen if we say
<exclude-list><method>*</exclude-list></method> and then we specificly assign a method to a role using a method-permission tag....what will be the output.


The exclude list should override other settings.


2) I read somewhere that if a CMT stateful session bean implements SessionSynchronizer interface then the only allowed trans-attributes are "Mandatory" "Required" and "RequiresNew". Is this true. I know it makes sense to have a transaction in such a case but...is this restriction true....purely from the point of view of the exams. :-)


YES. If the CMT SFSB implements SessionSynchronize interface, it MUST have a transaction because the three methods defined inside the interface aims to give you some *chances* to control your transaction, or synchronized the state. Thus, if there is NO transaction involved, it makes no sense for implementing such interfaces.

Nick
 
Roses are red, violets are blue. Some poems rhyme and some don't. And some poems are a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic