×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

I try to answer Q1 and Q2.

A1. You may use JAXB (java architecture for XML binding) for data model and XML query for searching. For large XML documents, use XML database (DB2 and oracle have some kind of XML capability) to store XML model and apply XML query on a data store. This way, you may improve performance if memory is an issue (it will be an issue when an XML file is huge).

A2. yes, you may use web service for easy maintainace and support. For quality and performance, junit test and profiling tool can be used to find code coverage and bottleneck earlier.

A4. You can set up JAVA_HOME environment variable in the default shell config file. So that when ever a command window (of the shell) is opened, JAVA_HOME is available.
Report

Replies, comments and Discussions:

  • 工作学习 / 专业技术讨论 / 我遇到的J2EE 面试题
    本文发表在 rolia.net 枫下论坛1 一印度小妞 问我,如果设计一个 search emgine based on the XML date source, what technology would you choose.
    她要我 detail the data model how to store the data in xml data set.
    还问我 if you have large amount of data, the system is running very slow, how would yoy solve this isuue. 然后此印度小妞 热情的拿了块小白板 让我画 UML or XML diagram.

    我弄清题目意思后,在白板前沉默了5分钟,五个考官静悄悄的望着我,最后那印度小妞 轻声说THAT‘S OK。 我当时跳窗跑掉的心情都有。。。。。

    2 在一个做PDA 软件的公司 应聘时 被问过这样的问题:

    If you need to implement a real time host system, the system accepts xml request message, does data transactions and sends xml response message to the client.
    In order to guarantee the software quality and to provide the ability to support the software, what technologies will you use? Is there any tool we can use to prevent the system performance bottleneck?


    3 我还被问过 PREPARED STATEMENTS 是否可以用来 HANDLE DATABASE TRANSACTION。

    我也不会,因为我根本没有 PREPARED STATEMENTS 的经验。。

    4. 如果在FREEBSD 上装 JDK 1.5, 有其他的 PROGRAM 需要 access your JAVA_HOME, how to make this setting available for other programs



    求大侠指点。更多精彩文章及讨论,请光临枫下论坛 rolia.net
    • 我只会3, 是JDBC问题. prepared statement就是象select * from table1 where id=?之类的statement, 可以通过设置jdbc autocommit off, 然后强制性commit, rollback来控制transaction. 2我觉得象web service问题.
    • I try to answer Q1 and Q2.
      A1. You may use JAXB (java architecture for XML binding) for data model and XML query for searching. For large XML documents, use XML database (DB2 and oracle have some kind of XML capability) to store XML model and apply XML query on a data store. This way, you may improve performance if memory is an issue (it will be an issue when an XML file is huge).

      A2. yes, you may use web service for easy maintainace and support. For quality and performance, junit test and profiling tool can be used to find code coverage and bottleneck earlier.

      A4. You can set up JAVA_HOME environment variable in the default shell config file. So that when ever a command window (of the shell) is opened, JAVA_HOME is available.