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

  Design a course registration system

Create an application which represents a simplified course registration system using ArrayLists and HashMaps.

  Write a recursive instance method

Write a recursive instance method

  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.

  Minimal spanning tree decreasing edge dismissal

Minimal Spanning Tree Decreasing Edge Dismissal, Reverse-delete algorithm. Develop an implementation that computes the MST

  Java program to create a tree

Java program to create a tree, generate class - BottomUpTwoThreeFourTree, BottomUpTwoThreeFourTree,

  Create a java program

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

  Write a program to register students for a college

Students have names, addresses and courses. Implement the interface class RegisterStudent. RegisterStudent has one method, public boolean register, which returns the boolean value of true or false if the student is successfully registered for the ..

  Mean and standard deviation using using eclipse

Java programming to calculate Mean and standard deviation using Using Eclipse.

  Web engineering principles

web application development, Web Engineering methodology, UML-based Web Engineering (UWE), models to the expansion of web applications, Object Oriented Web Solutions (OOWS),Web Modeling Language (WebML) methodology, Object-Oriented Hypermedia Design..

  Develop a gui based java program

Designing and developing a College Registration program

  Java problem - g queue

A queue is an ordered collection of items in which the removal of items is restricted to the FIFO ( rst in rst out) principle.

  Implementation activities of software development

Analysis, design, and implementation activities of software development

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