Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: JAVA vs ASPX

  1. #1
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default JAVA vs ASPX

    At work we have a few ASPX programs that our crappy IT Department made to do database pulls and generate reports. The ASPX database pulls are ungodly slow and are designed to time-out in 60 seconds (which means we cant generate large reports).

    Would JAVA be a better Language to do these Database Pulls?


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: JAVA vs ASPX

    I'm assuming you're trying to access the database via your web-browser (ASP.Net is used for webpage design)?

    I would suggest trying to switch to JS (javascript) or JSP (Java Server Pages). I believe both are supported by all major web-browseers, where-as ASP is only supported on Internet Explorer (don't take my word on this last statement, I've never use ASP.Net before, but I have seen many webpages built on this technology that don't function correctly on Firefox). IE is a very slow web-browser, where-as other web browsers (notably Google Chrome or Firefox) are much quicker.

    Another potential bottle-neck is your network speed. If you have a ton of data but a slow connection, you will only be able to pull that information so fast regardless of what software is running. Network speed can be affected by a few different things:

    1. Hardware of the server.
    2. Hardware of the client.
    3. Hardware of any connections between the server and the client (routers, ISP, proxies, etc.)

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: JAVA vs ASPX

    Wouldn't say one way or another, aspx shouldn't be slow unless its doing tons of work, the script is written poorly, or you have network issues. If its a lot of work then your java program will also be doing a lot of work. If you want your program/script to be portable across platforms, then you may wish to go that way. I'd say, at least as a start, look at the aspx code, profile it, and make it better as opposed to reinventing the wheel.

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: JAVA vs ASPX

    Quote Originally Posted by helloworld922 View Post
    I believe both are supported by all major web-browseers, where-as ASP is only supported on Internet Explorer (don't take my word on this last statement, I've never use ASP.Net before, but I have seen many webpages built on this technology that don't function correctly on Firefox).
    ASP is interpreted server side, so it should spit out html/js/css/xml/etc.. code and be cross-browser compliant.

  5. #5
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: JAVA vs ASPX

    You could of course port this over to Java instead but if the database is not up to scratch as in indexed properly you'll still end up getting timeouts or exceptions.

    It might be worth while having a look at the entire solution and then re-implement it

    // Json

  6. #6
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Re: JAVA vs ASPX

    Ok, well I guess, for the mean time, no changes will happen. The IT Department that apparently built the programs are not the best. Apart from building programs, they deal with all the technology issues, which is always since stuff keeps breaking... The company I work for doesnt really see the need, nor have the means, to invest in proper programmers, so everyone is left high-and-dry here. I was hired on as a Summer Intern to do some Analysis work, but once they found out I can program well and fast, people around the office have been constantly asking me if I can do stuff, and the company has desided to hire me Part-Time through college since I'm cheap as hell to keep. Because of my status, I dont think I can get my hands on the ASPX code, and even getting exclusive access to their databases probably wont happen. I just wanted to see if I could argue I could make it better, which I have doubt I can.