1 / 28

A Choice between Interoperability and Migration

A Choice between Interoperability and Migration. By Chaitanya Kurada. Masters Defense Major professor: Dr.Daniel Andresen. Presentation Overview. Problem statement Solutions Objective Interoperability Implementation details Demo Performance Evaluation Analysis Conclusion.

Download Presentation

A Choice between Interoperability and Migration

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A Choice between Interoperability and Migration By Chaitanya Kurada Masters Defense Major professor: Dr.Daniel Andresen

  2. Presentation Overview • Problem statement • Solutions • Objective • Interoperability • Implementation details • Demo • Performance Evaluation • Analysis • Conclusion

  3. Problem Statement “ A company ‘X’ has about a million lines of code written in EJB’s for its business logic for an application. The front end is developed in JSP and Servlets. The management decides to give the website a new look with ASP.NET. What are the options to be considered while implementing this change and which is the best one?”

  4. Solutions Option 1 Migration Rewrite the entire business logic on a new Windows server in VS.NET Option 2 Interoperability Provide an interface to access the EJB’s from VS.NET

  5. Objective • To analyze the feasibility of interoperability from a programmer’s perspective • To compare the performance of a homogeneous website to that of a heterogeneous website

  6. Choices for Interoperating • CORBA • DCOM • RMI • Web Services • .NET Remoting

  7. Web Services • Concepts involved : XML, SOAP, WSDL, and UDDI • Invocation of a web service UDDI Registry Server A 3. How exactly should I invoke you 1. Where can I find a web service that does X (UDDI) 2. Server A is capable of doing X 4. Take a look at this: WSDL CLIENT 5. Request operation X 6. Result of operation X

  8. ASP.NET Web Forms Presentation Tier JSP’s Web Services Struts Service Tier Local Remote Stateless Session EJB’s Message Driven Beans Integration Tier JDBC Row sets Local CMP Entity Beans Database/ Message Queues Architecture Web Services

  9. Architecture user session Front End HTML CSS BROWSER KSU SMTP Server user activity AJAX function call AJAX function call Web Services Web Service call Code behind EJB’S CIS Oracle 9i Database JDBC Ajax server pages WebLogic APPL SERVER Web Service call IIS 5.0 WEB SERVER ADO.NET

  10. Technologies and Tools Used • Visual Studio.NET 2003 • WebLogic Workshop 8.0 • EJB’s (session and entity beans) • XML • Ajax • JavaScript/DOM • Scriptaculous • RSS

  11. Database relational schema

  12. Use Case diagrams Customer System

  13. Class Diagram

  14. DEMONSTRATION

  15. Programmer’s Perspective • Change in business logic code • User defined XML tags • Parameter passing • Use of suitable IDE Conclusion Exposing the business logic is dependent on • Complexity of EJB’s • IDE used • Programmer’s proficiency

  16. Unit Testing

  17. Performance evaluation • Comparing heterogeneous architecture with homogeneous architecture • System set up 1. Heterogeneous pages: Tested on pages built during implementation phase. 2. Homogeneous pages: The web services are replaced by calls to ADO.NET.

  18. 1 CodeBehind Browser Ajax 6 CIS Oracle Database 5 2 3 ADO.NET 4 1 2 CodeBehind Web Service 3 Browser Ajax CIS Oracle Database 8 7 6 WebLogic Server 4 EJB’s IIS Server 5 Architectures of the pages tested • Homogeneous pages • Heterogeneous pages

  19. Test Suites and tools • Tools used include Apache JMeter, Microsoft ACT, and AdventNet’s QEngine • Load Light Load: 1 user requesting 200 times Heavy Load: 10 users requesting 200 times • Test Suites : 4 iterations for each of the two pages • Test Suite 1: Retrieving 50KB file from database • Test Suite 2: Retrieving 200 KB file from database • Test Suite 3: Retrieving 1MB data from database • Test Suite 4: High level computational business logic • Test Suite 5: Retrieving small amount of data with no logic overhead on database • Test Suite 6: Retrieving small amount of data with significant logic overhead on database • Test Suite 7: Retrieving large data (300 KB) from the database • Test Suite 8: Ajax pages retrieving small amount of data • Test Suite 9: Ajax pages retrieving large amount of data

  20. Results

  21. Graphical view

  22. Analysis of performance testing • Overall analysis: How slow are heterogeneous pages compared with homogeneous pages? • Inferences from the table • Response time on par with homogeneous pages in case of file transfers. • Low performance when retrieving tabular data from database • Good performance while retrieving small amounts of data using Ajax • Decrease in difference as file size increases • Decrease in difference as amount of data increases

  23. Reasons • For file transfers, there is no network bottleneck • For tabular data, conversion into xml format is the overhead • For large amounts of data ADO.NET’s data adapter is not optimized for performance

  24. XML conversion ASP.NET Web Form Parse xml <xml><iteminfo><name>Nike </name><price>50</price> </iteminfo> Web Services EJB’s Result set Convert to xml <xml><iteminfo><name>Nike </name><price>50</price> </iteminfo> CIS Oracle DB

  25. Problems faced • Learning WebLogic Workshop • Lack of Ajax support in .NET 2003 • JMeter performance testing • Oracle connection time-out

  26. Conclusion • From a programmer’s perspective, the feasibility of interoperability depends on the complexity of EJB code, IDE used, and the programmers proficiency • From the performance comparison vis-à-vis a homogeneous architecture, the heterogeneous pages performed well when the amount of xml wrapping is minimized

  27. Acknowledgments • Dr. Daniel Andresen • Dr. Gurdip Singh • Dr. Mitch Neilsen • Technical support team of the CIS department • Administrative support team of the CIS department

  28. Questions

More Related