Question 1a give explanation amp the significance of

Assignment Help JAVA Programming
Reference no: EM13349309

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: EM13349309

Questions Cloud

Question case 1the thoma company started the year with a : question case 1the thoma company started the year with a 3000 balance in the supplies account. in the year 8500 of
Question 1software metrics are numerical data related to : question 1software metrics are numerical data related to software development. metrics strongly support software
Question the marbury stein shop sells steins from all parts : question the marbury stein shop sells steins from all parts of the world. the owner of the shop clint marbury is
Question flyer company has provided the subsequent : question flyer company has provided the subsequent information prior to any year-end bad debt adjustment cash sales
Question 1a give explanation amp the significance of : question 1a give explanation amp the significance of enterprise java beans ejb in software development.b explain the
Question morganton company manufactures one product and it : question morganton company manufactures one product and it provided the subsequent information to help create the
Question 1sustainable practices are those that can be : question 1sustainable practices are those that can be continued indefinitely without using up irreplaceable resources
Question brad owns a successful corporation that has : question brad owns a successful corporation that has substantial earnings and profits. during the year the subsequent
Question all fixed costs per unit are evaluated based on a : question all fixed costs per unit are evaluated based on a normal capacity usage consisting of 240 effective days. when

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a class called scorelist according to the uml diagram

Create a class called ScoreList according to the UML diagram. This class will allow a user to enter up to 100 scores into an array.

  Typical industrial engineering problem

A company manufactures two products, A and B. Product A can be sold for $145 per unit and B for $75 per unit. Management requires that at least 1850 units be manufactured each month.

  Develop java applet that will help elementary school student

Develop a Java applet that will help an elementary school student learn multiplication. Use the Math.random method or a Random object to produce two positive one-digit integers.

  Write a class named test scores

Write a class named TestScores.The class constructor should accept an array of test scores as an argument.The class should have a method that returns the average of the test scores.

  Executing stringed musical instrument class

Create and execute a stringed musical instrument class.

  Java program by array

Write a program that reads in a file that contains one integer per line. Each integer represents one location in the image. Assume that there are 64 rows and 64 columns in the image

  Create a new json view

Add code to your controller to check which view to display.  For this assignment, there will be a URL parameter named "format".  When the value of the "format" parameter is "json" display the JSON view, otherwise display the regular HTML JSP view.

  Application named arithmeticmethods

Create an application named ArithmeticMethods whose main() method holds two integer variables. Assign values to the variables. In turn, pass each value to methods named displayNumberPlus10()

  Reimplement the labeledpoint class of exercise

Reimplement the LabeledPoint class of Exercise P9.12 by storing the location in a java.awt.Point object. Your toString method should invoke the toString method of the Point class.

  Write an application named us insurance

Write an application named UseInsurance that uses an abstract Insurance class and Health and Life subclasses to display different types of insurance policies and the cost per month.

  Java program to find a value at in index

Construct a main class named Array Program that generates an array of 50-integers, all ranging from one to one hundred.

  Die class that can hold an integer

Design a die class that can hold an integer from 1 to 6. use the dice class to create a dice game. in this game, the user chooses a number between 2 and 12 inclusive

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