×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

Is your Applet necessary here?

One rule of thumb now is to avoid to use Java Applets. If we have to use it, we ahould make it as thin as possible. Please don't forget to bind all the downloaded files into a jar file. If you have done this way, please check if you can also add other supportive files into the jar file.

Another thing is to investigate your code. Have your closed all I/O connections timely?
As your server writes to the client, please use a buffer. Don't allow them shake hands frequently.

If your Applet just do some simply formatting, I suggest you consider if you can get rid of it.
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / Applet and SSL problem?
    Hi Java experts,

    I'm currently involved in improving the performance of an existed program. It's an internet application. Some applets, created using VJ, are for displaying data extracting from an oracle database. It works fine when browsers (both Netscape and IE) connect IIS using http. But the performance degrades dramatically for IE when using https.

    Has anybody met a similar problem? Any hints are appreciated.
    • By definition, https protocol has a bigger overhead than http.
      • It takes about 20 second to display pictures and table when using Netscape with https; but 5 minutes when using IE. What causes so much difference? Dear Jabber, any idea?
        • How do your Applet communicate with DB? Are there any middleware between DB and Web Server?
          • Using dll to connect Oracle DB
            Their applets don't communication with DB directly. The flow of exchanging data is briefly
            as follows: Browsers connect to ASP hosted
            at IIS, ASP uses DLL(created by VC++) to query data from Oracle DB, then put data as a string back to http, and finally applets parse
            the string data and draw tables and figures on browsers. Applets don't utilize NET or JDBC packages. How do you think? Thank you, jabber.
            • Is your Applet necessary here?
              One rule of thumb now is to avoid to use Java Applets. If we have to use it, we ahould make it as thin as possible. Please don't forget to bind all the downloaded files into a jar file. If you have done this way, please check if you can also add other supportive files into the jar file.

              Another thing is to investigate your code. Have your closed all I/O connections timely?
              As your server writes to the client, please use a buffer. Don't allow them shake hands frequently.

              If your Applet just do some simply formatting, I suggest you consider if you can get rid of it.
              • Applets aren't necessary, but I have no choice.
                Applet aren't necessary, at least ActiveX Controls can be used instead. The application was developed by another company and is now in service. What the client ask to do is finger out what the problem is and provides a simple solution. So it's unacceptable to make some change in the application architecture.

                The applets' functionality is norraw, however they provide strong capability and flexibility of displaying data. Briefly speaking, the problem
                is: Both Netscape and IE with http are ok; Netscape with https ok; but IE with https not.
                I tried to use jre1.3 plug-in, however no help.
                I now really run out of idea. Any other hints? Thanks, jabber.