General Instructions: 1. Create a project in IntelliJ IDEA with the naming convention as follows: Class...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
General Instructions: 1. Create a project in IntelliJ IDEA with the naming convention as follows: Class code-ID number-Last name, First name (e.g. 9300-2200000-Dela Cruz, Juan) 2. For your RMI and ORB port numbers, you are to use 1099 (RMI) and 1100 (ORB). Problem on Java RMI Instructions: Within the project, create a package named midexam1. The Java RMI classes of the exam will be placed in this package. The main classes (containing main method) will follow the convention: MidExam1 Problem Description: Create the Java RMI servant and server programs ONLY that implements the remote interface below. You may also opt to combine both the servant and server programs within a single class (server) only. public interface QuizTwo extends Remote { } public String dotw(int m, int d, int y) throws RemoteException; public int noOfDays (int m, int d) throws RemoteException; Details of the methods to be implemented: ⚫ dotw - This method returns the day of the week (as in monday, tuesday, etc.) of the given date parameter (m: month, d: day, y: year). If the date is not valid (ex. February 31, 2021), the method returns the string "invalid". ⚫ noOfDays - This method returns the number of days from January 1 to the specified date parameter (m: month, d: day) of this year. If the date is not valid (ex. February 31), it returns 0. Problem on CORBA Instructions: Create a package named midexam2 inside your project. The CORBA related files and classes will be placed inside this package. Inside midexam2 package, create the other two sub-packages: server and client. All classes related to the server/servant will have to be placed inside server package and all client-related classes will have to be placed inside client package. The client program must test the methods as reflected in the CORBA IDL file. Register the CORBA object in the orb with the string "convert". Also, include the file midexam2.idl in the midexam2 package. Content of the file is as follows: module converter { interface Conversion { double convertToInch(in double cm); double convertToCm(in double inch); }; }; Remember that an inch is equivalent to 2.54 centimeters! Notes: ⚫ After creating your classes, you have to comment out (or delete) the package statements that the IDE automatically inserts in your codes. ⚫ Alternative ways of accessing the console/command prompt from the project explorer of IntelliJ IDEA. First, right click the target location (package) in the project explorer tab of the IDE. Select Open In and you will have three options from there (Explorer, Directory Path, and Terminal) as shown below: Project ▾ ServerSample C:\Users\Lenovo\Deskt idea out *Favorites I res > concurrency corbasar New > clien X Cut Ctrl+X > lidl Ctrl+C > Dilserve > Dobjectfil Copy Copy Path... › Dill objectsti >portche >micallb > misam > bil sample1 > threadp ServerSamp > External Librari Paste Find Usages Find in Files.. Replace in Files... Analyze Befactor Ctrl+V Alt+F7 Ctrl+Shift+F Ctrl+Shift+R Add to Favorites Scratches and Reformat Code Ctrl+Alt+L Optimize Imports Ctrl+Alt+0 Delete... Delete Build Module 'ServerSample Rebuild 'corbasample Ctrl+Shift+F9 Open In Explorer Local History Reload from Disk Directory Path Terminal Ctrl+Alt+F12 If you choose Explorer, the file browser window appears (Windows Explorer) and you can simply type "cmd" in the address bar of the window to activate the console (command prompt). If you choose the Terminal option, you will have the console to be shown at the bottom part of the IDE. See figure below: >sample1 > threadpool ServerSample.iml Terminal: Local x Local (2)x+ Microsoft Windows [Version 18.8.19841.867] (c) 2828 Microsoft Corporation. All rights reserved. C:\Users\Lenovo\Desktop\IT 222\Server Sample\src\corbasample> Problems Profiler Terminal TODO Build "Kotlin' plugin update available // Update // Plugin Settings... // Ignore this update (12/03/2021 1:34 PM) General Instructions: 1. Create a project in IntelliJ IDEA with the naming convention as follows: Class code-ID number-Last name, First name (e.g. 9300-2200000-Dela Cruz, Juan) 2. For your RMI and ORB port numbers, you are to use 1099 (RMI) and 1100 (ORB). Problem on Java RMI Instructions: Within the project, create a package named midexam1. The Java RMI classes of the exam will be placed in this package. The main classes (containing main method) will follow the convention: MidExam1 Problem Description: Create the Java RMI servant and server programs ONLY that implements the remote interface below. You may also opt to combine both the servant and server programs within a single class (server) only. public interface QuizTwo extends Remote { } public String dotw(int m, int d, int y) throws RemoteException; public int noOfDays (int m, int d) throws RemoteException; Details of the methods to be implemented: ⚫ dotw - This method returns the day of the week (as in monday, tuesday, etc.) of the given date parameter (m: month, d: day, y: year). If the date is not valid (ex. February 31, 2021), the method returns the string "invalid". ⚫ noOfDays - This method returns the number of days from January 1 to the specified date parameter (m: month, d: day) of this year. If the date is not valid (ex. February 31), it returns 0. Problem on CORBA Instructions: Create a package named midexam2 inside your project. The CORBA related files and classes will be placed inside this package. Inside midexam2 package, create the other two sub-packages: server and client. All classes related to the server/servant will have to be placed inside server package and all client-related classes will have to be placed inside client package. The client program must test the methods as reflected in the CORBA IDL file. Register the CORBA object in the orb with the string "convert". Also, include the file midexam2.idl in the midexam2 package. Content of the file is as follows: module converter { interface Conversion { double convertToInch(in double cm); double convertToCm(in double inch); }; }; Remember that an inch is equivalent to 2.54 centimeters! Notes: ⚫ After creating your classes, you have to comment out (or delete) the package statements that the IDE automatically inserts in your codes. ⚫ Alternative ways of accessing the console/command prompt from the project explorer of IntelliJ IDEA. First, right click the target location (package) in the project explorer tab of the IDE. Select Open In and you will have three options from there (Explorer, Directory Path, and Terminal) as shown below: Project ▾ ServerSample C:\Users\Lenovo\Deskt idea out *Favorites I res > concurrency corbasar New > clien X Cut Ctrl+X > lidl Ctrl+C > Dilserve > Dobjectfil Copy Copy Path... › Dill objectsti >portche >micallb > misam > bil sample1 > threadp ServerSamp > External Librari Paste Find Usages Find in Files.. Replace in Files... Analyze Befactor Ctrl+V Alt+F7 Ctrl+Shift+F Ctrl+Shift+R Add to Favorites Scratches and Reformat Code Ctrl+Alt+L Optimize Imports Ctrl+Alt+0 Delete... Delete Build Module 'ServerSample Rebuild 'corbasample Ctrl+Shift+F9 Open In Explorer Local History Reload from Disk Directory Path Terminal Ctrl+Alt+F12 If you choose Explorer, the file browser window appears (Windows Explorer) and you can simply type "cmd" in the address bar of the window to activate the console (command prompt). If you choose the Terminal option, you will have the console to be shown at the bottom part of the IDE. See figure below: >sample1 > threadpool ServerSample.iml Terminal: Local x Local (2)x+ Microsoft Windows [Version 18.8.19841.867] (c) 2828 Microsoft Corporation. All rights reserved. C:\Users\Lenovo\Desktop\IT 222\Server Sample\src\corbasample> Problems Profiler Terminal TODO Build "Kotlin' plugin update available // Update // Plugin Settings... // Ignore this update (12/03/2021 1:34 PM)
Expert Answer:
Answer rating: 100% (QA)
Java RMI Implementation midexam1 package 1 QuizTwo Interface Create a file named QuizTwojava inside the midexam1 package with the following code Java public interface QuizTwo extends Remote String dot... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Q1: How would a supply chain management and customer relationship management system help the company? What are limitations? 1 answer
-
Trent, Ben, and Antonio all started working at a local home improvement store at the same time. They were in the same orientation group and liked each other immediately. Trent and Ben work in the...
-
In a metallurgy experiment it is desired to test the effect of four factors and their interactions on the concentration (percent by weight) of a particular phosphorus compound in casting material....
-
Write advantages and disadvantages of air refrigeration cycle.
-
Joplin Industries Inc. manufactures and sells high-quality sporting goods equipment under its highly recognizable J-Sports logo. The company began operations on May 1 and operated at 100% of capacity...
-
Determine the maximum and minimum resultant of two forces having magnitude of 10 N and 8N respectively.
-
A number of cities are arranged on a graph that has been divided up like an ordinary Cartesian plane. Each city is located at an integral (x, y) coordinate intersection. City names and locations are...
-
1. The floor of the office building is made of 4-in.-thick lightweight concrete. If the office floor is a slab having a length of 20 ft and width of 15 ft, determine the total fag concentrated load....
-
Sitting in his office, Mark Ellinas frowned at his computer screen. It was filled with row after row of electric bikes, from expensive models to cheap knockoffs that seemed held together by spit and...
-
Importance of a Concept. A widely held assumptionin anthropology, linguistics, and communication is that the importance of a concept to a culture can be measured by the number of words the language...
-
Product or Service Chosen for Marketing Plan: Provide a brief description of the product and this product you choose is exit. 1. External Influences : Regulatory forces ? economic trends? social...
-
On October 1 , 2 0 1 9 , Company C sells goods for EUR 6 0 . 0 0 0 without VAT to client Y . The invoice sent to the client indicates that the payment is expected in 9 0 days. Additional sales take...
-
To answer the below questions, you may use the formula: A(n) = P(1 + i)" 4. If you had $450 to invest and you were guaranteed a 4% annual return on investment, how much would you have after 5 years?
-
The cash disbursements for the construction of the new office of ABC Inc., are listed as follows: PAYMENT 1. Payment of 25,800 at the end of the 2nd and 4th year and 14,965 at the end of the 6th...
-
In what ways does a well-designed enterprise search software vary from popular search engines (e.g., Bing, DuckDuckGo, and Google)?
-
Bea Jones (age 32) moved from Texas to Florida in December 2011. She lives at 654 Ocean Way, Gulfport, FL 33707. Bea's Social Security number is 466-78-7359 and she is single. Her earnings and income...
-
Frederick (Freddy) Freeweights (age 42) owns and operates a health club called ''Treadmills West.'' The business is located at 4321 Arnold Street, Alpine, CA 91901. Freddy had the following income...
-
Cypress Corporation has regular taxable income of $170,000 (assume annual gross receipts are greater than $5 million) and regular tax liability of $49,550 for 2012. The corporation also has tax...
-
During October 2024, Cleo launched a business, Cleos Coffee, operating from a repurposed shipping container. After each October transaction, Cleo prepared a statement of financial position, as shown...
-
Dawson Industries began operations early in January 2024. On 31 December 2024, records showed the following asset, liability, equity, income and expense amounts: Required (a) Prepare a statement of...
-
A new business graduate with one subject of accounting prepared the financial statements below for Amirs Delivery Service at the end of the first year of operations. Additional analysis revealed the...
Study smarter with the SolutionInn App