可以考虑application,可以实现的

解决方案 »

  1.   

    请问application中的变量可以用在两个war中吗
    好像不行的,一个application只是针对一个war啊
      

  2.   

    一旦创建application对象,只与服务器是否关闭有关,如关闭,才需重建。
      

  3.   

    不行的,我用的是jboss3.0.4-tomcat4.1.12
      

  4.   

    "application" can't be shared between deference web applications.
    u can use database to transer ur variable from one web application to another.
      

  5.   

    use database is not what I want
    can you do me a favor to solve my question