91-9990449935 0120-4256464 |
Stateful Session BeanStateful Session bean is a business object that represents business logic like stateless session bean. But, it maintains state (data). In other words, conversational state between multiple method calls is maintained by the container in stateful session bean. Annotations used in Stateful Session BeanThere are 5 important annotations used in stateful session bean:
Example of Stateful Session BeanTo develop stateful session bean application, we are going to use Eclipse IDE and glassfish 3 server. As described in the previous example, you need to create bean component and bean client for creating session bean application. 1) Create stateful bean componentLet's create a remote interface and a bean class for developing stateful bean component. File: BankRemote.java File: Bank.java2) Create stateful bean clientThe stateful bean client may be local, remote or webservice client. Here, we are going to create web based client and not using dependency injection. File: index.jsp File: operation.jsp File: operationprocess.jsp File: OpenAccount.java
Next TopicJMS Tutorial
|