⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simplebean.java

📁 This book shows you how to use JBoss to develop EJB projects.
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -