博文

目前显示的是标签为“session bean”的博文

Stateful Session Bean Example

In this part of Enterprise Session Beans, you will learn how to develop, deploy, and run a simple Java EE application named account using stateful session bean. The purpose of account is to performs two transaction operations (deposit and withdraw) for the customer. The account application consists of an enterprise bean, which performs the transactions, and two types of clients: an application client and a web client . here are following steps that you have to follow to develop a account JEE application . Create the enterprise bean: AccountBean Create the application client: AccountCustomer Deploy account onto the server. Run the application client. I. Creating the enterprise bean: The enterprise bean in our example is a statelful session bean called AccountBean. The account session bean represents an account information in an online customer account. The bean’s customer can deposit to or withdraw the amount from his account. To manage account, you...

Stateless Session Bean Example

图片
In this part of Enterprise Session Beans, you will learn how to develop, deploy, and run a simple Java EE application named example using stateless session bean. The purpose of example is to performs the mathematical operations such as Addition, Subtraction, Multiplication, and Division. The example application consists of an enterprise bean, which performs the calculations, and two types of clients: an application client and a web client . There are following steps that you have to follow to develop a example JEE application Create the enterprise bean: CalculatorBean Create the web client: WebClient Deploy example onto the server. Using a browser, run the web client. I. Creating the enterprise bean: The enterprise bean in our example is a stateless session bean called CalculatorBean . The source code for CalculatorBean is in “net/roseindia/ejb3/stateless” directory. Creating CalculatorBean requires these steps: (i) Coding the bean’s...