Write a remote interface for the EJB

Assignment Help JAVA Programming
Reference no: EM132387585

Assignment - Some Theoretical Issues in Enterprise Computing Architecture

Learning Outcomes -

  • Compare and contrast the major enterprise software architectures.
  • Analyse and evaluate the design options available for each tier in a typical 3-tiered application.
  • Assess the potential business impact of emerging enterprise computing technologies.
  • Critically evaluate key research areas in enterprise computing.

In this assignment, you are to address some theoretical issues in the area of enterprise computing architecture. You will need to demonstrate your understanding of these theoretical issues or competence to apply these theoretical issues. These theoretical issues have been introduced by this unit through the textbook, weekly lectures or tutorials/labs. You will need to review these learning materials to address the following questions and prepare to do personal research if necessary.

Please note: copying from the unit learning materials or internet resources cannot show your understanding of the following issues, and you will need to address the following issues in your own word with proper citation and reference.

Question 1 -

Answer the following questions that are related to JPA.

1. On completion of the lab projects of this unit, you have used a number of JPA configuration files persistence.xml. You have noticed that transaction-type="RESOURCE_LOCAL (e.g. Week 1 project) or transaction-type="JTA" (e.g. Week 5 project) is used in the configuration files. Describe the difference of using these JPA configuration properties.

2. Using Week 5 project as an example, @PersistenceContext(unitName = "W5P1EJBModulePU") is the only one in the source code that is referencing to a JPA persistence unit, and you haven't seen any physical database names in the source code of the project. Describe how this logic name W5P1EJBModulePU is mapped to a physical database.

Question 2 -

Answer the following questions that are related to callbacks and listeners.

1. What are JPA callbacks and how are they driven?

2. Why do we need JPA listeners when callbacks and listeners are the same in functionality?

Question 3 -

Explain how an EJB container treats an EJB and a POJO differently and why EJB containers can support one of the Java EE goals: ease of use.

Question 4 -

The following is a Java class of simplified shopping cart, which has a number of attributes and methods.

public class Cart {

private String customerName;

private String customerAddress;

private String contactNumber;

......

......

private List<String> cartItems = new ArrayList<String>();

......

......

public String addItem (String str) {

if (!cartItems.contains(str)) {

cartItems.add(str);

return new String("The item has been added");

} else return new String("The item already existed"); }

public String removeItem(String str) {

if (cartItems.contains(str)) {

cartItems.remove(str);

return new String("The item has been removed");

} else return new String("The item does not exist");

}

......

......

}

Assume that the Cart object needs to be made into an EJB, which can be called remotely by EJB clients through a Java standalone application.

1. Write a remote interface for the EJB by using relevant annotations.

2. Use EJB annotations to modify the Cart object into an EJB.

3. Write a Java standalone application to call the addItem() method of the Cart EJB.

Note: to make your code concise, Java import statements are not required, and you can use any Java SE or EE APIs directly. You don't need to provide Java source code files; you will need to provide the code in your assignment Word document.

Question 5 -

On completion of the lab projects of Week 11, answer the following questions that are related to SOAP web service.

1. Explain the key difference between a web service application and a general client/server application.

2. Describe the main components of WSDL document of web service by using the example CardValidator WSDL document.

3. Describe why WSDL document is important for creating a web service client.

4. What is the standard format of messages that are exchanged between a SOAP client and a SOAP server? In this example project, which object is transformed to that format and how is it recognised for such a transformation?

Question 6 -

On completion of the lab projects of Week 12, answer the following questions that are related to JMS.

1. What is the key goal of messaging for enterprise computing?

2. To achieve the same goal in point 1 of this question, there are other Java technologies, list and describe 2 of these technologies.

3. Using JMS as the discussion context, describe what is asynchronous messaging and how to respond to asynchronous messages.

You will need to address the above issues (even if it is a programming question) in a Microsoft Word document.

Verified Expert

The report has summarized the development of computing enterprise and the development if various functions like persistence. XML has been described. The supportive coding in making a connection with the physical database has been explained. Later on, the development of a web server application and client-server application and their differences have been explained along with the description of asynchronous message in JMS has been described.

Reference no: EM132387585

Questions Cloud

Threat of new entrants high or low : In the Electric Vehicle Industry, is the threat of new entrants high or low? Why do you think so? What elements determine the threat of new entrants
Academic research and international business : Hofstede's value dimensions is commonly used in academic research and international business.
What does peer-reviewed means : What is the difference between publishing Journal Article and Book Chapter? What does peer-reviewed means? Identify 3 publishers that you would like to publish
Security risk mitigation plan : Using the Security Risk Mitigation Plan Template, create a Security Risk Mitigation Plan for the organization you chose.
Write a remote interface for the EJB : Assignment - Some Theoretical Issues in Enterprise Computing Architecture. Write a remote interface for the EJB by using relevant annotations
White five principles as an ethical guideline : How suitable is it to use scripture as a basis for business ethical decision making for global managers and what challenges or problems might exist
What is the impact of principles on organization : What principles or guidelines are there, if any, in White's five principles that go beyond the seven principles of the Caux Round Table
Response to external pressures to change : Summarize the reasons organizations don't change in response to external pressures to change. Identify at least five
Determine the level of readiness an organization : If you are the leader of an organization, what are ten important questions to ask to determine the level of readiness an organization is for change?

Reviews

len2387585

10/16/2019 12:38:47 AM

Total Words: 2600. I need help in this assignment it is related to java and all theoretical. I need complete referencing style Harvard (Author-date), which is already mention in attach image and make sure you will follow marking criteria and all style which is suitable and all reference, what i need is from Google scholar. I need also proper format and indentation, reference in paragraph and in reference list, too.

Write a Review

JAVA Programming Questions & Answers

  Design and implement a basic graphical user interface

Design and implement (in Java) a basic graphical user interface (GUI) program for recording information about a family tree

  Write a java program called numbers

Methods Lab   1. Write a Java program called Numbers that calls the following methods and displays the returned value: o Write a method called cubeIt that accepts one integer parameter and returns the value raised to the third power as an integer.

  Program to produce statistics based on scores recorded

Write a complete java program (a java class with the main method) called Process Scores, which will read the scores from the text file provided

  Write a very simple data maintenance java program

In this assignment, you will write a very simple data maintenance Java program for a small computer retail store (like Staples).

  Create application uses two-dimensional arrays

Create an application which uses 2-dimensional arrays to keep track of 5 students' grades, with each student having 3 different classes.

  Which reverses the order of an arrays elements

Write a method named, reverse, which reverses the order of an array's elements without creating another array - elements and then verify the array elements

  A class for counting the number of people

Specification: A class for counting the number of people in a room. This might be used to control how many people are allowed into a club with a doorman.

  Java class that represents your favorite musical instrument

Create your own Java class that represents your favorite musical instrument. Your musical instrument class should have at least 3 constants, 4 private data fields, getters and setters for each private data field, a toString() method

  Create function to rotate the array

Write a program that allows users to input an integer for the size of an array. Randomly generate an integer for each element of the array.

  Build the gui layout of the game

Build the Build the GUI layout of the game in java.

  Write a program which validates a users password

You need help writing this program in JAVA, this is an introductory java course, so if possible, keep it as basic/simple as possible .

  Write the HTML markup and JavaScript code

CWMD2601 - Scripting for Design Assignment - Creating Custom Objects, Durham College, Canada. Write the HTML markup and JavaScript code

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