Enterprise java beans (ejb) in software development

Assignment Help JAVA Programming
Reference no: EM133258

QUESTION 1

(a) Give explanation & the significance of Enterprise Java Beans (EJB) in software development.

(b) Explain the most important goals of EJB technology.

(c) Put in plain words the EJB architecture using a suitable diagram.

(d) Examine the steps to be act upon to build an EJB application.

QUESTION 2

(a)(i) What is a session bean?

(ii) Elucidate how Stateless Session Beans (SLSB) differs from Stateful Session Beans (SFSB).

(b) What is a Message Driven Bean (MDB)?

(c)(i) What is an Entity Bean?

(ii) Make clear distinction how an Entity Bean differs from MDB.

QUESTION 3

(a) Chat about the major components required to implement an enterprise bean.

(b) Elucidate the life-cycle of the following bean kinds using appropriate figures:-

(i) Stateful Session Bean (SFSB)

(ii) Stateless Session Bean (SLSB)

(iii) Message Driven Bean (MDB)

QUESTION 4

Portray the purpose of the java bean given below. Describe fully each statement of the program.

package converter.ejb;
import java.math.BigDecimal;
import javax.ejb.*;
@Stateless
public class ConverterBean {
private BigDecimal yenRate = new BigDecimal("83.0602");
private BigDecimal euroRate = new BigDecimal("0.0093016");
public BigDecimal dollarToYen(BigDecimal dollars) {
BigDecimal result = dollars.multiply(yenRate);
return result.setScale(2, BigDecimal.ROUND_UP);
}
public BigDecimal yenToEuro(BigDecimal yen) {
BigDecimal result = yen.multiply(euroRate);
return result.setScale(2, BigDecimal.ROUND_UP);
}
} Describe fully the purpose of the web client program given below.

@WebServlet
public class ConverterServlet extends HttpServlet {
@EJB
ConverterBean converterBean;
try {
String amount = request.getParameter("amount");
if (amount != null && amount.length() > 0) {
BigDecimal d = new BigDecimal(amount);
BigDecimal yenAmount = converter.dollarToYen(d);
BigDecimal euroAmount = converter.yenToEuro(yenAmount);
}
}

Reference no: EM133258

Questions Cloud

To accrue rent recognized but not yet received : By accessing this problem Assistance, you will learn while you earn points based on the Point Potential Policy set by your instructor.
Views and references six different data sources : Three input screens, each of which has two views and references six different data sources One output report that has four sections and references eight data sources
Prepare the project worthwhile in terms of his own time : To prepare the project worthwhile in terms of his own time, Marbury would need a $7,200 profit for the first six months of the venture. What level of sales in units and dollars would be needed to attain this target net operating income?
Evaluate the proceeds amazon received for the issuance : Evaluate the proceeds Amazon received for the issuance of $3.0 billion notes in November 2012.
Enterprise java beans (ejb) in software development : Enterprise Java Beans (EJB) in software development, EJB technology, EJB application, Stateless Session Beans (SLSB), Stateful Session Beans (SFSB), Message Driven Bean (MDB), Entity Bean
Determine the estimated finished goods inventory balance : Determine the estimated finished goods inventory balance at the end of July, if the company always uses an estimated predetermined plant wide overhead rate of $10 per direct labor-hour?
The process of tbl reporting : The technicalities of TBL reporting The process of TBL reporting The philosophy behind the methodology of TBL
Show how such a payment will be treated : Show the likelihood of these payments being treated as constructive dividends. If a payment is deemed to be a constructive dividend, show how such a payment will be treated.
Evaluate the operating income : Evaluate the operating income that would result from the production manager's plan to manufacture 96,000 units at each plant.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a recursive program

Write a recursive program to compute the number of ways in which an integer k can be written as sum

  Create a java program

UserApp and PrettyPrintUtility multiple times (supplying different TransData test file names), the AutoTesterUtility PROGRAM will be the driver program.

  Simulate a simple multiuser computer system

Prepare a java program to simulate a simple multiuser computer system

  Communication with an smtp server

Develop a graphical user interface based java program that can communicate with a real SMTP email server for sending emails

  Print the contents of the array

Prepare a second loop that prints the contents of the array

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Design and implement a small and simple email server

Design and implement a small and simple email server using the concept of web based information system (WBIS).

  Create a driver class in java

Your project is to create a driver class that uses SuperJavaIceCreamClass.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  The frantic pipe layer game

Design the Frantic Pipe Layer game

  Socket programming in java: tcp

In this project we will develop a Web server in two steps. In the end, you will have built a multi-threaded Web server that is capable of processing multiple simultaneous service requests in parallel.

  Prepare executable program and a dictionary program

Prepare executable program and a dictionary Program.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd