simplebean.java
来自「This book shows you how to use JBoss to 」· Java 代码 · 共 25 行
JAVA
25 行
package com.titan.simple;
import com.titan.annotations.JndiInjected;
import javax.ejb.*;
import javax.transaction.TransactionManager;
@Stateless
public class SimpleBean implements SimpleRemote
{
@JndiInjected("java:/TransactionManager")
TransactionManager tm;
public void echo(String message) throws Exception
{
System.out.print(message);
System.out.println("Is there a transaction: " + (tm.getTransaction() != null));
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?