In an application that uses declarative demarcation, one procedure that is called frequently from other procedures is a logging procedure that writes appropriate information about the state of the system into a log. What transaction attribute should be used for that procedure?
What will be an ideal response?
RequiresNew because we want the transaction corresponding to that procedure to
commit even if the transaction that called it should abort.
Another possible answer is NotSupported, because we want the logging to take
place even if the logging procedure is called from a transaction that aborts. However,
in this case the logging would not itself be transactional, which might be desirable for
many applications.
You might also like to view...
Which of the following does NOT help with memory management?
A) Turn off the screen saver. B) Defragment the hard drive. C) Empty the Recycle Bin. D) Disable virtual memory.
Parameterized stream manipulator setfill specifies the fill character that’s displayed when an output is displayed in a field wider than the number of characters or digits in the output. The effect of setfill applies:
a. Only to the current value being displayed. b. Only to outputs displayed in the current statement. c. Until explicitly set to a different setting. d. Until the output buffer is flushed.