uCosminexus Application Server, Maintenance and Migration Guide

[Contents][Glossary][Index][Back][Next]

8.11.5 When the Session Bean is invoked asynchronously

This subsection describes the trace collection points when the Session Bean is invoked asynchronously, and the trace information that can be collected.

In an asynchronous invocation, the output order of the event IDs output by the same thread is guaranteed, but the output order of the event IDs output by different threads is not guaranteed. Therefore, the following events might occur:

Organization of this subsection
(1) When a Session Bean is invoked asynchronously from the local client
(2) When the Session Bean is invoked asynchronously from the remote client
(3) When get is invoked from the local client
(4) When get is invoked from the remote client
(5) When isDone is invoked from the local client
(6) When isDone is invoked from the remote client
(7) When isCancelled is invoked from the local client
(8) When isCancelled is invoked from the remote client
(9) When cancel is invoked from the local client
(10) When cancel is invoked from the remote client

(1) When a Session Bean is invoked asynchronously from the local client

(a) Trace collection points and PRF trace

The following table describes the event IDs, trace collection points, and PRF trace collection levels.

Table 8-54 Details of the trace collection points when the Session Bean is invoked asynchronously from the local client

Event ID No. in the figure# Trace collection points Level
0x8472 1 Immediately after the EJB container receives a request (for a local invocation) A
0x8473 2 Immediately before the EJB container sends a response (for a local invocation) A
0x84C0 3 Immediately before the EJB container calls back the asynchronous business method of EJB A
0x84D6 4 Immediately before the EJB container starts the asynchronous business method of EJB (for a local invocation) A
0x8409 5 Immediately before the EJB container calls back the EJB business method B
0x840A 6 Immediately after returning from a callback of the EJB business method B
0x84D7 7 Immediately after the asynchronous business method of EJB is terminated (for a local invocation) A
0x84C1 8 Immediately after returning from a callback of the asynchronous business method of EJB A

Legend:
A: Standard
B: Advanced

#
Corresponds to the numbers in Figure 8-34.

The following figure shows the trace collection points when the Session Bean is invoked asynchronously from the local client.

Figure 8-34 Trace collection points when the Session Bean is invoked asynchronously from the local client

[Figure]

(b) Trace information that can be collected

The following table describes the trace information that can be collected when the Session Bean is invoked asynchronously from the local client.

Table 8-55 Trace information that can be collected when the Session Bean is invoked asynchronously from the local client

No. in the figure# Event ID Level Information that you can acquire
Interface name Operation name Option
1 0x8472 A Bean name Method name, number of arguments --
2 0x8473 A Bean name Method name, number of arguments
  • When normal:
    Entrance-time
  • For an exception:
    Entrance-timeexception-name
3 0x84C0 A Class name of the Bean to be called back Method name, number of arguments Root application information at the source of an asynchronous method invocation
4 0x84D6 A Class name of the Bean to be called back Method name, number of arguments --
5 0x8409 B Bean name Method name, number of arguments --
6 0x840A B Bean name Method name, number of arguments
  • When normal:
    Entrance-time
  • For an exception:
    Entrance-timeexception-name
7 0x84D7 A Class name of the Bean to be called back Method name, number of arguments
  • When normal:
    Entrance-time
  • For an exception:
    Entrance-timeexception-name
8 0x84C1 A Class name of the Bean to be called back Method name, number of arguments
  • When normal:
    Entrance-time
  • For an exception:
    Entrance-timeexception-name

Legend:
A: Standard
B: Advanced
--: Not applicable

#
Corresponds to the numbers in Figure 8-34.

(2) When the Session Bean is invoked asynchronously from the remote client

(a) Trace collection points and PRF trace

The following table describes the event IDs, trace collection points, and PRF trace collection levels.

Table 8-56 Details of the trace collection points when the Session Bean is invoked asynchronously from the remote client

Event ID No. in the figure# Trace collection points Level
0x8470 1 Immediately after the EJB container receives a request (for a remote invocation) A
0x8471 2 Immediately before the EJB container sends a response (for a remote invocation) A
0x84C0 3 Immediately before the EJB container calls back the asynchronous business method of EJB A
0x84D8 4 Immediately before the EJB container starts the asynchronous business method of EJB (for a remote invocation) A
0x8409 5 Immediately before the EJB container calls back the EJB business method B
0x840A 6 Immediately after returning from a callback of the EJB business method B
0x84D9 7 Immediately after the asynchronous business method of EJB is terminated (for a remote invocation) A
0x84C1 8 Immediately after returning from a callback of the asynchronous business method of EJB A

Legend:
A: Standard
B: Advanced

#
Corresponds to the numbers in Figure 8-35.

The following figure shows the trace collection points when the Session Bean is invoked asynchronously from the remote client.

Figure 8-35 Trace collection points when the Session Bean is invoked asynchronously from the remote client

[Figure]

(b) Trace information that can be collected

The following table describes the trace information that can be collected when the Session Bean is invoked asynchronously from the remote client.

Table 8-57 Trace information that can be collected when the Session Bean is invoked asynchronously from the remote client

No. in the figure# Event ID Level Information that you can acquire
Interface name Operation name Option
1 0x8470 A Bean name Method name, number of arguments --
2 0x8471 A Bean name Method name, number of arguments
  • When normal:
    Entrance-time
  • For an exception:
    Entrance-timeexception-name
3 0x84C0 A Class name of the Bean to be called back Method name, number of arguments Root application information at the source of an asynchronous method invocation
4 0x84D8 A Class name of the Bean to be called back Method name, number of arguments --
5 0x8409 B Bean name Method name, number of arguments --
6 0x840A B Bean name Method name, number of arguments
  • When normal:
    Entrance-time
  • For an exception:
    Entrance-timeexception-name
7 0x84D9 A Class name of the Bean to be called back Method name, number of arguments
  • When normal:
    Entrance-time
  • For an exception:
    Entrance-timeexception-name
8 0x84C1 A Class name of the Bean to be called back Method name, number of arguments
  • When normal:
    Entrance-time
  • For an exception:
    Entrance-timeexception-name

Legend:
A: Standard
B: Advanced
--: Not applicable

#
Corresponds to the numbers in Figure 8-35.

(3) When get is invoked from the local client

(a) Trace collection points and PRF trace

The following table describes the event IDs, trace collection points, and PRF trace collection levels.

Table 8-58 Details of the trace collection points when get is invoked from the local client

Event ID No. in the figure# Trace collection points Level
0x84C2 1 When the processing of Future.get() starts (for a local invocation) B
0x84C3 2 When the processing of Future.get() ends (for a local invocation) B
0x84C4 1 When the processing of Future.get(long timeout, TimeUnit unit) starts (for a local invocation) B
0x84C5 2 When the processing of Future.get(long timeout, TimeUnit unit) ends (for a local invocation) B

Legend:
B: Advanced

#
Corresponds to the numbers in Figure 8-36.

The following figure shows the trace collection points when get is invoked from the local client.

Figure 8-36 Trace collection points when get is invoked from the local client

[Figure]

(b) Trace information that can be collected

The following table describes the trace information that can be collected when get is invoked from the local client.

Table 8-59 Trace information that can be collected when get is invoked from the local client

No. in the figure# Event ID Level Information that you can acquire
Interface name Operation name Option
1 0x84C2 B -- -- --
2 0x84C3 B -- --
  • When normal:
    Entrance-time
  • For an exception:
    Entrance-timeexception-name
1 0x84C4 B -- -- Method name, argument information
2 0x84C5 B -- --
  • When normal:
    Entrance-time
  • For an exception:
    Entrance-timeexception-name

Legend:
B: Advanced
--: Not applicable

#
Corresponds to the numbers in Figure 8-36.

(4) When get is invoked from the remote client

(a) Trace collection points and PRF trace

The following table describes the event IDs, trace collection points, and PRF trace collection levels.

Table 8-60 Details of the trace collection points when get is invoked from the remote client

Event ID No. in the figure# Trace collection points Level
0x84C6 1 When the processing of Future.get() starts (for a remote invocation) B
0x84C2 2 When the processing of Future.get() starts (for a local invocation) B
0x84C3 3 When the processing of Future.get() ends (for a local invocation) B
0x84C7 4 When the processing of Future.get() ends (for a remote invocation) B
0x84C8 1 When the processing of Future.get(long timeout, TimeUnit unit) starts (for a remote invocation) B
0x84C4 2 When the processing of Future.get(long timeout, TimeUnit unit) starts (for a local invocation) B
0x84C5 3 When the processing of Future.get(long timeout, TimeUnit unit) ends (for a local invocation) B
0x84C9 4 When the processing of Future.get(long timeout, TimeUnit unit) ends (for a remote invocation) B

Legend:
B: Advanced

#
Corresponds to the numbers in Figure 8-37.

The following figure shows the trace collection points when get is invoked from the remote client.

Figure 8-37 Trace collection points when get is invoked from the remote client

[Figure]

(b) Trace information that can be collected

The following table describes the trace information that can be collected when get is invoked from the remote client.

Table 8-61 Trace information that can be collected when get is invoked from the remote client

No. in the figure# Event ID Level Information that you can acquire
Interface name Operation name Optional
1 0x84C6 B -- -- --
2 0x84C2 B -- -- --
3 0x84C3 B -- --
  • When normal:
    Entrance-time
  • For an exception:
    Entrance-timeexception-name
4 0x84C7 B -- --
  • When normal:
    Entrance-time
  • For an exception:
    Entrance-timeexception-name
1 0x84C8 B -- -- Method name, argument information
2 0x84C4 B -- -- Method name, argument information
3 0x84C5 B -- --
  • When normal:
    Entrance-time
  • For an exception:
    Entrance-timeexception-name
4 0x84C9 B -- --
  • When normal:
    Entrance-time
  • For an exception:
    Entrance-timeexception-name

Legend:
B: Advanced
--: Not applicable

#
Corresponds to the numbers in Figure 8-37.

(5) When isDone is invoked from the local client

(a) Trace collection points and PRF trace

The following table describes the event IDs, trace collection points, and PRF trace collection levels.

Table 8-62 Details of the trace collection points when isDone is invoked from the local client

Event ID No. in the figure# Trace collection points Level
0x84CA 1 When the processing of Future.isDone() starts (for a local invocation) B
0x84CB 2 When the processing of Future.isDone() ends (for a local invocation) B

Legend:

B: Advanced

#

Corresponds to the numbers in Figure 8-38.


The following figure shows the trace collection points when isDone is invoked from the local client.

Figure 8-38 Trace collection points when isDone is invoked from the local client

[Figure]

(b) Trace information that can be collected

The following table describes the trace information that can be collected when isDone is invoked from the local client.

Table 8-63 Trace information that can be collected when isDone is invoked from the local client

No. in the figure# Event ID Level Information that you can acquire
Interface name Operation name Option
1 0x84CA B -- -- --
2 0x84CB B -- -- Return value of isDone()

Legend:
B: Advanced
--: Not applicable

#
Corresponds to the numbers in Figure 8-38.

Note
No exceptions are thrown in the execution of this method. Therefore, the logs showing abnormal status are not generated.

(6) When isDone is invoked from the remote client

(a) Trace collection points and PRF trace

The following table describes the event IDs, trace collection points, and PRF trace collection levels.

Table 8-64 Details of the trace collection points when isDone is invoked from the remote client

Event ID No. in the figure# Trace collection points Level
0x84CE 1 When the processing of Future.isDone() starts (for a remote invocation) B
0x84CA 2 When the processing of Future.isDone() starts (for a local invocation) B
0x84CB 3 When the processing of Future.isDone() ends (for a local invocation) B
0x84CF 4 When the processing of Future.isDone() ends (for a remote invocation) B

Legend:
B: Advanced

#
Corresponds to the numbers in Figure 8-39.

The following figure shows the trace collection points when isDone is invoked from the remote client.

Figure 8-39 Trace collection points when isDone is invoked from the remote client

[Figure]

(b) Trace information that can be collected

The following table describes the trace information that can be collected when isDone is invoked from the remote client.

Table 8-65 Trace information that can be collected when isDone is invoked from the remote client

No. in the figure# Event ID Level Information that you can acquire
Interface name Operation name Option
1 0x84CE B -- -- --
2 0x84CA B -- -- --
3 0x84CB B -- -- Return value of isDone()
4 0x84CF B -- --
  • When normal:
    Entrance-time
  • For an exception:
    exception-name

Legend:
B: Advanced
--: Not applicable

#
Corresponds to the numbers in Figure 8-39.

(7) When isCancelled is invoked from the local client

(a) Trace collection points and PRF trace

The following table describes the event IDs, trace collection points, and PRF trace collection levels.

Table 8-66 Details of the trace collection points when isCancelled is invoked from the local client

Event ID No. in the figure# Trace collection points Level
0x84CC 1 When the processing of Future.isCancelled() starts (for a local invocation) B
0x84CD 2 When the processing of Future.isCancelled() ends (for a local invocation) B

Legend:
B: Advanced

#
Corresponds to the numbers in Figure 8-40.

The following figure shows the trace collection points when isCancelled is invoked from the local client.

Figure 8-40 Trace collection points when isCancelled is invoked from the local client

[Figure]

(b) Trace information that can be collected

The following table describes the trace information that can be collected when isCancelled is invoked from the local client.

Table 8-67 Trace information that can be collected when isCancelled is invoked from the local client

No. in the figure# Event ID Level Information that you can acquire
Interface name Operation name Option
1 0x84CC B -- -- --
2 0x84CD B -- -- Return value of isCancelled()

Legend:
B: Advanced
--: Not applicable

#
Corresponds to the numbers in Figure 8-40.

Note
No exceptions are thrown in the execution of this method. Therefore, the logs showing abnormal status are not generated.

(8) When isCancelled is invoked from the remote client

(a) Trace collection points and PRF trace

The following table describes the event IDs, trace collection points, and PRF trace collection levels.

Table 8-68 Details of the trace collection points when isCancelled is invoked from the remote client

Event ID No. in the figure# Trace collection points Level
0x84D0 1 When the processing of Future.isCancelled() starts (for a remote invocation) B
0x84CC 2 When the processing of Future.isCancelled() starts (for a local invocation) B
0x84CD 3 When the processing of Future.isCancelled() ends (for a local invocation) B
0x84D1 4 When the processing of Future.isCancelled() ends (for a remote invocation) B

Legend:
B: Advanced

#
Corresponds to the numbers in Figure 8-41.

The following figure shows the trace collection points when isCancelled is invoked from the remote client.

Figure 8-41 Trace collection points when isCancelled is invoked from the remote client

[Figure]

(b) Trace information that can be collected

The following table describes the trace information that can be collected when isCancelled is invoked from the remote client.

Table 8-69 Trace information that can be collected when isCancelled is invoked from the remote client

No. in the figure# Event ID Level Information that you can acquire
Interface name Operation name Option
1 0x84D0 B -- -- --
2 0x84CC B -- -- --
3 0x84CD B -- -- Return value of isCancelled()
4 0x84D1 B -- --
  • When normal:
    Return value of isCancelled()
  • For an exception:
    exception-name

Legend:
B: Advanced
--: Not applicable

#
Corresponds to the numbers in Figure 8-41.

(9) When cancel is invoked from the local client

(a) Trace collection points and PRF trace

The following table describes the event IDs, trace collection points, and PRF trace collection levels.

Table 8-70 Details of the trace collection points when cancel is invoked from the local client

Event ID No. in the figure# Trace collection points Level
0x84D2 1 When the processing of Future.cancel() starts (for a local invocation) A
0x84D3 2 When the processing of Future.cancel() ends (for a local invocation) A

Legend:
A: Standard

#
Corresponds to the numbers in Figure 8-42.

The following figure shows the trace collection points when cancel is invoked from the local client.

Figure 8-42 Trace collection points when cancel is invoked from the local client

[Figure]

(b) Trace information that can be collected

The following table describes the trace information that can be collected when cancel is invoked from the local client.

Table 8-71 Trace information that can be collected when cancel is invoked from the local client

No. in the figure# Event ID Level Information that you can acquire
Interface name Operation name Option
1 0x84D2 A -- -- Method name, argument information
2 0x84D3 A -- -- Return value of cancel()

Legend:
A: Standard
--: Not applicable

#
Corresponds to the numbers in Figure 8-42.

Note
No exceptions are thrown in the execution of this method. Therefore, the logs showing abnormal status are not generated.

(10) When cancel is invoked from the remote client

(a) Trace collection points and PRF trace

The following table describes the event IDs, trace collection points, and PRF trace collection levels.

Table 8-72 Details of the trace collection points when cancel is invoked from the remote client

Event ID No. in the figure# Trace collection points Level
0x84D4 1 When the processing of Future.cancel() starts (for a remote invocation) A
0x84D2 2 When the processing of Future.cancel() starts (for a local invocation) A
0x84D3 3 When the processing of Future.cancel() ends (for a local invocation) A
0x84D5 4 When the processing of Future.cancel() ends (for a remote invocation) A

Legend:
A: Standard

#
Corresponds to the numbers in Figure 8-43.

The following figure shows the trace collection points when cancel is invoked from the remote client.

Figure 8-43 Trace collection points when cancel is invoked from the remote client

[Figure]

(b) Trace information that can be collected

The following table describes the trace information that can be collected when cancel is invoked from the remote client.

Table 8-73 Trace information that can be collected when cancel is invoked from the remote client

No. in the figure# Event ID Level Information that you can acquire
Interface name Operation name Option
1 0x84D4 A -- -- Method name, argument information
2 0x84D2 A -- -- Method name, argument information
3 0x84D3 A -- -- Return value of cancel()
4 0x84D5 A -- --
  • When normal:
    Return value of cancel()
  • For an exception:
    exception-name

Legend:
A: Standard
--: Not applicable

#
Corresponds to the numbers in Figure 8-43.