Add the following line to the static block.
将下列代码添加到静态块中。
Since this class will be invoked repeatedly, move the code that initializes the WebSphere TX API into a static block
由于会反复调用该类,因此应将初始化WebSphereTXAPI的代码移动到一个静态块中
Metadata about operations, references, and basic attributes are initialized in a static block initializer, as shown in Listing 3.
有关操作、引用以及基本属性的元数据在一个静态初始程序块中被初始化,如清单3所示。
Metadata about operations, references, and basic attributes are initialized in a static block initializer, as shown in Listing 3.
有关操作、引用以及基本属性的元数据在一个静态初始程序块中被初始化,如清单3所示。
应用推荐