Labels

Tuesday, January 6, 2009

Comparison JAVA vs .NET

Hi,

 

The following table summarizes the comparison between the two web development technologies, viz., .NET Framework 2.0 and J2EE. The comparison is done on the basis of the following points:

 

1.       Features provided by the framework / platform

2.       Performance

3.       Web Server Support

4.       Development Tools / Environment

5.       Integration with Vignette Portal

 

 

Sr. No.

Feature

Java / J2EE

.NET Framework 2.0

1.

Compiled Code – Increases website speed (precompiled is the fastest)

Yes – both precompiled and dynamically compiled when a page is requested

Yes – both precompiled and dynamically compiled when a page is requested

2.

Scripted Language – results in poor website performance

No

No

3.

Object Oriented – Increases the ability for code reuse and provides enhanced features as well as reduced development time

Yes

Yes

4.

Browser Specific HTML Rendering – different HTML is automatically sent to IE than to Netscape, reducing incompatibility issues

No

Yes

5.

Web Services Support

Yes

Yes – very good support for creation and consumption of web services

6.

XML / XSLT Support

Yes

Yes

 

7.

Localization Support

Yes

Yes

8.

Data Access

JDBC can be used to access a variety of databases via a standard API

ADO .NET provides a capability similar to JDBC, however, also supports the disconnected paradigm resulting in better performance.

9.

Caching –  Helps to speed up client access times

Default support not available in J2EE.

Third party libraries such as JCACHE or native caching capabilities of the application servers can be used.

ASP.NET includes an extensive cache API that allows nearly any type of data (including database query results) to be stored, with expiration based upon time, usage, or dependency upon a file or another cached item. Also allows for a user-defined function to be called when a given item is removed from the cache.

10.

Configuration

Provides XML based configuration files

Provides XML based configuration files

11.

Validation

Java based web development frameworks such as Struts and Java Server Faces provide a configurable and extensible way of defining custom validation rules on top of the default ones.

ASP.NET provides out-of-the-box validation controls for checking required fields, comparing values, validating ranges and pattern matching.

12.

Web Server Support

Any J2EE Application Server (however, some changes or tweaks might be required to have the application run on different servers)

IIS

13.

Performance

-

Offers performance improvement through various techniques like Paged Data Access, Connection Pooling, Per-Request Caching, Background Processing.

.Net has proven to be far superior to Cold Fusion MX, PHP and Java in real-world web applications and in tests conducted by independent analysis firms

14.

Development  Tools / Environment

Many open source IDEs are available with web toolkit plug-ins to ease development.

However, the number of lines of code to be written is a lot more as compared to ASP .NET or ColdFusion.

Visual Studio .NET provides a fully integrated support for developing ASP .NET pages and web services.

15.

Integration with Vignette Portal

Vignette Portal supports JSR 168 based Portlets developed using Java. A Java Server Faces stand-alone web application can be migrated to use the Portlet standard.

.NET Integration Portlet provided by Vignette 7.2 can be used to integrate a .NET web application and render it within the portal.

 

 

Thanks & Regards,

Arun Manglick || Senior Tech Lead

 

No comments:

Post a Comment