Upload
zoe-lindsey
View
216
Download
3
Embed Size (px)
Citation preview
Computer Science and Engineering Department
VI I - SEMESTER
Subject Name : MIDDLEWARE TECHNOLOGIES LABORATORY
Subject Code : IT-404
Objective After completing this Lab, students will upgrade their
knowledge in the field of various Middle ware Languages (CORBA, DOT NET, Java …)
Students will also get the clear view about the
concepts of Beans , Web logic, Visual Basic Getting more knowledge about Client Server Model
through different languages
Students will understand and deal with Concepts like RMI, Stub/Skeleton, Marshalling, and Remoting.
Syllabus1. Create a distributed application to download various files from various servers Using RMI.
2. Create a Java Bean to draw various graphical shapes and display it using or Without using BDK.
3. Develop an Enterprise Java Bean for Banking operations.
4. Develop an Enterprise Java Bean for Library operations.
5. Create an Active-X control for File operations.
6. Develop a component for converting the currency values using COM / .NET.
7. Develop a component for encryption and decryption using COM / .NET.
8. Develop a component for retrieving information from message box using DCOM / .NET.
9. Develop a middleware component for retrieving Stock Market Exchange Information using CORBA.
10. Develop a middleware component for retrieving Weather Forecast information Using CORBA.
EXTRA EXPERIMENTS:
11. Program to connect two different system using Java.
12. Program to find out system properties using Java.
EX. No: 1 RMI
Aim:
To create a distributed application to download various files from various servers using RMI
Algorithm:
Create four files – file interface, file implementation, file client and fileserver In the file interface, class specify the prototype of the method that is to be
implemented in the file implementation class In the file implementation class, specify the implementation coding for the
method defined earlier (download file[]) Try to read the contents of a file in this class In the file client class try to write some contents into a file In the fileserver class, try to register / bind the methods with the rmiregistry Compile all the files and execute as specified to get the desired output.
EX. No: 2 DRAWING GRAPHICAL SHAPES
Aim:
To Write an applet program to draw various graphical shapes.
Algorithm:
Create a class which extends Applet superclass and which
implements ActionListener interface Create five buttons with the required captions and add them to
the container Register the buttons with the ActionListener interface In the Actionperformed () method, with the help of the instance,
perform the action respectively In the paint() method, check which button is pressed and display
the shapes accordingly
EX. No: 3 LIBRARY OPERATION
Aim :
To develop an Enterprise Java Bean for Library operations
Algorithm :
Create five programs – Book, Bookbome, Bookbean, Bookexception, and Bookclient
In the Bookhome class just invoke the create() method with appropriate arguments In the Book class, just define the prototytpes of addbook(), removebook() and
getcontents() methods In the Bookbean class provide the implementation for the various methods In the Bookexception class provide the implementation for BookException In the Bookclient class get the customer name and the various books he wants, also
perform the other operations accordingly
EX. No: 4 BANKING OPERATION
Aim :
To develop an Enterprise Java Bean for banking operations
Algorithm :
Create four programs- Bankbean, Bankhome, Bank, and Bankclient In the Bankbean class first define the prototypes of the various methods Next, provide the implementation for ejbCreate(), ejbPostCreate(), credit(),
and debit() methods In the Bankhome class just invoke the methods create() and
findbyprimarykey() with the respective number of arguments In the Bankremote class just define the prototypes of the various methods
which throws the Remoteexception In the Bankclient class, display the options to the user and use the lookup()
method and perform the operations accordingly
EX. No: 5 ACTIVE X CONTROL
Aim :
To develop an Activexcontrol document and perform the various file operations on it.
Algorithm :
Create a new Activex control document in Visual Basic Add the drive list, directory list and file list controls from the toolbox Also add three textboxes correspondingly Click on File -> make project1. ocx and specify the required name and location Double click on each control to add the respective coding click on debug-> start to execute the application
Ex.No :6 Currency Conversion using .NET
Aim :
To develop a program for currency conversion.
Algorithm :
Design the form by using tools Add the corresponding field to combo and List box Develop the coding for the combo and list box Correct the corresponding Indian currency values to the corresponding
foreign currency values.
Ex.No :7 Encryption and Decryption
Aim :
To develop a component for encryption and decryption by using Visual Studio.
Algorithm :
Declare the required controls. Design the form by using tools such as label, text box and command button. Write the coding for encryption, decryption and clear button. Cipher text will be displayed in text2 and text3, again we choose the
encryption button. It shows the plain text in text box 4 Click the clear button to clear the text boxes.
Ex.No :8 Retrieving Information
Aim:
To write a program for retrieving information from the message box using .NET
Algorithm:
Design the form by using tools such as text box, combo box and label Load various the values in combo box such as satisfactory, good and fine By using the condition loop, the selected item from the combo box will
displayed in the message box.
Ex.No : 9 Retrieving Stock Market Exchange Aim :
To develop a middleware component for retrieving stock market exchange information using CORBA.
Algorithm :
Create a interface for stock market and save it with .idl extension Create and implement the file. Set the path and create helper and header class files. Compile all the files using javac *.java Run the application using stock market server name Open a new window. Run the client program.
Ex.No :10 Retrieving Weather Forecasting Aim :
To develop a middleware component for retrieving weather forecasting information using CORBA.
Algorithm :
Create a interface for stock market and save it with .idl extension Create and implement the file. Set the path and create helper and header class files. Compile all the files using javac *.java Run the application using stock market server name Open a new window. Run the client program.
REFERENCES W1 http://en.wikipedia.org/wiki/.NET_Framework
W2 http://msdn.microsoft.com/en-us/library/ms978007.aspx
W3 http://msdn.microsoft.com/en-us/library/aa446536.aspx
W4 http://msdn.microsoft.com/en-us/library/kwdt6w2k(v=vs.71).aspx
W5 http://sunset.usc.edu/~neno/cs477_2003/April8.pdf
W6 http://www.interviewqueries.com/middleware-technologies/
W7 http://middlewares.wordpress.com/2008/03/14/
Internal Mark Calculation
MODEL 1 100 5
MODEL 2 100 5
MODEL 3 100 5
TOTAL 15 + 5
THANK
YOU