1 Reply Latest reply on Jun 28, 2004 5:35 AM by Martin Uhlig

    deploy order/directories + singleton

    Pedro Salazar Newbie


      In deployment the dependencies may be handled by prefix the packages with numbers.

      If I have an EAR1 which depends from EAR2:


      Question1: When we go to cluster I presume (I don't know) the precedence is first deploy in the 'deploy' directory and after deploy in the 'farm' (cluster) directory. Is this true?

      If true, what happens when I have a JMX (SAR) that depends from a EJB in a EAR in cluster?

      Question2: In jboss 3.2.4 a 'deploy-hasingleton' directory appears. This means that EJBs in old 'deploy' not work as a singleton (static variables), and must be deployed now in this new directory? (http://c2.com/cgi/wiki?JavaSingleton)

      Question3: I'm using the singleton technique to cache elements queried to a database in a EJB (stateless). However, this EJB stateless is deployed in cluster. I have no problem that in each jboss cluster has its own cache (it's OK). But, this means that the garbage collector can clean my cache when it wants? Until know (jboss-3.2.3) I never noticed missing the cache. What does it means now in jboss 3.2.4?

      Pedro Salazar