19
J2EE vs. .NET Nigam Patel

J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

  • View
    214

  • Download
    0

Embed Size (px)

Citation preview

Page 2: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

Topics

• Background– Web Services, J2EE and .NET

• Similarities

• Differences

• Conclusion– Pros and Con (J2EE and .NET)

Page 3: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

Web Services

• What is Web Services?– Helps applications to be integrated– Foundation of web services is XML messaging

over standard web protocol such as HTTP – Can integrate two businesses, departments, or

applications quickly and cost-effectively.

Page 4: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

Web Services

Client WSSOAP

Cont..

Page 5: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

J2EE

• J2EE architecture is defined by the Sun standards.

• Architecture is based on the Java programming language.

• Good thing about Java is that it enables the organization to write code once and deploy that code onto any platform.

Page 6: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

J2EE

• Partial J2EE components list– JavaServer Pages (JSPs)– Servlets – Enterprise JavaBeans (EJBs)– Java Connectivity Architecture (JCA)– Java Message Service (JMS)– Java Management Extensions (JMX)– Java Naming and Directory Interface (JNDI)

Cont...

Page 7: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

J2EE

EJB, Java Language

Cont...

Presentation Layer

Business Layer

Data Layer

Servlets, Java Server Pages

JDBC compatible DB

Page 8: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

.NET

• .NET is Microsoft Product

• Framework of Microsoft .NET offers language independence

Page 9: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

.NET

C#

VB .NET

Compiler MSIL CLR

First source code is translated into Microsoft Intermediate Language (MSIL or IL). This MSIL is language-neutral, same as Java bytecode. Then MSIL code needs to be interpreted and translated into a native executable. The .NET Framework includes the Common Language Runtime (CLR), same as the Java Runtime Environment (JRE), which achieves the goal.

Cont...

Page 10: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

.NET

COM+, Visual Studio .NET

Presentation Layer

Business Layer

Data Layer

ASP .NET

SQL Server

Cont...

Page 11: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

Similarities J2EE & .NETFeature J2EE .NET

Technology Standard Product     

Presentation Tier    

Programming Language ASP.NET Servlets, JSP

     Business Tier    

Components EJB, Java Language COM+, Visual Studio .NET

Message Queue JMS 1.0 MSMQ

Naming Service JNDI ADSI

     Database Tier    

Connectivity ADO.NET JDBC

     

Protocol SOAP, WSDL, UDDI SOAP, WSDL, UDDI

Interpreter JRE CLR

Page 12: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

Differences J2EE & .NET

• Presentation LayerIn J2EE, JSPs and servlets generate HTML. The servlet includes features like session state, security framework and configuration.

In .NET, ASP.NET generates HTML. ASP.NET builds and hosts Web application under Microsoft’s Internet Information Server (IIS). ASP .NET includes stuff like session state, authentication and authorization. With ASP .NET, developer build HTML and custom tags that map to server-side web controls.

Page 13: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

Differences J2EE & .NET

• Business Layer– Transaction Processing– Calling Remote Objects– XML web services

• Data Access Layer– J2EE has two types CMP & BMP– .NET ADO.NET classes

Cont...

Page 14: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

Differences J2EE & .NET

• Platform Comparison– Cross-platform portability– Language support– Tools Support– Vendor suppor

Cont...

Page 15: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

J2EE (PROS)• Runs on any operating system and application server (may

need adjustments)

• Handles complex, high- volume, high-transaction applications

• Has more enterprise features for session management, fail-over, load balancing and application integration

• Is favored by experienced enterprise vendors such as IBM, BEA, SAP and Oracle

• Offers a wide range of vendor choices for tools and application servers

Page 16: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

J2EE (CONS)

• Has a complex application development environment

• Tools can be difficult to use • Java Swing environment's ability to build

graphical user interfaces has limitations • May cost more to build, deploy and manage

applications • Is difficult to use for quick-turnaround, low-cost

and mass-market projects

Page 17: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

.NET (PROS)

• Easy-to-use tools may increase programmer productivity

• Has a strong framework for building rich graphical user interfaces

• Is tightly integrated with Microsoft's operating system and enterprise server software

• May cost less, due in part to built-in application server in Windows, unified management, less expensive tools

Page 18: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

.NET (CONS)• Framework runs only on Windows, restricting

vendor choice • Users of prior Microsoft tools and technology face

a potentially steep learning curve • Questions persist about the scalability and

transaction capability of the Windows platform • Choice of integrated development environments is

limited • Getting older applications to run in new .Net

environment may require effort

Page 19: J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)

Questions ?????