posted 20 years ago
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
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)